bernstein
AGENTS.md1.4k starsChanged 58 days agoApache-2.0View on GitHub
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…
Trending
More talk lately.about the whole repository
Who's talking about sipyourdrink-ltd/bernstein
- A Hacker News story“Bernstein: Deterministic orchestrator for 40 CLI AI agents”Hacker News · May 8, 2026 · 3 points
- awhite0030/bernstein“docs(i18n): adopt the Traditional Chinese README translation”GitHub · Sep 14, 2026 · 1 reactions
- github/advisory-database“CVE request status for GHSA-2mcf-xcq4-jvpf and GHSA-wqgw-crr5-cr2p”GitHub · Sep 13, 2026 · 1 reactions
- agentrust-io/trace-spec“Vendor platform annex: software-only deterministic multi-agent orchestrator (Bernstein)”GitHub · Aug 27, 2026 · 1 reactions
- A Hacker News story“Show HN: Bernstein – run 44 CLI coding agents from one deterministic scheduler”Hacker News · Aug 15, 2026 · 1 points
The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 49
Talked about on GitHub and Hacker News (49 times).
On GitHub · 47
- Sep 14, 2026docs(i18n): adopt the Traditional Chinese README translation — awhite0030/bernstein1 reaction · 1 comment
- Sep 13, 2026CVE request status for GHSA-2mcf-xcq4-jvpf and GHSA-wqgw-crr5-cr2p — github/advisory-database1 reaction
- Aug 27, 2026Vendor platform annex: software-only deterministic multi-agent orchestrator (Bernstein) — agentrust-io/trace-spec1 reaction · 22 comments
- May 14, 2026Add Bernstein under Orchestration Frameworks — ARUNAGIRINATHAN-K/awesome-ai-agents-20261 reaction
- Oct 5, 2026agent-skills.github.sipyourdrink-ltd.bernstein: 3.20.0 → 3.21.0 — sudosubin/agents.nix0 reactions
42 more on GitHub
- Oct 4, 2026agent-plugins.github.sipyourdrink-ltd.bernstein: init at 3.20.0 — sudosubin/agents.nix0 reactions
- Oct 2, 2026agent-skills.github.sipyourdrink-ltd.bernstein: init at 3.20.0 — sudosubin/agents.nix0 reactions
- Sep 17, 2026fix(tests): exempt xdist controller from RLIMIT_AS memory guard — awhite0030/bernstein0 reactions · 1 comment
- Sep 15, 2026fix: surface missing vulture as command_not_found in dead code gate — awhite0030/bernstein0 reactions · 3 comments
- Sep 15, 2026fix: surface missing vulture as command_not_found in dead code gate — awhite0030/bernstein0 reactions · 3 comments
- Sep 15, 2026fix(graduation): derive stage changes from sealed journal evidence — awhite0030/bernstein0 reactions · 1 comment
- Sep 15, 2026Fix #5474: Implement authenticated release and halt records — awhite0030/bernstein0 reactions · 2 comments
- Sep 14, 2026docs(i18n): adopt the Japanese README translation — awhite0030/bernstein0 reactions · 3 comments
- Sep 14, 2026docs(i18n): adopt the Traditional Chinese README translation — awhite0030/bernstein0 reactions · 3 comments
- Sep 14, 2026Fix validation failure for trace follow PR — awhite0030/bernstein0 reactions · 1 comment
- Sep 14, 2026feat(cli): enhance trace follow with cross-source join, since, out, and live mode — awhite0030/bernstein0 reactions · 2 comments
- Sep 14, 2026fix(ci): compute affected tests once and emit as a matrix — awhite0030/bernstein0 reactions · 3 comments
- Sep 13, 2026fix(cli): resolve pyright typecheck errors in governance command — awhite0030/bernstein0 reactions · 1 comment
- Sep 13, 2026chore: issue already resolved — awhite0030/bernstein0 reactions · 2 comments
- Sep 13, 2026feat(govern): add failure sentinel for audit detect-record-notify path — awhite0030/bernstein0 reactions · 1 comment
- Sep 13, 2026feat(govern): add json/sarif outputs and ci exit codes to audit — awhite0030/bernstein0 reactions · 3 comments
- Sep 13, 2026feat(govern): add json/sarif outputs and ci exit codes to audit — awhite0030/bernstein0 reactions · 3 comments
- Sep 13, 2026feat: add detail view for governance decisions — awhite0030/bernstein0 reactions · 1 comment
- Sep 13, 2026feat: render the not covered list on governance screen — awhite0030/bernstein0 reactions · 1 comment
- Sep 12, 2026fix: resolve pyright errors in governance decision decoding — awhite0030/bernstein0 reactions · 2 comments
- Sep 12, 2026feat: add policy decision diff primitive — awhite0030/bernstein0 reactions · 2 comments
- Sep 12, 2026chore: close issue #4981 as already implemented — awhite0030/bernstein0 reactions · 1 comment
- Sep 12, 2026feat(volunteer): add autopilot state machine and donor profile loader — awhite0030/bernstein0 reactions · 1 comment
- Sep 12, 2026chore: acknowledge automated validation failure and fix pyright type checking errors in volunteer protocols — awhite0030/bernstein0 reactions · 1 comment
- Sep 12, 2026chore: issue 3883 already resolved — awhite0030/bernstein0 reactions · 3 comments
- Sep 11, 2026docs: rename agents to adapters in narrative docs — awhite0030/bernstein0 reactions · 3 comments
- Sep 11, 2026fix: typecheck issues in volunteer cmd and hub app — awhite0030/bernstein0 reactions · 1 comment
- Sep 2, 2026feat(cli): make bare volunteer command an onboarding entry point — awhite0030/bernstein0 reactions · 3 comments
- Sep 2, 2026feat(volunteer): document API observability and add adapter selection — awhite0030/bernstein0 reactions · 2 comments
- Sep 2, 2026fix(volunteer): core volunteer module must not import github_app — awhite0030/bernstein0 reactions · 1 comment
- Sep 2, 2026chore: document blocked status of #3877 — awhite0030/bernstein0 reactions · 3 comments
- Sep 2, 2026fix(core): Unify finding canonicalisation via stricter evidence implementation — awhite0030/bernstein0 reactions · 2 comments
- Sep 2, 2026docs(adapters): Correct opencode capability contract row to reflect stream-json channel — awhite0030/bernstein0 reactions · 2 comments
- Sep 1, 2026feat(security): enforce capability delta authorization in lineage gate — awhite0030/bernstein0 reactions · 3 comments
- Sep 1, 2026feat: Add plan amendment folding to recover the task graph from chain events — awhite0030/bernstein0 reactions · 1 comment
- Sep 1, 2026feat: Add plan amendment folding to recover the task graph from chain events — awhite0030/bernstein0 reactions · 2 comments
- Sep 1, 2026feat: implement render_probe and add input hashes to RenderReceipt — awhite0030/bernstein0 reactions · 1 comment
- Aug 31, 2026Update Bernstein description — eudk/awesome-ai-tools0 reactions
- Aug 31, 2026ci: bump sipyourdrink-ltd/bernstein from 2.7.0 to 3.17.2 — midnghtsapphire/revvel-standards0 reactions · 1 comment
- Aug 30, 2026feat: Adapter onboarding CLI command (`bernstein adapters onboard`) — awhite0030/bernstein0 reactions · 3 comments
- Jul 28, 2026Add server: Bernstein — LuciferForge/mcp-directory0 reactions · 1 comment
- Apr 21, 2026[Resource]: Bernstein — the open-source governance layer for AI agents — hesreallyhim/awesome-claude-code0 reactions · 3 comments
On Hacker News · 2
- May 8, 2026Bernstein: Deterministic orchestrator for 40 CLI AI agents3 points
- Aug 15, 2026Show HN: Bernstein – run 44 CLI coding agents from one deterministic scheduler1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/architecture.mdcCursor rule
- .cursor/rules/build-test.mdcCursor rule
- .cursor/rules/directory-context.mdcCursor rule
- .cursor/rules/documentation-duty.mdcCursor rule
- .cursor/rules/git-workflow.mdcCursor rule
- .cursor/rules/module-map.mdcCursor rule
- .cursor/rules/overview.mdcCursor rule
- .cursor/rules/roles.mdcCursor rule
- .cursor/rules/setup.mdcCursor rule
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- bernstein-runSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 98
Every PR that adds or changes a feature MUST update docs in the same PR:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
bernstein - AGENTS.md
<!-- AUTO-GENERATED by `bernstein agents-md sync` - DO NOT edit by hand. Curated content lives under `.sdd/agents-md/`. -->Overview
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.
Module map
Full per-file map: docs/sdd/module-map.md (generated).
| Package | Purpose / detail |
core/ | orchestration engine - src/bernstein/core/ |
adapters/ | CLI agent adapters - src/bernstein/adapters/AGENTS.md |
agents/ | agent catalog & discovery - src/bernstein/agents/ |
cli/ | Click CLI - src/bernstein/cli/AGENTS.md |
evolution/ | self-evolution engine - src/bernstein/evolution/ |
eval/ | evaluation harness - src/bernstein/eval/ |
plugins/ | plugin system (pluggy) - src/bernstein/plugins/ |
tui/ | Textual TUI - src/bernstein/tui/ |
github_app/ | GitHub App integration - src/bernstein/github_app/ |
mcp/ | MCP server - src/bernstein/mcp/ |
benchmark/ | SWE-bench - src/bernstein/benchmark/ |
Directory context files
Per-directory context files for agents working inside a subtree. Each covers: what the directory is for, key files, invariants, and how to test that subtree.
| Path | Covers |
src/bernstein/adapters/AGENTS.md | CLI agent adapters |
src/bernstein/cli/AGENTS.md | Click CLI |
src/bernstein/core/lineage/AGENTS.md | Lineage: artifact provenance |
src/bernstein/core/orchestration/AGENTS.md | Orchestration engine |
src/bernstein/core/quality/AGENTS.md | Quality gates and verification |
src/bernstein/core/security/AGENTS.md | Security: audit chain, identity, policy |
tests/AGENTS.md | Test suite |
Build & test
uv sync # install + lock
uv run python scripts/run_tests.py # tests (isolated per-file runner)
uv run ruff check . # lint
uv run ruff format . # format
uv run mypy src # type-checkSetup
uv syncto install + lock the project.uv run python -m bernstein --help(or your equivalent entry point).- See Build & test for the recurring commands.
Architecture (entry points)
Top-level entry points exposed by the package:
| Command | Purpose |
bernstein | bernstein.cli.main:cli |
bernstein-worker | bernstein.core.worker:main |
bernstein-bench | bernstein.eval.bench.bench_cli:bench_group |
verify-audit-receipt | bernstein.core.verifier.audit_receipt_verifier:main |
Back-compat aliases. Legacy import paths (e.g. bernstein.core.orchestrator) are served by a sys.meta_path finder, not by physical shim files. The mechanism lives in src/bernstein/core/__init__.py as _CoreRedirectFinder driven by the _REDIRECT_MAP dict - add new aliases there rather than creating shim modules at the old path.
Git workflow
Default branch: main.
Agent roles
Bernstein ships agent role prompts under templates/roles/. The orchestrator loads them at task-spawn time; you don't write to them manually.
adversaryanalystarchitectbackendci-fixerdevopsdocsfrontendmanagerml-engineerprompt-engineerqaresolverretrievalreviewersecurityvisionaryvp
Documentation duty
Every PR that adds or changes a feature MUST update docs in the same PR:
- User-visible behaviour: update the relevant
README.mdsection. - Operator workflows: update
docs/operations/<area>.md. - Public API surface: regenerate
docs/api/schemas. - Architecture or new module: update
docs/sdd/and runbernstein agents-md syncso AGENTS.md, CLAUDE.md,.goosehints,CONVENTIONS.md, and.cursor/rules/*.mdcstay aligned. - New test layer: also update
docs/contributing/testing.md.
PRs without the matching docs change will be sent back. Docs and code ship together.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

