Skip to content

Repository files navigation

The Bible Framework — one behavioral codex for you, your AI agents, and your team

📖 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.

The problem this solves

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:

  1. One rule = one file with typed frontmatter (origin, date_established, status, supersedes, audience).
  2. Newer beats older on the same topic. Explicit owner rules are overridden only by the owner.
  3. 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.
  4. 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.
  5. A declined-decisions journal. What you decided NOT to do, and why, so rejected ideas don't silently resurface a week later.
  6. An intake ritual. New rule spoken in chat → routed to every home it belongs to, linked, and traceable. Rules don't die in scrollback.
  7. 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.)

Quickstart (5 minutes)

  1. Copy templates/ into your vault or repo.
  2. Write your first three rules using templates/rule-template.md. Keep each one trigger + essence + pointer.
  3. Add the index lines to your CLAUDE.md (or AGENTS.md for other agents) — one line per rule.
  4. Start the declined-decisions.md journal with templates/declined-decisions-template.md.
  5. When a decision matters, write it with templates/decision-memo-template.md and 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."

What's in the box

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

Versioning and roadmap

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.

Who made this

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.

Cite this work

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).

AI contributors

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.

License

MIT. Take it, fork it, teach with it.


🧩 One piece of a working system

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

About

Make Claude Code behave consistently across repos, sessions and humans: rules-as-files governance with precedence, declined-decisions journal, objection sparring. Sanitized from a live production system. Free, MIT.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

9 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors