Skip to main content
ClaudeWave

Two local coding-agent sessions, Claude Code or Codex, write letters to each other through each agent's native input. CLI and MCP tools, stdlib core, no daemon.

MCP ServersOfficial Registry1 stars1 forks● PythonMITUpdated today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 10/2/2026
Install in Claude Code / Claude Desktop
Method: UVX (Python) · --with
Claude Code CLI
claude mcp add postbag -- uvx --with
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "postbag": {
      "command": "uvx",
      "args": ["--with"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

<!-- mcp-name: io.github.parasxos/postbag -->
<div align="center">

<img src="https://raw.githubusercontent.com/parasxos/postbag/v2.2.0/docs/assets/logo.png" width="96" height="96" alt="Postbag logo">

# postbag

**Two agents, one bag of letters.**

Let two existing Claude Code or Codex sessions review each other's work,
split a task, or exchange a second opinion. They run on the same machine,
receive letters through their native inboxes and share one recorded history.

[![ci](https://github.com/parasxos/postbag/actions/workflows/ci.yml/badge.svg)](https://github.com/parasxos/postbag/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/postbag)](https://pypi.org/project/postbag/)
[![MCP tools](https://img.shields.io/badge/MCP_tools-5-blue)](https://github.com/parasxos/postbag/blob/v2.2.0/docs/mcp.md)
[![Platforms](https://img.shields.io/badge/platform-macOS%20%7C%20Linux-lightgrey)](#install)
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/parasxos/postbag/blob/v2.2.0/LICENSE)

```sh
pipx install 'postbag[mcp]'
```

</div>

Five MCP tools and a CLI. Postbag adds no delivery daemon, polling, hooks or
remote relay. It carries text and records submitted letters. The agents and their
hosts decide when to reply and when to stop. Code and other work products
stay in your repository.

![Two peers join, exchange a review, mark a letter final, leave and read the bag](https://raw.githubusercontent.com/parasxos/postbag/v2.2.0/docs/assets/demo.gif)

*Real CLI commands with fake inboxes and a temporary home. This is a local
demonstration, not a recording of live agents.
[Demo source](https://github.com/parasxos/postbag/blob/v2.2.0/docs/demo.tape).*

See [agent installation instructions](https://github.com/parasxos/postbag/blob/v2.2.0/llms-install.md).

## Install

```sh
pipx install 'postbag[mcp]'
postbag --version
postbag-mcp --version
```

Python 3.10 or later, on macOS or Linux. Use `pipx install postbag` for the
CLI alone, which uses only the standard library. Upgrade both peers' CLI and
MCP installations together and reconnect their MCP servers. Existing bags
need no migration. Once a bag contains a leave record, all its readers need
2.1 or later. See [migration details](https://github.com/parasxos/postbag/blob/v2.2.0/docs/mcp.md#upgrade-existing-sessions).

Each vendor in use brings its own door. A Claude Code session exports
`CLAUDE_CODE_MESSAGING_SOCKET` and `CLAUDE_CODE_MESSAGING_TOKEN` to the
commands it runs. A Codex session exports `CODEX_THREAD_ID` (older versions
use `CODEX_SESSION_ID`) and has a
`codex` binary with the `queue` command (0.149 or later). Set `POSTBAG_CODEX`
if it is not in the ChatGPT app or on `PATH`. Two Claude sessions need no
Codex binary, two Codex sessions no Claude socket.

### MCP tools

The optional MCP interface lets agents call `postbag_join`, `postbag_leave`, `postbag_send`,
`postbag_read`, and `postbag_bags` directly. Sender identity comes from the
host. The ledger and native delivery are the same as the CLI. Joining creates
a missing bag. There is no letter budget or human-only command.

Install the optional tools with:

```sh
pipx install 'postbag[mcp]'
```

Or let [uv](https://docs.astral.sh/uv/getting-started/installation/) run the
pinned package in an isolated environment:

```sh
uvx --with 'postbag[mcp]==2.2.0' postbag@2.2.0 mcp
```

This starts a stdio MCP server for a host to manage. It waits for protocol
input, rather than opening an interactive terminal prompt. `postbag mcp`
and `postbag-mcp` serve the same five tools. The launcher takes no `--bag`
or operational arguments. Each tool call selects its own bag.

Register the absolute path to `postbag-mcp` as a local stdio MCP
server in each host. [Setup, upgrades, and compatibility](https://github.com/parasxos/postbag/blob/v2.2.0/docs/mcp.md).
The MCP SDK is required only for this interface.

The supported peers are existing Claude Code and Codex sessions. A generic
MCP client can inspect bags, but registering and sending require a supported
host's native session identity. Install Postbag on the same machine as both
sessions. A directory's Docker check can inspect the tool catalog without
providing access to those sessions.

The installed 2.2 candidate `c56d92d` passed native acceptance through
`postbag mcp` on macOS with Claude Code 2.1.287 and Codex 0.159.2. Five
letters were observed at their recipients, including replies in both
directions. Leaving blocked a later send, deliberate rejoining restored
delivery, and no reply followed a final letter during a 30.0992-second
observation window. See [launcher evidence and limits](https://github.com/parasxos/postbag/blob/v2.2.0/docs/native-compatibility.md).

The installed 2.0 candidate `8b87b4f` passed native acceptance on macOS with
Claude Code 2.1.286 and Codex 0.158.0-alpha.2.1. The check observed two-way
receipt, no Postbag reply during 30.0668 seconds after a final letter, and a later
deliberately initiated ordinary round trip. This observation does not
guarantee that other model conversations will stop. See
[candidate evidence and limits](https://github.com/parasxos/postbag/blob/v2.1.0/docs/native-compatibility.md).

Historical 1.x native delivery checks ran on macOS with Claude Code 2.1.285 and
Codex 0.157.1 / desktop 0.158.0-alpha.2.1, including the installed 1.3.0 MCP
package, default server discovery, two-way receipt and spent-budget refusal.
The 1.4 checks are also retained in [native compatibility](https://github.com/parasxos/postbag/blob/v2.1.0/docs/native-compatibility.md).
Native Linux delivery is unverified. Windows is unsupported.

## Quick start

1. Open two sessions on the same machine. Ask each to join under a name:
   `postbag --bag default join claude ada` and `postbag --bag default join claude bob`,
   or `postbag --bag default join codex bob` for Codex. Same-vendor pairs need distinct names.
   The first valid join creates the bag.
2. Ask ada to send the first letter:

   ```sh
   postbag --bag default send @bob "Review my last commit. Reply with the top three findings."
   ```

   If accepted, bob receives: "Letter 1 from @ada to @bob via postbag
   (bag default).", the body, and the
   reply instructions: use `postbag_send` if MCP tools are available, or
   `postbag --bag default send @ada -` with the reply on stdin. The footer asks
   for replies that advance the task and discourages courtesy acknowledgements
   and unsolicited delivery checks.
3. Read the bag from anywhere with `postbag --bag default read`. Its first
   line names the bag, its registered peers and its recorded letter count.
4. To send a letter that asks for no reply, use
   `postbag --bag default send --final @bob "The review is complete."`.
   Its footer says not to reply to that letter, even if its body asks for one.
   This is guidance to the recipient. It does not close the bag or prevent a
   later deliberately initiated send.
5. To stop participating in this bag, ask the session to run
   `postbag --bag default leave`, or call `postbag_leave` with `bag="default"`.
   This releases its name without ending the session or deleting history.
   Its door can no longer send or be addressed in that bag until it joins again.
   Queued letters and a send already holding the bag lock can still arrive.
   Rejoin only when you deliberately ask the session to resume.

If you intend to resume participation after a restart, rejoin the same bag
under the same name. A reply reaches
whoever holds the name when it runs, and a displaced door's next `send` refuses.

## Bags

A bag is one ledger, and it has a name. `default` is `~/.postbag/ledger.jsonl`.
For a second conversation, each session joins another bag with the
same flag, `postbag --bag acceptance join claude ada` and
`postbag --bag acceptance join claude bob`, and ada sends with
`postbag --bag acceptance send @bob "..."`.

`--bag` goes before the verb and takes a name, kept in
`~/.postbag/bags/<name>.jsonl`, or an absolute path of printable characters.
`join` creates a missing default, named or path-selected bag. `send`, `leave`
and `read` refuse a missing bag without creating files or directories. A join
refused for its arguments or identity also creates nothing. Once creation
starts, an I/O failure can leave a directory or partial file for inspection.
Outputs identify their bags, and every command inside a
letter or a refusal carries `--bag`, `--bag default` included, so a reply
lands where the letter came from whatever the recipient's shell has set.
Without `--bag`, `POSTBAG_LEDGER` selects a ledger by path.

Run `postbag bags` for a count of paths found, recorded letter counts, last letter
times and registered names with vendors. It lists default, named and selected
custom bags. Unselected external paths are omitted. Busy or unreadable bags
are unavailable. The summary counts bags with letters, bags without letters,
and unavailable bags. Registered names do not imply live sessions.
Terminals adapt to width and sort bags by last letter, with brief local times.
Pipes keep the plain table and full ISO timestamps.

`postbag bags --resume` adds Claude resume commands for conversations recorded
at `join`, with one reminder for missing IDs. Rejoin after `/clear` or switching
conversations. Resume needs saved history and opens a new process, not the old terminal.

## How it works

`join` writes the session's door into the ledger under a name: Claude Code's
messaging socket and token, or Codex's thread id. `send` holds a file lock
while it knocks on that door and appends the letter. Completed sends get
distinct record numbers. MCP calls refuse a busy ledger without waiting.
Letter numbers count all recorded letters in the bag.
Record numbers also count joins, leaves and historical `open` rows. CLI `read N`
returns the last N records. MCP `before` and `next_before` address immutable
record numbers. Old `open` rows keep their
recorded limits as history and no longer control sending.
Before using `leav
agent-communicationai-agentsautomationclaudeclaude-codeclicodexdeveloper-toolsmacosmcpmcp-servermodel-context-protocolmulti-agentopenai-codexpython

What people ask about postbag

What is parasxos/postbag?

+

parasxos/postbag is mcp servers for the Claude AI ecosystem. Two local coding-agent sessions, Claude Code or Codex, write letters to each other through each agent's native input. CLI and MCP tools, stdlib core, no daemon. It has 1 GitHub stars and its last recorded update is dated 2026-10-01.

How do I install postbag?

+

You can install postbag by cloning the repository (https://github.com/parasxos/postbag) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is parasxos/postbag safe to use?

+

Our security agent has analyzed parasxos/postbag and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains parasxos/postbag?

+

parasxos/postbag is maintained by parasxos. The last recorded GitHub activity is dated 2026-10-01, with 1 open issues.

Are there alternatives to postbag?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy postbag to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: parasxos/postbag
[![Featured on ClaudeWave](https://claudewave.com/api/badge/parasxos-postbag)](https://claudewave.com/repo/parasxos-postbag)
<a href="https://claudewave.com/repo/parasxos-postbag"><img src="https://claudewave.com/api/badge/parasxos-postbag" alt="Featured on ClaudeWave: parasxos/postbag" width="320" height="64" /></a>

More MCP Servers

postbag alternatives