Skip to content

Claude Bible

Make Claude Code behave consistently across repos, sessions and humans: rules-as-files governance with precedence, declined-decisions journal, objection sparring. Sanitized…

Install: git clone https://github.com/tonydzi/claude-bible

Works with Claude Code · 11 GitHub stars

Install

$git clone https://github.com/tonydzi/claude-bible

Install command taken from the project's README or registry entry. Always review code before running it.

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

📖 Docs: https://tonydzi.github.io/claude-bible/ — the nine mechanics, the 5-minute quickstart and a section map of the spec, on one page.

Why "Bible" and not "config"? The word is functional, not sacred — the argument, the prior art, and what we refuse to claim: docs/why-a-bible.md.

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: one engineer and Claude as implementation collaborator 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. One rule = one door. A rule with no caller is filed and never fires. Every new rule names the skill, command or hook that will pull it in — the codex itself is not a door, it is read, not called. We measured 19 of 25 fresh rules with no door; one sat 42 days unused.
  8. Writing the rule is never gated by the file's size. The session that hears a rule writes it, red zone or not, and drops a one-line size report. Compacting the index is a separate daily job with its own owner — otherwise "the file is too big" quietly becomes how rules die in scrollback.
  9. 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)

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related