senate

Multi-agent debate skills for coding CLIs. Orchestrates codex, gemini, cursor, kimi, and claude through structured debate formats β parliament, court, red-team, peer-review, committee, brainstorm β to reach more robust answers than any single model.
Background
Multi-agent debate is a well-studied technique for improving LLM reasoning: independent agents propose, critique, and revise answers under a structured protocol. Results are protocol-dependent β strong single-agent prompting can match it on some benchmarks β but a substantial body of work reports gains in factuality, divergent thinking, evaluation quality, and truthfulness.
senate ports the protocols humans already use to coordinate disagreement β parliaments, courts, peer review, RFCs β and packages them as agent skills you can run across heterogeneous CLIs. See dev/PRODUCT.md for the full thesis.
Install
Prerequisite: the CLIs you want to put in debates must be installed and authenticated locally β senate shells out to them. Each skills/invoke-agent/references/<cli>.md has a paste-ready install check for codex, gemini, cursor, kimi, and claude.
This repo ships as a Claude Code plugin and as a cross-agent bundle via the skills CLI (works with most coding agents that load skills β Claude Code, Codex, Cursor, OpenCode, Gemini CLI, β¦).
# Claude Code plugin
/plugin marketplace add SebastianElvis/senate
/plugin install senate@senate
# Any host agent
npx skills add SebastianElvis/senate
Useful flags for the skills CLI:
| Option | Description |
|---|
-g, --global | Install globally (~/<agent>/skills/) instead of the current project |
-a, --agent <name...> | Target specific agents (claude-code, codex, cursor, opencode, β¦) |
-s, --skill <name...> | Install a subset (--skill senate) |
-l, --list | List skills without installing |
-y, --yes | Skip prompts |
Other commands: npx skills list | find <q> | update senate | remove senate. Source forms accept GitHub shorthand, full URLs, git URLs, or local paths.
Usage
Ask your host agent for a debate in plain language:
- "Run a parliament between codex, gemini, and kimi on whether to migrate this service to Rust."
- "Hold a court debate β codex prosecutes my refactor, claude defends, gemini judges."
- "Committee of three models drafts this API design."
- "Red-team this deployment plan."
- "Peer-review this design doc."
- "Run a draft-review-finalize pipeline on this spec." (multi-stage)
- "Which format should I use?" (the planner recommends one without running)
Run artifacts land in <cwd>/.senate/runs/<id>/ β never in this skill repo. End-to-end walk-throughs of the headline cases live in examples/.
Architecture
Five skills compose one debate lifecycle:
user request
β
βΌ
βββββββββββββββββββββ
β senate β mints .senate/runs/<id>/
β (orchestrator) β
βββββββββββ¬ββββββββββ
βΌ
βββββββββββββββββββββ
β debate-agenda β βββΆ agenda.md
β (planner) β
βββββββββββ¬ββββββββββ
βΌ
βββββββββββββββββββββ dispatches ββββββββββββββββββββ
β moderate-debate β ββββββββββββββΆβ per-turn subagentβ
β (moderator) β βββββββββββββββ + invoke-agent β
βββββββββββ¬ββββββββββ result ββββββββββ¬ββββββββββ
β appends β shells out
β βΆ transcript.jsonl βΌ
β βΆ context.md codex Β· gemini Β· cursor
β βΆ agents/<cli>.md kimi Β· claude
βΌ
βββββββββββββββββββββ βββΆ notes.md
β meeting-note β
β (scribe) β
βββββββββββββββββββββ
moderate-debate dispatches every turn into a fresh per-turn subagent that loads the relevant invoke-agent playbook, shells out to the CLI, validates the contract, and returns only a structured result. Multi-stage pipelines are expanded once by the planner into a single agenda.md; the moderator then runs each stage under stages/<N>-<name>/, calling back to the planner only for clarification or mid-run re-planning. meeting-note consolidates after the final stage.