Claude Code readsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/bitwikiorg/continuity/llms.txt
Use this file to discover all available pages before exploring further.
CLAUDE.md automatically from the project root on every turn, and also discovers nested CLAUDE.md files in subdirectories as the agent moves through a project. This makes it the natural entry point for Continuity: place your boot instructions, state chain declarations, and load order in CLAUDE.md and Claude Code enforces them by self-reference — the file declares what state exists, and the agent follows its own specification as it runs.
Setup
Copy Continuity templates to your workspace
Copy the files matching your chosen tier from the Continuity repo into your project root. The Minimum tier is enough to start:Replace all
{{UPPER_CASE}} placeholders with your agent’s actual values before booting.Create or configure CLAUDE.md as the entry file
Claude Code does not auto-load Either approach works. Option A is simpler for new workspaces. Option B is useful when you share a workspace with runtimes that auto-load
AGENTS.md — it only loads CLAUDE.md. You have two options:Option A — Rename: Rename the pack’s AGENTS.md to CLAUDE.md. This makes CLAUDE.md the single authoritative entry file.Option B — Delegate: Keep AGENTS.md and create a minimal CLAUDE.md that delegates to it:AGENTS.md (Codex, Hermes, OpenClaw).Declare the load order in CLAUDE.md
CLAUDE.md should declare which state files to load on boot and in what order. A minimal declaration looks like this:MEMORY.md, TOOLS.md, PLAN.md, or any file your loop actually needs. Load only what the current task requires; do not load everything on every turn.Replace placeholders and run INIT.md on first boot
Search for any remaining
{{UPPER_CASE}} markers across all copied files and fill them in. Then prompt Claude Code to run the INIT.md reconstitution procedure:INIT.md runs nine stages: preflight, inspect, scan, load, reconcile, discover, validate, declare, and snapshot. It creates any missing files and emits READY when the state chain is valid.Writeback contract
Claude Code can read and write files directly. After completing meaningful work, the agent must update the state files whose claims are no longer accurate. The minimum writeback set is:| File | What to update |
|---|---|
STATE.md | New operational truth — what IS now |
TODO.md | Mark completed items; add new tasks |
SNAPSHOT.md | Refresh the restoration anchor |
completed/ | Move done tasks here with evidence |
LEARNINGS.md— if new insights emerged during the sessionMEMORY.md/memory/— if durable facts changedPLAN.md— if the intended sequence shiftedsnapshots/— if STATE.md was overwritten (preserve old value first)
Auto-injection and AGENTS.promptinclude.md
Claude Code auto-loadsCLAUDE.md natively — it does not use AGENTS.promptinclude.md as an auto-injection mechanism. AGENTS.promptinclude.md is for runtimes such as Agent Zero and Cursor that support a prompt-include protocol. For Claude Code, the equivalent is declaring your load order directly inside CLAUDE.md so the agent loads the right state files on every turn by following its own specification.
If you also use runtimes that do read AGENTS.promptinclude.md (Agent Zero, Cursor), you can keep the file in your workspace for those runtimes. The full required-tier list from the Continuity repository:
Nested workspace example
All Continuity files can be nested into project subdirectories. Claude Code discovers nestedCLAUDE.md files as the agent descends into subdirectories, building a scoped state chain:
/backend/auth/, it loads the full chain from root to the active scope:
/CLAUDE.md— global identity/STATE.md— project status/backend/CLAUDE.md— backend-scoped instructions/backend/STATE.md— subsystem status/backend/auth/STATE.md— current task context
CLAUDE.md vs AGENTS.md
Either
CLAUDE.md or AGENTS.md can serve as the Continuity entry file — the system does not prescribe which one. The only constraint is that the file must be the one your runtime auto-loads or is pointed to explicitly. If you share a workspace across multiple runtimes (e.g., Claude Code and Codex), the Option B delegation pattern — a CLAUDE.md that reads AGENTS.md — lets you maintain a single authoritative entry file while satisfying both runtimes’ auto-load conventions.