All work

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.

npm package (@xdlabs/cahoots)CI build statusMIT LicenseSigstore Provenance
  • Multi-Agent
  • MCP
  • Developer Tools
  • 2026

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

1

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 init
2

Connect 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 serve
3

Coordinate 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 --agree
cahoots init — 80×24
cahoots terminal initialization and ASCII reveal banner animation

Live 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