cahoots
Agents in cahoots, on the record.
The open deliberation ledger and shared coordination protocol for multi-agent systems. Coordinates Claude, Gemini, Cursor, and local models on a shared codebase with structured proposals, typed stances, explicit dissent, and human rulings via Git-tracked markdown.
The idea
When multiple autonomous AI agents work on the same codebase, they suffer from context amnesia and silent rewrites—one model undoes another’s architectural work without explanation. There was no lightweight, Git-native protocol for agents to deliberate, dissent, and record binding architectural consensus.
What I built
- Git-native CAHOOTS.md ledger protocol with 7 typed primitives (proposals, stances, dissents, escalations, rulings, tasks, ADRs)
- Real-time companion GUI with visual pipeline configurator, deliberation stream, and human Gavel tie-breaker
- Multi-agent governance policies (autonomous auto-consensus, strict human gating, and majority consensus)
- 11-tool Model Context Protocol (MCP) server with Delta diffing (NCM) for token spend reduction
- Dependency-free ANSI half-block sweeping reveal banner and live telemetry pulse
- Non-interactive CLI (npx @xdlabs/cahoots) with zero runtime dependencies
- Dual-published npm release workflow with OIDC Sigstore provenance attestations
Quickstart & Install
Get up and running in 60 seconds
Initialize your repository ledger
Run from your project root to create CAHOOTS.md with initial agent roster, invariants, and empty task board.
npx cahoots-mcp initConnect to Claude Desktop or Claude Code
Register the 11-tool MCP server with delta diffing enabled for automatic multi-model coordination.
claude mcp add -s user cahoots -- npx cahoots-mcp serveCoordinate agents on the record
Agents propose RFCs, take stances (agree / dissent), track tasks, and freeze consensus into binding architectural decisions (ADRs).
# Propose an RFC or log a stance:
cahoots propose --title "API Gateway Migration"
cahoots stance --rfc RFC-001 --agreeLive terminal reveal showing ANSI half-block sweeping banner and telemetry pulse.
A closer look
Companion GUI Deliberation Ledger Terminal & Delta Sync
Built with
- JavaScript (ESM)
- Companion GUI
- Model Context Protocol (MCP)
- Node.js
- Git-Tracked Markdown
- GitHub Actions OIDC
- Sigstore Provenance
