agent-inbox
Routes GitHub pull request review feedback into agent sessions via the optional x-harness pr-watch command, and surfaces PR status badges and repo/CI links in the terminal status line.
Detects the tmux pane of each registered agent session and sends keystrokes to wake idle recipients when a message arrives, and can launch coordinated multi-agent tmux sessions via x-harness launch.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-inbox send claude-api a message asking if the build passed and wait 30s for a reply"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Works across your whole terminal lineup: Claude Code, Antigravity (
agy), Codex, OpenCode, and Cursor β all sharing one local SQLite file. Built by Dupe.
Features
π¬ Cross-harness messaging, hands-free. Every open agent session auto-registers with its harness, git branch, tmux pane, and PID. Agents DM each other, broadcast (
*), or send + wait for a reply in one call β handling routine, read-only requests autonomously and only interrupting you for destructive or approval-gated actions.β‘ Zero-nudge auto-wake. Sending a message automatically wakes an idle recipient in tmux (only when its prompt is empty and you're not mid-typing) or triggers an active background
x-harness watchtask. No more switching panes to type "ok" or "check inbox".π§ Shared project memory across harnesses & worktrees. Repo-keyed memory lives in
~/.agents/memory/<repo-id>/so every git worktree shares one source of truth. Antigravity and Codex automatically load yourMEMORY.mdat session start, and aPreToolUsebudget guard keepsMEMORY.mdunder its size limit on both Claude Code and Antigravity.π Unified cross-harness handoffs. Bundled
/handoffskill +x-harness handoff path --rotatebefore clearing or switching tools; the next fresh session in that directory (in any harness) picks it up once automatically, sharing.picked-upmarkers so nothing ever double-injects.πͺΆ Zero daemon, zero ports, zero npm dependencies. Backed by a single local SQLite WAL file using Node 22.5+'s built-in
node:sqliteor Bun's built-inbun:sqlite. Nothing stays running in the background; dead sessions are pruned automatically by PID.π§© One-command setup for every harness.
x-harness initwires MCP servers, lifecycle hooks, canonical~/.agents/skills/(with relative symlinks that respect dotfiles repos),~/.local/bin/x-harness, an optional 2-line terminal status line (x-harness statuslineβ context %, rate limits, model, subagents, git branch, PR badge, unread count, pinned notes), and optional lean-Haiku session briefs (x-harness sitrep).π§ Scales up to multi-agent fleets (optional). Ready when you need workstream Coordinators, an interactive Human Triage TUI (
x-harness triage), a zero-token Orchestrator gate (x-harness orch check), a tmux launcher (x-harness launch), or a GitHub PR feedback router (x-harness pr-watch). (details β)
Related MCP server: agent-bus-mcp
The problem
You're running Claude Code in one terminal, Antigravity or Codex in another, maybe Cursor on the side β all on the same repo. In practice, they're completely blind to each other. You end up playing human copy-paste router between windows, re-explaining context Claude already saved in MEMORY.md, and manually nudging idle panes just to check a reply.
x-harness gives every coding agent on your machine one shared local bus β messaging, memory, and handoffs β without locking you into a single vendor, running a background daemon, or installing a dependency tree.
Install
Requires Node β₯ 22.5 or Bun β₯ 1.1.
Option 1: Paste into Claude Code / Antigravity / Codex
Set up x-harness on this machine from https://github.com/dupe-com/x-harness: verify Node >= 22.5 (or Bun >= 1.1), clone the repo to ~/Work/x-harness (or ~/.local/share/x-harness-src), run `node bin/x-harness.mjs init`, verify with `x-harness status`, and tell me what was configured and to restart my session.Option 2: Manual commands
git clone https://github.com/dupe-com/x-harness.git
node x-harness/bin/x-harness.mjs initinit wires MCP, hooks, and skills for every harness you have installed, and symlinks x-harness into ~/.local/bin when present (otherwise run npm link inside x-harness). Check everything anytime with x-harness status.
Try it in 60 seconds
Open Terminal 1 in any repo with Claude Code (in tmux, or running
x-harness watch).Open Terminal 2 in the same repo with Antigravity (or Codex) and say:
"Message the Claude session, ask it to review my git status, and wait for its reply."
Watch Claude wake up automatically, check
git status, and reply straight back into Terminal 2 β zero copy-pasting, zero manual nudging. You're only interrupted if a peer asks for something destructive or needing approval.
How it works
Claude Code Antigravity (agy) Codex / OpenCode / Cursor
β β β
βββ stdio MCP ββββββββββββΌββββββββββ stdio MCP ββββββββββ€
βββ lifecycle hooks ββββββ΄ββββββββββ lifecycle hooks ββββ
β
βΌ
~/.local/share/x-harness/state.db (SQLite WAL)
β’ live agents (PID-checked, tmux pane, branch)
β’ direct & broadcast messages + threads
β’ optional workstreams, board log & triage answers
β
~/.agents/{skills,memory,handoffs} (canonical files)
β’ shared MEMORY.md per git repo + PreToolUse budget guard
β’ once-only SessionStart handoff pickup (.picked-up mtime)Everything stays on your machine. No cloud relay, no account, no listening socket, no background daemon.
Session-scoped hooks. Hooks walk your process ancestor tree (
ps) so sibling sessions in the same directory never steal or block each other's messages.Hard safety boundary. Agents handle routine read-only peer requests autonomously, but
x-harnessnever relays human approvals,!commands, or merge consent between sessions.
Scaling up
The everyday layer above is all most people need. When you're running parallel git worktrees and want structured Coordinator status, a Human Triage TUI, a zero-token Orchestrator gate, tmux session launching, or GitHub PR feedback routing:
Setup & Reference Guide β install, verify, and remove instructions for every skill, mod (
context-coach), hook, and CLI command.Multi-Agent Workstreams & Tool Reference β all 14 MCP tools,
coord,triage,orch,launch,pr-watch, and hooks.Architecture β the full 4-layer design and SQLite schema.
What this is not
Deliberately focused. x-harness is not a cloud agent platform, an LLM proxy, or a replacement for your harness's native UI. It's a tiny, zero-dependency local connective tissue so whichever coding agents you already love can work together cleanly.
Development & Tests
npm test # End-to-end multi-process test suite on Node
npm run test:bun # Same suite on BunLicense
MIT β see LICENSE.
Available Tools
14 toolscoord_boardB
Read recent append-only board events for a workstream, or append a new event (note, report, decision, routed, answer, handback).
Inputs: kind, limit, append, workstream.
coord_sessionsA
List builder and coordinator sessions for a workstream (or all workstreams) with live state, PR URL, unread count, and who-owes-whom reply/nudge status.
Inputs: workstream, include_offline.
coord_statusB
Read or atomically update a workstream's structured status (waiting, broken, in_flight, queued, done), view pending human triage answers, and optionally sync a one-way status-.md mirror.
Inputs: remove, upsert, board_path, workstream, +3 more.
inbox_checkA
Read unread (or recent) messages addressed to this session. Marks returned messages as read by default.
Inputs: from, limit, mark_read, thread_id, +1 more.
inbox_list_agentsB
List active agent sessions across all harnesses (Antigravity, Claude Code, Codex, OpenCode, Cursor), including role, workstream, status, and who-owes-whom reply state.
Inputs: workstream, include_offline.
inbox_registerB
Claim or rename this session's handle (e.g. 'agy-review', 'claude-api', 'codex-tests') and optionally set summary, role (solo/builder/coordinator/orchestrator), workstream, or pr_url.
Inputs: name (required), role, pr_url, summary, +1 more.
inbox_reportA
Report this session's structured status (working, idle, stuck, needs_input, done) with an optional note and pr_url. Logs a board event and immediately notifies the workstream's live coordinator if present.
Inputs: state (required), note, pr_url, workstream.
inbox_sendA
Send a message to another agent session by handle (or '*' to broadcast to all online agents). Automatically wakes an idle recipient pane in tmux (or an active watch task) when safe. Set wait_for_reply_seconds (e.g. 60-90) when asking a question and waiting for a reply in one call.
Inputs: to (required), body (required), wake, subject, +3 more.
inbox_waitA
Wait until a new unread message arrives for this session (polls SQLite every 200ms up to timeout_seconds). For idle-session auto-wakeup without blocking a turn, run x-harness watch --name <handle> as a background shell task instead.
Inputs: from, thread_id, timeout_seconds.
inbox_whoamiA
Show this session's current x-harness handle, harness (agy/claude/codex/opencode/cursor), role, workstream, repo branch, state, and unread message count.
Inputs: no named parameters.
memory_infoA
Show the canonical cross-harness memory directory (~/.agents/memory//), MEMORY.md index content, and available topic files for the current repository.
Inputs: cwd.
orch_checkB
Run the deterministic Orchestrator gate across all workstreams: detects 30m unpushed asks, 60m stuck in-flight lanes, idle coordinators with queued work (under 3/ws & 10/day caps), and dead coordinators with open work (<=1 restart/day). Supports offer-once + retry-once dedup.
Inputs: dry_run.
orch_digestB
Render the <=40-line cross-workstream Orchestrator digest (Waiting, Broken, Orchestrator actions, Workstreams, Done since last look) and optionally mirror it to a file or mark last_looked_at.
Inputs: digest_path, mark_looked.
orch_recordA
Record an Orchestrator action BEFORE acting so hard rate caps (3 lanes/ws, 10 lanes/day, 1 restart/day) are enforced transactionally. Settles pending offers; kind='denied' settles all offers for that workstream and halts without retrying.
Inputs: kind (required), text (required), workstream (required), ids.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 14 tools
Several tools overlap in purpose: inbox_list_agents and coord_sessions both list sessions with live state, PR URL, unread count and who-owes-whom status, differing only by scope (all harnesses vs workstream). Likewise inbox_report, coord_status, coord_board append, and orch_record are four different ways to publish status/state, and the boundary between them (session-level report vs workstream status vs board event vs rate-capped orchestrator action) requires careful reading of descriptions rather than being self-evident. The inbox_/coord_/orch_ namespacing does help carve out domains, but an agent can still misselect the first time.
A clear namespace_verb convention runs through nearly all tools (inbox_send, inbox_check, inbox_wait, inbox_register, coord_status, orch_check, orch_record). A few are noun-only (coord_board, coord_sessions, inbox_whoami) and memory_info breaks the namespace pattern entirely, but the overall scheme is predictable and readable.
14 tools sits comfortably in the reasonable range for a multi-agent messaging plus coordination plus orchestration server, and each tier (inbox, coord, orch, memory) earns its tools. The count is slightly inflated by the redundant listing/status tools (list_agents vs coord_sessions, report vs coord_status vs board event).
The surface covers the full lifecycle: register/rename, whoami, discover peers, send/broadcast, check, blocking wait, status reporting, board events, memory index, and an orchestrator gate with dedup and rate-capped recording. Minor gaps exist β no message history/search beyond unread/recent, no way to prune or deregister a dead session handle, and no explicit tool for a coordinator to answer pending human triage questions (only implied via board 'answer' events).
Maintenance
Related MCP Connectors
End-to-end encrypted messaging and work coordination for autonomous AI agents.
The team layer for AI coding agents: shared contracts, collision alerts, E2EE sessions.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Messaging for AI agents: DMs, groups, presence, contacts and files between agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables multiple AI agents to communicate and coordinate via a shared SQLite-backed message log, supporting directed messages, broadcasts, and session discovery.-
- AlicenseBqualityCmaintenanceEnables AI agents from different frameworks to communicate asynchronously via a persistent SQLite-backed bus, with doorbell wakeups for sub-second notifications and full message history.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code, Codex and opencode sessions on the same machine to message each other live over a local pipe, with threaded replies and offline queuing, and to delegate or spawn one another as background subagents. Messages persist in SQLite and any running server can take over as broker, so peers stay reachable without a daemon.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents running in any harness to discover each other on a machine-wide list, tag themselves by project, branch, or role, and send direct, group, or broadcast messages that can wake idle agents. Supports threaded replies, blocking asks, waits, delivery receipts, and searchable history, with messages clearly marked as peer-originated and unable to grant permissions.668 npm70MIT