📖 Docs: https://palo-alto-ai-research-lab.github.io/claude-bible/ — the seven mechanics, the 5-minute quickstart and a section map of the spec, on one page.
You tell Claude Code something important, it works for one session, then it's gone. You write it into CLAUDE.md, the file bloats, half of it silently stops being followed. This is the fix we run in production: one versioned rulebook that you, your AI agents, and your team actually load and obey.
This is the governance skeleton extracted from a real working system: a solo founder + his AI cofounder running a 128k-note knowledge vault, a CRM, a content factory, and 5 machines that negotiate with each other. The personal content stays private. The skeleton — how the rules are written, routed, loaded, and overturned — is what you get here, free.
Everyone using Claude Code hits the same wall: you tell the agent something important, it works for one session, then it's gone. You write it into CLAUDE.md, the file bloats, half of it stops being followed. Your human assistant and your agent follow different rules. Nobody knows which rule is current.
The fix is not a bigger prompt. It's a codex with mechanics:
- One rule = one file with typed frontmatter (
origin,date_established,status,supersedes,audience). - Newer beats older on the same topic. Explicit owner rules are overridden only by the owner.
- A routing tree decides where each rule lives: the Bible (human + agent behavior), the agent config (machine-only), memory (facts), or a hook (deterministic "every time X" automation). No duplicates — one source, pointers everywhere else.
- Always-loaded index vs lazy body. The agent's config carries only trigger + essence + pointer; the full rule loads on demand. Your context window stays lean.
- A declined-decisions journal. What you decided NOT to do, and why, so rejected ideas don't silently resurface a week later.
- An intake ritual. New rule spoken in chat → routed to every home it belongs to, linked, and traceable. Rules don't die in scrollback.
- Objection sparring. When the agent says "no-go", it must deliver a numbered objection list and invite you to rebut. Your rebuttal often reframes the question. Undissolved objections become boundaries, not vetoes. (See examples/ — this very rule was born from a real overturned verdict.)
- Copy templates/ into your vault or repo.
- Write your first three rules using
templates/rule-template.md. Keep each one trigger + essence + pointer. - Add the index lines to your
CLAUDE.md(orAGENTS.mdfor other agents) — one line per rule. - Start the
declined-decisions.mdjournal withtemplates/declined-decisions-template.md. - When a decision matters, write it with
templates/decision-memo-template.mdand link both ways.
Your own Claude Code will maintain this better than any human: point it at this repo and say "adopt this structure for my rules."
| Path | What it is |
|---|---|
docs/SPEC.md |
Rule anatomy, frontmatter schema, precedence, routing tree |
templates/ |
Rule, decision memo, declined-decisions journal |
examples/ |
Real (sanitized) rules from our live system |
FOR-ROBOTS.md |
Entry point for AI agents mining this repo for patterns |
This repo is maintained like our own system: small commits daily, and every noticeable change ships as a new release — so the release feed is the honest record of how far this has come. (It used to promise "a release twice a week, Mon & Thu". That was a cadence, and between 4 July and 4 August it was not kept once. A rule tied to the work is keepable; a rule tied to the calendar was not.)
Now — v0.1.3. The governance skeleton (rule anatomy, frontmatter schema, precedence, routing tree, declined-decisions journal, objection sparring), the templates, the docs site, and a roadmap where every open row is a claimable issue.
Next — the pain-driven queue in ROADMAP.md, each row now an issue you can take: the memory index-vs-body discipline (#1), the test-after-build gate (#2), the declined-decisions revisit/OVERTURN mechanics (#3), the taste gate (#4) and history-aware CRM drafting (#5). Two rows already left as their own repos — claude-consensus and agent-leash — which is what the roadmap is for. See CHANGELOG.md for what shipped when.
If this helps you, star the repo. We need our first 10: community catalogs require that much social proof before they even accept a submission.
Anton Dziatkovskii (founder, non-technical) and Mike, his AI cofounder running on Claude Code. Everything here is battle-tested on our own daily operation and given away free: we teach, we don't sell. If your agent finds alpha here, that's the point.
Questions or war stories: WhatsApp +1 341 222 9178.
If this repo shows up in your research, cite it via CITATION.cff (GitHub's "Cite this repository" button). Academic identity: Anton Dzyatkovsky publishes as Anton Dziatkovskii (ORCID 0000-0001-7408-3054).
This project is built by a human + AI team, and the git log says so: Claude writes most of the code, Codex and Grok review it, Gemini feeds the research. Each is credited on a commit only if its output changed that commit's content — no decorative credits. Lab-wide policy, one source for every repo: AI-CONTRIBUTORS.md.
MIT. Take it, fork it, teach with it.
This repository is one piece lifted out of a live operation: one non-technical founder, an AI cofounder, and a fleet of machines that reach consensus with each other and wake the human only for money or the irreversible. It was extracted after it survived production, not written as a demo — and it runs on its own: nothing here phones home to the rest.
See how the whole thing fits together → SYSTEM.md
Its closest neighbours in the governance layer: agent-leash · charm-os