One engine.
Every interface.
consensus.tools works however your pipeline works. Use guards as a library, run the CLI in CI/CD, call the REST API from any language, connect via MCP for Claude and Cursor, or wrap functions directly with the runtime firewall.
What is a Decision Firewall?
A Decision Firewall sits between “proposal” and “execution.”
Every decision can require:
This applies to:
Applying to Pull Requests
Example: High-Risk Code Change
Applying to Multi-Model Systems
Example: Multi-Model Decision Arbitration
Consensus Policy Templates
Consensus is not a black box. Policies are TypeScript templates built with createPolicyTemplate(). Extend any of the 9 base algorithms, override thresholds, add pre-checks, and register custom resolvers.
Composable & Open Source
Every policy is:
You can:
The engine is Apache-licensed.
Fork it. Compose it. Ship your own consensus policy layer.
Privacy & Deployment Modes
Agents don't need hype.
They need guardrails.
Consensus is the programmable decision firewall.
Five ways to integrate
Use consensus-tools however your pipeline works. CLI for CI/CD, SDK for TypeScript apps, REST API for any language, MCP for LLM agents, or the wrapper for function-level gates.
CLI
Run guards and query the board from your terminal or CI/CD pipeline. Pipe JSON in, get decisions out.
# Evaluate a code merge action through the guard
consensus-tools guard evaluate \
--type code_merge \
--payload '{"files":["src/auth/login.ts"],"tests_passed":true}' \
--format json
# Post a consensus job for PR review
consensus-tools jobs post \
--title "Review PR #142" \
--policy WEIGHTED_REPUTATION \
--json
# Query the audit trail for blocked actions
consensus-tools board audit \
--filter "decision=BLOCK" \
--since 24h \
--format tableWhat consensus.tools is
Core Utility
Pre-execution governance for high-risk autonomous actions.
Policy-driven resolution of multi-agent decisions.
Every decision is written as an immutable board artifact.
Integrates into CI/CD, agentic workflows, and multi-model systems.
Non-Goals
No credits, tokens, or economic mechanisms.
No staking economy or token issuance.
Runs on a local SQLite ledger — no distributed consensus chain.
No financial rails or fund management.