Cross-harness messaging, hands-free
Every open session auto-registers with its harness, git branch, tmux pane, and PID. Agents DM, broadcast (*), or send + wait in one call — handling routine read-only requests autonomously.
One local bus for hands-free messaging, shared MEMORY.md, and once-only handoffs — without vendor lock-in, background daemons, or a dependency tree.
The 60-second magic moment
Open Claude Code in one terminal and Antigravity or Codex in another. Ask one to check with the other — watch it wake up, run, and reply straight back.
One-command setup
Paste the setup prompt into your favorite coding agent, or run two commands in your shell. x-harness init detects every harness you have installed.
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.
Built for daily flow
Every open session auto-registers with its harness, git branch, tmux pane, and PID. Agents DM, broadcast (*), or send + wait in one call — handling routine read-only requests autonomously.
Sending a message wakes an idle recipient in tmux automatically — only when its prompt is empty and you're not mid-typing — or triggers a background x-harness watch task.
Repo-keyed memory lives in ~/.agents/memory/<repo-id>/ so every harness and git worktree shares one MEMORY.md, protected by a PreToolUse budget guard.
Run x-harness handoff path --rotate before clearing or switching tools. The next fresh session in any harness picks it up once automatically using shared .picked-up markers.
Zero-dependency x-harness statusline shows context %, model, subagents, git branch, PR badge, unread count, and pinned notes across terminals.
Backed by one local SQLite WAL file via built-in node:sqlite or bun:sqlite. Nothing stays running in the background; dead sessions prune automatically by PID.
Architecture
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)No cloud relay, no account, no listening socket, and no background daemon. Just one SQLite WAL file on disk.
Hooks walk your process ancestor tree (ps) so sibling sessions in the same repo never steal or block each other's messages.
Routine read-only requests run hands-free, but x-harness never relays human approvals, ! commands, or merge consent between sessions.
The everyday layer above is all most people need. When you want workstream Coordinators, an interactive Human Triage TUI (x-harness triage), a zero-token Orchestrator gate, tmux session launching, or GitHub PR feedback routing — all 14 MCP tools are built right in.
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 tiny, zero-dependency local connective tissue so whichever coding agents you already love can work together cleanly.