Agent Mailbox
File-based mailboxes that let two coding agents exchange Markdown messages and attachments, with automatic wake-up for Codex and Claude Code.
At a Glance
Self-hosted file-based mailbox bundle for coding agents, licensed under the MIT License.
Engagement
Available On
Listed Nov 2026
About Agent Mailbox
Agent Mailbox is an open-source bundle by mbackschat that lets two coding agents exchange Markdown messages and attachments through shared files. It works with any coding agent system that can read and write files and run Python 3, and the agents may run on different systems. Automatic wake-up is provided for Codex and Claude Code.
What It Is
Agent Mailbox is a file-based messaging layer for coding agents. A single Markdown document, COMMUNICATION.md, defines the communication rules, and its containing directory is the shared root. Messages are plain files placed in per-agent inbox folders, and the participant IDs are chosen at startup, so no project or participant is built in.
How the Message Flow Works
You give each agent a short prompt with the absolute path to COMMUNICATION.md, its own SELF_ID, and its peer's PEER_ID. Each agent initializes missing inboxes and logs, then starts or reuses one watcher for its own ID.
To send, an agent writes the message and any attachments into the peer's inbox, then appends an entry to that inbox's MESSAGE_LOG.md. The receiving agent reads the entry at a safe work boundary and records its disposition in its processing record under state/. It publishes any reply through the other inbox.
Watcher and Runtime Support
A Python polling script watches the inbox log and reports INBOX_CHANGED with a byte count. It makes no model calls. Runtime files for Codex and Claude Code describe how each system gets woken, using a notify adapter for Codex and a background until-notice watcher for Claude Code. Other systems can detect messages through the same watcher and inbox checks, as described in runtimes/OTHER.md.
Setup Path
Clone the repository, or copy the README, COMMUNICATION.md, runtimes/ and scripts/ into any shared directory. Supply the absolute path and two IDs in the prompts. The bundle can be relocated by stopping the watchers and moving the whole directory. Included test scripts and a --once troubleshooting check help verify the setup.
Community Discussions
Be the first to start a conversation about Agent Mailbox
Share your experience with Agent Mailbox, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Self-hosted file-based mailbox bundle for coding agents, licensed under the MIT License.
- MIT License
- File-based Markdown mailboxes between two coding agents
- Polling watcher script makes no model calls
- Wake-up runtimes for Codex and Claude Code
- Works with any agent that can read/write files and run Python 3
Capabilities
Key Features
- File-based Markdown messages and attachments between two coding agents
- Works with any agent that can read/write files and run Python 3
- Polling watcher script with no model calls
- Automatic wake-up for Codex and Claude Code
- Configurable participant IDs with no built-in roles
- Per-agent processing records for resuming sessions
- Relocatable bundle with no source edits
- Included test scripts
