Bernstein is an open-source governance layer for AI agents that applies written policies, schedules agent work deterministically, controls approvals, and records verifiable execution history. It is used to coordinate CLI coding agents and other agent workloads, including parallel runs and offline review, while the catalogue entries provide its agent workflows and controls.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/sipyourdrink-ltd/bernsteinWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/sipyourdrink-ltd/bernstein/review-guidelines)<a href="https://agentmods.dev/rules/sipyourdrink-ltd/bernstein/review-guidelines"><img src="https://agentmods.dev/badge/rules/sipyourdrink-ltd/bernstein/review-guidelines/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/sipyourdrink-ltd/bernstein/review-guidelines"><img src="https://agentmods.dev/badge/rules/sipyourdrink-ltd/bernstein/review-guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00453 | $0.00453 |
| Opus 5.5 | $0.00181 | $0.00181 |
| Sonnet 5.5 | $0.00091 | $0.00091 |
| Haiku 4.5 | $0.00045 | $0.00045 |
Grade A, and why
review-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Bernstein's job is a record of agent work that can be verified later, so review first for changes that would make the scheduler or the record report something that did not happen.
- Completion: a task or workflow node is done only on an accepted attempt. Flag code that releases dependents, marks a task completed or reports success on a session ID, a spawn, a queued signal or a non-zero exit.
- Cost and budgets: cumulative cost adds, never overwrites; the budget check runs before the next spawn; a late adjustment cannot lower a total already counted.
- Determinism: the scheduler has no model in the loop. Flag unordered iteration, wall-clock or random values in planning, replay or audit output.
- Audit chain and lineage: flag any change that weakens an existing check, skips a write without an error, or describes a receipt as signed when no signing key is configured.
- Back-compat: legacy import paths go through
_REDIRECT_MAPinsrc/bernstein/core/__init__.py; flag new shim modules at old paths. - Tests: a behaviour change has a test under
tests/that fails without it and passes withuv run python scripts/run_tests.py. - Docs: a user-visible or operator change updates its docs in the same PR (see Documentation duty). Claims in README, docs and release notes match the code: no superlatives, no counts the code does not produce, and "test vectors" rather than "conformance vectors".
- Secrets: no keys, tokens or personal data in code, fixtures or logs.
Severity: P0 a false record, data loss, a security or money defect; P1 a wrong result or broken contract; P2 a missing test or doc. Style is ruff's job.
Output: one comment per finding with severity, file:line, the failing scenario in one sentence and a suggested fix. Done when every changed file was read; with no P0-P2 finding, say so and name the checks above that you ran.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 22 lines · 453 tokens per session scan A 3a938bad5e2a
review-guidelines is a cursor rule published in the GitHub repository sipyourdrink-ltd/bernstein (1,231 stars, last pushed today), licensed Apache-2.0. It adds 453 tokens to every session, about $0.0018 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.
review-guidelines compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| review-guidelinessipyourdrink-ltd/bernstein | Cursor rule | 1.2k | today | Apache-2.0 | A | 453 | Cursor |
| gsdNaridon-Inc/aura | Cursor rule | 56 | 5d ago | Apache-2.0 | A | 619 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 4d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |