agentxchain
v0.8.7
Published
CLI for AgentXchain — multi-agent coordination in your IDE
Maintainers
Readme
agentxchain
CLI for multi-agent coordination in your IDE. Define a team of AI agents, let them take turns building your project — each in its own IDE window.
Install
npm install -g agentxchainOr run without installing:
npx agentxchain initQuick start
Happy path: net-new project
agentxchain init
cd my-project
agentxchain kickoffHappy path: existing project
Run these commands from inside your existing project folder:
agentxchain doctor
agentxchain generate
agentxchain kickoffEach agent runs in its own Cursor window for a single turn at a time. The referee loop (watch / supervise --autonudge) determines the next agent and wakes that specific session.
Agents are now required to maintain TALK.md as the human-readable handoff log each turn.
Commands
| Command | What it does |
|---------|-------------|
| init | Create project folder with agents, protocol files, and templates |
| kickoff | Guided PM-first flow: PM kickoff, validate, launch remaining, release |
| start | Open a Cursor window per agent + copy prompts to clipboard |
| supervise | Run watcher and optional AppleScript auto-nudge together |
| generate | Regenerate agent files from agentxchain.json |
| validate | Enforce PM signoff + waves/phases + turn artifact schema |
| status | Show lock holder, phase, turn number, agents |
| doctor | Validate local setup (tools, trigger flow, accessibility checks) |
| claim | Human takes control (agents stop claiming) |
| release | Hand lock back to agents |
| stop | Terminate running Claude Code agent sessions |
| watch | Optional: TTL safety net + status logging |
| config | View/edit config, add/remove agents, change rules |
| rebind | Rebuild Cursor workspace/prompt bindings for agents |
| update | Self-update CLI from npm |
Full command list
agentxchain init
agentxchain status
agentxchain start
agentxchain kickoff
agentxchain stop
agentxchain config
agentxchain rebind
agentxchain generate
agentxchain watch
agentxchain supervise
agentxchain claim
agentxchain release
agentxchain update
agentxchain doctor
agentxchain validateIDE options
agentxchain start # Cursor (default) — one window per agent
agentxchain start --ide vscode # VS Code — uses .agent.md custom agents + hooks
agentxchain start --ide claude-code # Claude Code — spawns CLI processesAdditional flags
agentxchain kickoff # guided first-run PM-first workflow
agentxchain kickoff --ide vscode # guided flow for VS Code mode
agentxchain kickoff --send # with Cursor auto-nudge auto-send enabled
agentxchain kickoff --interval 2 # nudge poll interval override
agentxchain kickoff --no-autonudge # skip auto-nudge prompt
agentxchain start --agent pm # launch only one specific agent
agentxchain start --remaining # launch all agents except PM (PM-first flow)
agentxchain start --dry-run # preview agents without launching
agentxchain validate --mode kickoff # required before --remaining
agentxchain validate --mode turn --agent pm
agentxchain validate --json # machine-readable validation output
agentxchain watch --daemon # run watch in background
agentxchain supervise --autonudge # run watch + AppleScript nudge loop
agentxchain supervise --autonudge --send # auto-press Enter after paste
agentxchain supervise --interval 2 # set auto-nudge poll interval
agentxchain rebind # regenerate agent prompt/workspace bindings
agentxchain rebind --open # regenerate and reopen all Cursor agent windows
agentxchain rebind --agent pm # regenerate one agent binding only
agentxchain claim --agent pm # guarded claim as agent turn owner
agentxchain release --agent pm # guarded release as agent turn owner
agentxchain release --force # force-release non-human holder lockmacOS auto-nudge (AppleScript)
If you want the next agent chat to be nudged automatically when turn changes, use the built-in AppleScript helper.
- Keep watcher running in your project:
agentxchain watch
# or use the combined command:
agentxchain supervise --autonudge- In another terminal (from
cli/), start auto-nudge:
bash scripts/run-autonudge.sh --project "/absolute/path/to/your-project"By default this is paste-only (safe mode): it opens chat and pastes the nudge message, but does not press Enter.
- Enable auto-send once confirmed:
bash scripts/run-autonudge.sh --project "/absolute/path/to/your-project" --sendStop it anytime:
bash scripts/stop-autonudge.shNotes:
- Requires macOS (
osascript) andjq(brew install jq) - Grant Accessibility permissions to Terminal and Cursor
- The script watches
.agentxchain-trigger.json, which is written byagentxchain watch run-autonudge.shnow requires watch to be running first- The script only nudges when it finds a unique matching agent window (no random fallback)
How it works
Cursor mode (default)
agentxchain kickofflaunches PM first for human-product alignment- Each window gets a unique prompt copied to clipboard
- Kickoff validates PM signoff and launches remaining agents
- Agent prompts are single-turn: claim → work → validate → release → stop
- Agents use the latest
Next owner:inTALK.mdto pick who goes next (fallback: config order) - Human can
claimto pause andreleaseto resume anytime
VS Code mode
agentxchain initgenerates.github/agents/*.agent.md(VS Code custom agents) and.github/hooks/(lifecycle hooks)- VS Code auto-discovers agents in the Chat dropdown
- The
Stophook acts as referee — hands off to next agent automatically
Turn ownership
Agent turns are handoff-driven:
- Each turn appends a
Next owner:inTALK.mdwith a valid agent id watch/supervisedispatches the next trigger from that handoffclaim --agent <id>enforces that expected owner (with guarded fallback)
Key features
- One window per agent — each agent has its own Cursor window and chat session
- Referee-driven coordination —
watch/supervisewakes the next correct agent each turn - Works in Cursor, VS Code, Claude Code — adapters for each IDE
- User-defined teams — any number of agents, any roles
- No API keys or cloud required — everything runs locally
- Human-in-the-loop — claim/release to intervene anytime
- Team templates — SaaS MVP, Landing Page, Bug Squad, API Builder, Refactor Team
- Lock TTL —
watchcan force-release stale locks as a safety net
VS Code extension (optional)
For a richer UI in VS Code:
code --install-extension cli/vscode-extension/agentxchain-0.1.0.vsixAdds: status bar (lock holder, turn, phase), sidebar dashboard, command palette integration.
Publish updates (maintainers)
cd cli
bash scripts/publish-npm.sh # patch bump + publish
bash scripts/publish-npm.sh minor # minor bump + publishIf NPM_TOKEN exists in agentXchain.dev/.env (project root), the script uses it automatically.
Links
License
MIT
