Governance substrate for AI coding agents
The agents do the engineering. nexus-agents holds them to the rules.
It reviews their work with adversarial consensus panels, keeps the rules they follow drift-checked, and writes everything they touch to a tamper-evident audit chain. It runs as an MCP server inside Claude Code, Codex, Gemini CLI or OpenCode.
npm install -g nexus-agents$ nexus-agents vote --proposal "Add a 'nexus-agents tour' interactive walkthrough command that runs after 'setup'..." Collecting votes from 7 agents (timeout: 300s each)... ✓ Software Architect: APPROVE (82%) ✓ Security Engineer: APPROVE (90%) ✓ Developer Experience: APPROVE (88%) ✗ AI/ML Engineer: REJECT (75%) ✓ Product Manager: APPROVE (82%) ✗ Contrarian Analyst: REJECT (95%) ✗ Scope Steward: ERROR — MCP error -32001: Request timed out Approval: 66.7% Threshold: simple_majority Result: APPROVED
Four ways into the docs
Learning
Start here
Start from nothing and finish with a working result.
Tasks
How-to guides
Steps for a goal you already have.
Information
Reference
The CLI, the MCP tools, configuration and the API, much of it generated from the code.
Understanding
Concepts
Why it works the way it does.
What it enforces
- Adversarial review
- A seven-seat
consensus_votepanel, including a contrarian seat, decides real forks. Thresholds are counted over the voters who answered, and a change to the governance substrate needs a whole panel. There are 5 aggregation strategies, and every decision is recorded with each voter's reasoning. - Rules that cannot drift silently
- The governance blocks in the rule files every agent reads are generated from the code, and CI fails when a hand edit diverges from the source.
- A tamper-evident audit chain
- Every decision is appended to a hash chain you can check with
verify_audit_chain. Tamper-evident, not tamper-proof: the threat model says exactly what that buys. - Closed-loop telemetry
- Outcomes feed back into model routing, within bounds, so a 12-stage router learns which of the 5 CLI adapters handles which task.
In the box: 47 MCP tools, 12 expert roles, 34 skills, 8 execution strategies, 8 memory backends, and a research registry of 176 papers from 9 discovery sources.
A real run, in full
$ nexus-agents vote --proposal "Add a 'nexus-agents tour' interactive walkthrough command that runs after 'setup'..." Nexus Agents Consensus Vote ============================ Proposal: Add a 'nexus-agents tour' interactive walkthrough command that runs after 'setup'... Collecting votes from 7 agents (timeout: 300s each)... Votes ✓ Software Architect: APPROVE (82%) ✓ Security Engineer: APPROVE (90%) ✓ Developer Experience: APPROVE (88%) ✗ AI/ML Engineer: REJECT (75%) ✓ Product Manager: APPROVE (82%) ✗ Contrarian Analyst: REJECT (95%) ✗ Scope Steward: ERROR — MCP error -32001: Request timed out Summary Approve: 4 Reject: 2 Abstain: 0 Errored: 1 Approval: 66.7% Threshold: simple_majority Result: APPROVED Completed in 188487ms