postbag is a local MCP server for letting two coding agent sessions, Codex and Claude Code, communicate with each other. It calls messages "letters" and delivers them through each agent's own native input, so there is no need to copy and paste text between windows.
Use cases: suitable for having two local coding agents collaborate, for example having Codex review code that Claude Code just wrote, or vice versa; they can also divide work, such as Codex writing tests and Claude Code writing the implementation, then exchanging progress through letters; when one agent is stuck on a bug, it can also ask the other agent for a fresh perspective.
Main capabilities: provides CLI and MCP tools, with the core using the standard library and no daemon. Each "bag" is a named conversation, and once two agents join the same bag they can write letters to each other. Letters become new turns through the receiving session's native input, without relying on polling or hooks. The end of each letter explains how to reply, or states that no reply is needed. Each bag keeps a local log, and either agent can use postbag_read to browse the shared history.
Usage: requires Python 3.10 or later, Claude Code, and a relatively recent Codex CLI with codex queue. Both sessions need to run the same version of postbag on the same machine. After starting new sessions in both applications, run /mcp, and postbag should list five tools. You can also have an agent install it according to llms-install.md. A typical flow is to open Codex and Claude Code in the same repository, first run "Join postbag bag "review" as codex" in Codex, then run "Join postbag bag "review" as claude, then ask codex to review my last commit" in Claude Code. Codex must join first so that Claude Code has someone to write to. Approve postbag tools when asked.
Limitations and security: delivery has been tested on macOS. A successful send only confirms submission and recording; a receipt or log does not prove that the receiver has accepted, read, or processed the letter. Each letter prompts the receiver to comply with the human's existing authorization scope, but this is only model guidance, not a security boundary, and you should only connectto sessions you trust. There is no limit on the number of letters; if you need to confirm every MCP send, you can configure the host to ask before each postbag_send call. The ledger under ~/.postbag/ stores the Claude Code inbox token, new files have 0600 permissions, and it should not be committed or shared. The project uses the MIT license.