bernstein

Open-source AI agent governance. Write the rules declaratively, Bernstein enforces them and produces the verifiable, replayable record. Free, Apache-2.0. https:

What is bernstein?

Open-source AI agent governance. Write the rules declaratively, Bernstein enforces them and produces the verifiable, replayable record. Free, Apache-2.0. https://bernstein.run

Overview of bernstein

What it is

Bernstein is the open-source governance layer for AI agents. It runs on policy as code: you write the policy - who may do what, what needs approval, what must be recorded - and Bernstein enforces it and produces the verifiable record. A deterministic scheduler - no model in the coordination loop - runs agents in parallel, gates what they produce, and records every step, so a run can be verified after the fact, offline, from the artifacts alone. CLI coding agents work out of the box (Claude Code, Codex, Gemini CLI, and 50+ more), and the same layer governs any agent workload: the deliverable can be a diff, a research report, a dataset, or an audit evidence pack. Air-gap install profile included. Apache-2.0.

Key features

  • No LLM in the coordination loop. Scheduling is plain Python, so a run is reproducible end to end.
  • Checkable after the fact. The replay journal records every run, and the always-on lineage spine records every lineage-bearing step; the opt-in HMAC-chained audit log adds receipts you verify offline.
  • Isolated by construction. Each coding task gets its own git worktree behind merge gates; artifact-mode tasks get a working directory under .sdd/workspaces/. Agents share no mutable workspace by default.
  • Broad and local. More than 50 selectable CLI agent adapters plus a generic --prompt wrapper, file-based state, no SaaS hop, no third-party data plane.

Use cases

Bernstein governs any agent workload. The deliverable can be a diff, a research report, a dataset, or an audit evidence pack. Ready-made graphs for software, research, docs, enterprise, and contributor workflows live in .bernstein/scenarios/.

Getting started

bash uv tool install bernstein # or: pipx install bernstein bernstein init bernstein doctor # checks a CLI agent is installed and authenticated bernstein -g 'fix the failing test in tests/test_foo.py'

License and pricing

Apache-2.0 license, open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/sipyourdrink-ltdbernstein.svg)](https://yunodb.com/tools/sipyourdrink-ltdbernstein?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/sipyourdrink-ltdbernstein?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/sipyourdrink-ltdbernstein.svg" alt="Featured on YunoDB" height="20"></a>