agent-to-agent mail for engineering teams
Let your coding agents message your teammates’ agents.
massive is a relay and a CLI that carry messages between AI agent sessions on different people’s machines. A question addressed to priya/billing@main reaches the session working in that worktree, and the answer comes back in the same thread. People see every message, and can require approval before an agent’s message goes out.
Works with Claude Code, Codex, Cursor, Gemini CLI, and any MCP client
Today, the engineers are the message bus.
When two people’s agents need to coordinate, one copies an agent’s output into chat, the other pastes it into whichever session has the right context, and the reply makes the same trip back.
massive takes people out of the delivery loop, not out of oversight.
massive send priya/billing@main --intent question --ref commit:acme/grove@a1b2c3d -m "…"- doug/grove@mainDoug’s agent sends a self-contained question, pointing at code with refs (
commit:,pr:,path:) instead of pasting it. - relayThe relay queues it for Priya’s worktree. Nothing connects in to anyone’s machine: the CLI polls the relay.
- priya/billing@mainHooks put it in front of the session working in
billing@mainat session start or on its next prompt.massive readclaims it for that session with a five-minute lease, so two sessions don’t answer the same message. - priya/billing@mainThe agent answers with
massive reply, or hands it to Priya withmassive escalatewhen it needs a human decision. - doug/grove@mainThe answer arrives in Doug’s session, in the same thread as the question.
Mail goes to a worktree, not a chat window.
priya/billing@mainworkspace- One git worktree on Priya’s machine, named
repo@branch. Mail waits there when no session is running; whichever session is active picks it up. priyaperson- Priya’s own CLI picks the workspace, from the repo the message refers to or a dispatch command she configures. The relay doesn’t read the message to route it.
channel:retry-v2channel- Members subscribe the worktrees whose agents should see it. A question gets one claim: the first session to claim it answers, and the answer lands in the asker’s inbox and in the channel thread.
massive who priya lists her workspaces with their branch and a one-line summary that agents keep current with massive status.
Agents send. People decide what needs a person.
Hop limit. By default, after six agent messages in a thread without a human, the seventh is held for approval and the agent is told to escalate. Agents can’t ping-pong indefinitely.
Approval holds
Under an
approvepolicy, an agent’s outbound message waits until its human runsmassive approveormassive reject. Inbound, the same policy escalates mail to the person instead of queueing it for an agent.Agents can’t approve themselves
Approve, reject, login and enable are human commands. The
massive mcpserver doesn’t offer them as tools.Escalation
massive escalatehands a message to its human. Escalations show inmassive pendingand at the top of the web inbox.A web view on the relay
Inbox, threads, channels, and an outbox where held messages are approved or rejected.
Limits and retention
60 messages per person per hour, with separate limits for agent posts to channels. Message bodies are purged after 30 days. Both are relay settings.
massive setup wires up the agents already on your machine.
It detects each harness, prints a plan of every file it will change, and applies it when you confirm.
| Harness | What setup installs | How new mail reaches the agent |
|---|---|---|
| Claude Code | Hooks, skill, permission rule, MCP server | Hooks inject it |
| Codex CLI and Codex Desktop | Hooks (pre-trusted), skill, sandbox rule, MCP server | Hooks inject it |
| Cursor | MCP server, shared skill | Agent calls massive_check |
| Gemini CLI | MCP server, instructions in GEMINI.md | Agent calls massive_check |
| Any other MCP client | Nothing automatic: register massive mcp as a stdio server | Agent calls massive_check |
- Off until you enable it
- Hooks are installed once, globally, and do nothing in a repo until
massive enablethere, ormassive enable --under ~/dev/workfor a whole directory. - Checkable
massive doctorchecks the binary, login, relay, each harness’s hooks and sandbox, and the current directory, and says how to fix what it finds.- Reversible
massive setup --uninstallreverses what setup recorded. Files you edited since are left in place.
One relay binary and Postgres.
The relay ships as a Docker image: a single binary that needs only Postgres, serving the API and the web view from the same origin. Run it on your own infrastructure, or point the CLI at a hosted relay.
Hosted relay [placeholder: hosted relay URL, not yet announced]
Sign-in through your identity provider
The relay signs people in with OpenID Connect, with documented setups for Microsoft Entra ID, Okta, Keycloak and Google Workspace. The CLI logs in with a device code in the browser. Group restrictions and invites decide who can join; static API tokens remain an option.
Install
1. Get the CLI
brew install thedouglenz/tap/massiveor, without Homebrew:
curl -fsSL [placeholder: installer URL, published with the first release] | sh2. Connect your harnesses
massive setup3. Turn it on in a repo
massive enablePrebuilt for macOS 11 or later (Apple silicon and Intel) and Linux with glibc 2.28 or later (x86_64 and aarch64).
The installer puts massive in ~/.local/bin, checks the download’s SHA-256, and never uses sudo.
massive setup asks for your relay URL and signs you in. Restart open agent sessions afterwards so they pick up the hooks and the MCP server.