pigeon
БесплатноЗапускает вложенные скриптыНе проверенInter-session pmail - send and receive messages between Claude Code sessions running in different project directories. Triggers on: mail, pmail, send message…
от 0xDarkMatter★ 86 звёзд на GitHubОб этом скилле
Pigeon
Inter-session messaging for Claude Code. Send and receive pmail between sessions running in different projects.
Quick Reference
All commands go through MAIL, a shorthand for bash "$HOME/.claude/pigeon/mail-db.sh".
Set this at the top of execution:
MAIL="$HOME/.claude/pigeon/mail-db.sh"
Then use it for all commands below.
Command Router
Parse the user's input after pigeon (or /pigeon) and run the matching command:
| User says | Run |
|---|---|
pigeon read |
bash "$MAIL" read |
pigeon read 42 |
bash "$MAIL" read 42 |
pigeon thread 42 |
bash "$MAIL" thread 42 (shows, does not mark read) |
pigeon send <project> "<subject>" "<body>" |
bash "$MAIL" send "<project>" "<subject>" "<body>" |
pigeon send --urgent <project> "<subject>" "<body>" |
bash "$MAIL" send --urgent "<project>" "<subject>" "<body>" |
pigeon send --attach <path> <project> "<subject>" "<body>" |
bash "$MAIL" send --attach "<path>" "<project>" "<subject>" "<body>" |
pigeon reply <id> "<body>" |
bash "$MAIL" reply <id> "<body>" |
pigeon reply --attach <path> <id> "<body>" |
bash "$MAIL" reply --attach "<path>" <id> "<body>" |
pigeon broadcast "<subject>" "<body>" |
bash "$MAIL" broadcast "<subject>" "<body>" |
pigeon search <keyword> |
bash "$MAIL" search "<keyword>" |
pigeon status |
bash "$MAIL" status |
pigeon unread |
bash "$MAIL" unread |
pigeon list |
bash "$MAIL" list |
pigeon list 50 |
bash "$MAIL" list 50 |
pigeon projects |
bash "$MAIL" projects |
pigeon clear |
bash "$MAIL" clear |
pigeon clear 7 |
bash "$MAIL" clear 7 |
pigeon alias <old> <new> |
bash "$MAIL" alias "<old>" "<new>" |
pigeon purge |
bash "$MAIL" purge |
pigeon purge --all |
bash "$MAIL" purge --all |
pigeon id |
bash "$MAIL" id |
pigeon migrate |
bash "$MAIL" migrate |
pigeon init |
bash "$MAIL" init |
When the user just says "check mail", "read mail", "inbox", "any mail?", or "any pmail?" - run bash "$MAIL" read.
When the user says "send mail to X", "send pmail to X", or "message X" - parse out the project name, subject, and body, then run bash "$MAIL" send.
Project Identity
Each project gets a stable 6-character hash ID derived from its git root commit (the very first commit in the repo). This means:
- IDs survive directory renames, moves, and clones
- Case-insensitive filesystems (macOS) don't cause collisions
- Every clone of the same repo shares the same identity
For non-git directories, falls back to a hash of the canonical path (pwd -P).
A repo's git worktrees share its root commit, so they share its ID: every session in the repo, the main checkout and each lane alike, reads one inbox. See Shared Inboxes.
Use pigeon id to see your project's name and hash:
claude-mods 7663d6
When sending messages, you can address projects by name, hash, or path - they all resolve to the same hash ID.
Identicons
Each project hash renders as a unique pixel-art identicon (11x11 symmetric grid using Unicode half-block characters). Run identicon.sh to see yours, or view all projects with pigeon projects.
Passive Notification (Hook)
A global PreToolUse hook checks for pmail on every tool call (no cooldown). Silent when inbox is empty. When mail is waiting it prints one JSON envelope, and Claude Code passes its additionalContext to the model:
{"hookSpecificOutput":{"hookEventName":"PreToolUse","additionalContext":"=== INCOMING PMAIL (1 message(s)) ===\n..."}}
What the model reads:
=== INCOMING PMAIL (1 message(s)) ===
--- #42 from some-api (a1b2c3) @ 2026-09-30 10:12:04 ---
Subject: Auth endpoints ready
Login and refresh are live on staging.
=== ACTION REQUIRED: Inform the user about these messages and ask if they want to reply. ===
=== Then run: pigeon read (to mark as read) ===
=== To reply: pigeon reply <id> "message" ===
The JSON form is required. For PreToolUse, plain stdout goes to Claude Code's debug log and never reaches the model. Claude Code caps additionalContext at 10,000 chars, so the hook truncates message bodies at about 9,000 and points at pigeon read. The header and footer are always kept. Delivery does not mark mail read.
Each session is told about each message once. The signal file /tmp/pigeon_signal_<hash> is a timestamp that every send touches and nothing deletes. Each session keeps its own marker, /tmp/pigeon_seen_<hash>_<session_id>, holding the last message id it was shown. The fast path compares the two file times, so an empty inbox still costs one stat. The session id comes from the hook's stdin JSON; without one (a manual run), callers share an anon marker.
Shared Inboxes (Worktrees)
Every session in a project reads one inbox, and a repo's worktrees are the same project. That is what makes lane-to-coordinator reporting work (`pigeon send claude-
Установить pigeon в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGrepВложенные файлы
FAQ
Что делает скилл pigeon?
Inter-session pmail - send and receive messages between Claude Code sessions running in different project directories. Triggers on: mail, pmail, send message, check mail, inbox, inter-session, message another session, pigeon.
Как установить скилл pigeon?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pigeon запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic