Bernstein
Lets you run many coding agents in parallel under rules you write, with a verifiable record of every run.
1.2k stars on GitHubby sipyourdrink-ltdLicense Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add bernstein -- uvx bernstein
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Fix the failing test in tests/test_foo.py.
Run the audit-evidence-pack workflow and collect the evidence in parallel.
What it is
Bernstein is an open-source governance layer for AI agents. You write policy as code, a plain Python scheduler runs agents in parallel with no model in the coordination loop, and it records each step so a run can be checked offline. Claude Code, Codex, Gemini CLI and more than 50 other CLI agents work.
What it can do
- Declarative workflow graphs in YAML
- Parallel agent runs, each in its own git worktree
- Merge gates on coding tasks
- Signed run receipts you can verify offline
bernstein live: terminal dashboardbernstein gui serve: browser dashboard
When to use
- βΊWhen you want several agents to work on a project at once with merge checks.
- βΊWhen you need an audit record of what AI agents did.
- βΊWhen you need an air-gapped setup for agents.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
llm-configHelps your agent set up local AI tuning helpers that adjust a small model from quality feedback, for air-gapped or on-device use.auditing-deidentification-runsCreates a signed, reproducible record of a de-identification run, showing what was redacted and why, with no patient data inside the record.orchestrateHelps your agent split a large goal across many parallel Cursor cloud agents and collect their results. Runs only when you type /orchestrate.Frequently asked questions
Is it free and open source?
Yes. It is free and Apache-2.0.
Is it stable?
The readme marks it as beta and solo-maintained; pin the version for anything you depend on.
Does a model run the scheduler?
No. The scheduler is plain Python with no LLM in the coordination loop.
Which agents does it work with?
Claude Code, Codex, Gemini CLI and more than 50 other CLI agent adapters, plus a generic prompt wrapper.
How do I verify a run?
Run it with BERNSTEIN_AUDIT=1, then use bernstein verify receipt with the receipt file and public key.
Where does data go?
The readme says it uses file-based state, with no SaaS hop and no third-party data plane.
If it does not work
- βΊRun bernstein doctor to check that a CLI agent is installed and authenticated.
- βΊPin the version because minor releases may change interfaces.
- βΊFor air-gapped installs, follow the air-gap guide for the wheelhouse.
5 new skills a week. 1 minute to read.