AGENTS.md · sipyourdrink-ltd/bernstein
AGENTS.md from sipyourdrink-ltd/bernstein: 107 lines covering Overview, Module map, Directory context files, Build & test and more.
Template by sipyourdrink-ltd
Chalk Labs
Need help deploying AGENTS.md · sipyourdrink-ltd/bernstein?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/sipyourdrink-ltd/bernstein/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-orchestration, code-generation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 107 lines
- File
AGENTS.md
Sections
- Overview
- Module map
- Directory context files
- Build & test
- Setup
- Architecture (entry points)
- Git workflow
- Agent roles
- Documentation duty
First lines (shown under the repo's Apache-2.0 license)
# 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-check ``` ## Setup 1. `uv sync` to install + lock the project. 2. `uv run python -m bernstein --help` (or your equivalent entry point). 3. See [Build & test](#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. - `adversary` - `analyst` - `architect` - `backend` - `ci-fixer` - `devops` - `docs` - `frontend` - `manager` - `ml-engineer` - `prompt-engineer` - `qa` - `resolver` - `retrieval` - `reviewer` - `security` - `visionary` - `vp` ## Documentation duty Every PR that adds or changes a feature MUST update docs in the same PR: - User-visible behaviour: update the relevant `README.md` section. - Operator workflows: update `docs/operations/<area>.md`. - Public API surface: regenerate `docs/api/` schemas. - Architecture or new module: update `docs/sdd/` and run `bernstein agents-md sync` so AGENTS.md, CLAUDE.md, `.goosehints`, `CONVENTIONS.md`, and `.cursor/rules/*.mdc` stay 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.
Signals
- Stars
- 1,330
- Forks
- 185
- Open issues
- 195
- Contributors
- 118
- Last commit (this folder)
- Oct 2, 2026 (28 days ago)
- Last release
- Oct 15, 2026 (15 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/sipyourdrink-ltd/bernstein
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sipyourdrink-ltd
- 0.830score
bernstein-status
sipyourdrink-ltd
Show Bernstein orchestrator status - active agents, task progress, costs, and alerts.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.830score
bernstein-quality
sipyourdrink-ltd
Show quality metrics for Bernstein runs - success rates per model, lint/test pass rates, completion time distributions.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.830score
bernstein-create-task
sipyourdrink-ltd
Create a new task in the Bernstein orchestrator.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.830score
bernstein-cost
sipyourdrink-ltd
Show detailed cost breakdown and budget status for the Bernstein orchestrator.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.830score
bernstein-run
sipyourdrink-ltd
Run a verified multi-agent goal with Bernstein.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.830score
bernstein-plan
sipyourdrink-ltd
Create and manage multi-step execution plans in Bernstein.
SkillAFreshness: A★ 1.3KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · sipyourdrink-ltd/bernstein running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · sipyourdrink-ltd/bernstein. Agent Mart. https://agentmart.dev/templates/sipyourdrink-ltd-bernstein-agents-md (last updated 2026-10-24)