State files are the core of Continuity. They are plain Markdown files that live at the workspace root and hold the agent’s current understanding of reality: who it is, what it is doing, what it knows, and what constraints govern its behavior. Each file is overwritten in place when reality changes — and before overwriting, the old value is preserved in the paired history directory. This section documents every state file, organized by cluster, with precise rules for when and how to update each one.Documentation 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.
What state files are
State files are current-value stores. Every file answers a single question about the present — not the past, not a log, not an explanation of how things got here. If you need to record history, use a nested history directory. If you need to explain a decision, use thecompleted/ journal. State files show only Y, never “was X, now Y.”
- One file per concern — identity, state, memory, capability, safety are all separate files.
- Overwritten in place on every meaningful update.
- The old value lands in the paired history directory (e.g.,
snapshots/) before overwriting. - Never used as logs, narratives, or event records.
Complete file table
| File | Cluster | Purpose |
|---|---|---|
IDENTITY.md | Identity | Instance identity, relationships, rebinding policy |
SOUL.md | Identity | Essence, purpose, philosophy, constitution |
SELF.md | Identity | Operating model, voice, hard invariants |
USER.md | Identity | Human / operator model |
INIT.md | Boot | 9-stage reconstitution procedure |
AGENTS.md | Boot | Bootloader, runtime params, project guard |
BOOT.md | Boot | Optional lightweight every-wake cycle |
BOOTSTRAP.md | Boot | First-run identity discovery (self-destructing) |
STATE.md | State | Current operational truth |
CONTEXT.md | State | Per-turn operational snapshot |
PLAN.md | State | Intended sequence, phases, milestones |
TODO.md | State | Tactical task index |
TASKS.md | State | System and housekeeping tasks |
SNAPSHOT.md | State | Restoration anchor |
MEMORY.md | Memory | Current memories and index to entries |
KNOWLEDGE.md | Memory | Catalog of knowledge documents |
LEARNINGS.md | Memory | Soft rules, insights gained |
TOOLS.md | Capability | Capability registry, environment notes |
INFRASTRUCTURE.md | Capability | Live substrate inventory |
POTENTIAL.md | Capability | Structure / potential / void model |
CONTEXT_BUDGET.md | Capability | Prompt hygiene and context limits |
EVENTS.md | Capability | Recent event summary |
ARTIFACTS.md | Capability | Generated artifact inventory |
WARNING.md | Safety | Hard limits, pre-action checklist |
CHECKPOINT.md | Safety | Approval gate before irreversible actions |
AGENT_ACTIONS.md | Runtime | Action reference (conceptual) |
BINDING.schema.json | Runtime | Machine-readable binding contract |
BACKLOG.md | State | Rolling inbox for pre-triage |
MISSIONS.md | State | High-level priorities |
HEARTBEAT.md | State | Periodic check protocol |
AGENTS.promptinclude.md | Meta | Auto-injection config |
USAGE.md | Meta | Quick start guide |
CHANGELOG.md | Meta | Version history |
Clusters
🧬 Identity cluster
The identity cluster holds who the agent is. These files are the most stable in the system — they change only when the agent’s fundamental nature, operator, or operating model changes.IDENTITY.md — Instance identity
IDENTITY.md — Instance identity
SOUL.md, SELF.md, AGENTS.mdSOUL.md — Essence and purpose
SOUL.md — Essence and purpose
SELF.md, WARNING.mdSELF.md — Operating model
SELF.md — Operating model
SOUL.md but still stable. Defines how the agent talks, reasons, and acts. Human-owned: the operator writes this file.Connected to: SOUL.md, WARNING.md, AGENTS.mdUSER.md — Operator model
USER.md — Operator model
IDENTITY.md, AGENTS.md🔄 Boot cluster
The boot cluster governs how the agent starts up, reconstitutes itself, and loads its state chain. These files are procedural — they define the boot loop, not the agent’s content.INIT.md — Reconstitution procedure
INIT.md — Reconstitution procedure
PREFLIGHT → INSPECT → SCAN → LOAD → RECONCILE → DISCOVER → VALIDATE → DECLARE → SNAPSHOT. Runs on first boot and every session start. May create AGENTS.md if it does not exist. The agent follows this file’s instructions to reconstruct its full operational state from scratch.Stages: PREFLIGHT, INSPECT, SCAN, LOAD, RECONCILE, DISCOVER, VALIDATE, DECLARE, SNAPSHOTAGENTS.md — Bootloader and project guard
AGENTS.md — Bootloader and project guard
BOOT.md — Lightweight wake cycle
BOOT.md — Lightweight wake cycle
CHECK → ACT → REPORT cycle for periodic heartbeat operations. Used by agents that need to perform a quick health check on every wake without running the full 9-stage INIT.md procedure. Suitable for scheduled or daemon-style agents.When to use: Agents running on a recurring scheduleBOOTSTRAP.md — Identity discovery ritual
BOOTSTRAP.md — Identity discovery ritual
IDENTITY.md is written, BOOTSTRAP.md is deleted. It should not be present in a fully initialized workspace.Lifecycle: Create on first boot → delete after identity established📍 State cluster
The state cluster holds the agent’s current operational truth: what it is doing, what the plan is, and what tasks are active. These files change frequently — after every meaningful action.STATE.md — Current operational truth
STATE.md — Current operational truth
snapshots/ first.Mesh indexes: snapshots/, audits/, artifacts/Update trigger: Any change to project status, infrastructure, or active objectivesCONTEXT.md — Per-turn snapshot
CONTEXT.md — Per-turn snapshot
journal/ for persistent turn history.Mesh indexes: journal/Update trigger: After each major step in a multi-step operationPLAN.md — Phased plan
PLAN.md — Phased plan
TODO.md — PLAN.md is the strategic roadmap, TODO.md is the tactical task list. Updated when phases complete or when the plan changes substantially.Mesh indexes: proposals/Update trigger: Phase completion, plan revisionTODO.md — Tactical task index
TODO.md — Tactical task index
completed/. No strikethrough, no “RESOLVED” markers, no completed sections. Present means active; absent means done. Renumber remaining items after removal — no gaps.Mesh indexes: completed/Update trigger: Task starts, completes, or is addedTASKS.md — System and housekeeping tasks
TASKS.md — System and housekeeping tasks
TODO.md in that it holds recurring or system-level tasks rather than project work. In orchestrator configurations, multiple agents may read and write this file.Connected to: AGENTS.md, EVENTS.mdSNAPSHOT.md — Restoration anchor
SNAPSHOT.md — Restoration anchor
SNAPSHOT.md should always reflect a state the agent can confidently resume from.Update trigger: After every successful checkpoint or major deliverable🧠 Memory cluster
The memory cluster connects the agent’s root state to its curated knowledge stores. These files are indexes and summary surfaces — the actual content lives in thememory/ and knowledge/ library directories.
MEMORY.md — Durable facts index
MEMORY.md — Durable facts index
memory/ library directory. Does not duplicate memory entry content — it holds current recalled facts and a manifest of what exists in memory/. Update when new durable facts are verified or when memory entries are added or retired.Mesh indexes: memory/Update trigger: New fact verified, memory entry added or retiredKNOWLEDGE.md — Knowledge catalog
KNOWLEDGE.md — Knowledge catalog
knowledge/ directory. Points to research reports, external documentation excerpts, and domain notes. Update when new knowledge documents are added or when existing documents are superseded.Mesh indexes: knowledge/Update trigger: Knowledge document added or supersededLEARNINGS.md — Soft rules and insights
LEARNINGS.md — Soft rules and insights
reflections/, audits/Update trigger: New insight gained from completed work🛠️ Capability cluster
The capability cluster documents what the agent can use: tools, infrastructure, dormant capabilities, context limits, and outputs.TOOLS.md — Capability registry
TOOLS.md — Capability registry
setup/ for installation records.Mesh indexes: setup/INFRASTRUCTURE.md — Live substrate inventory
INFRASTRUCTURE.md — Live substrate inventory
POTENTIAL.md — Structure / potential / void
POTENTIAL.md — Structure / potential / void
CONTEXT_BUDGET.md — Prompt hygiene
CONTEXT_BUDGET.md — Prompt hygiene
EVENTS.md — Event log pointer
EVENTS.md — Event log pointer
ARTIFACTS.md — Generated artifact inventory
ARTIFACTS.md — Generated artifact inventory
artifacts/🚨 Safety cluster
The safety cluster holds the agent’s hard constraints and approval gates. These files are read before any mutating action.WARNING.md — Hard limits
WARNING.md — Hard limits
AGENTS.md (child), SELF.md, SOUL.mdCHECKPOINT.md — Approval gate
CHECKPOINT.md — Approval gate
BINDING.schema.json for machine-readable checkpoint contracts.Connected to: BINDING.schema.json, WARNING.md⚙️ Runtime files
Runtime files are optional and primarily used at the Advanced tier for recursive multi-agent systems.BINDING.schema.json — Machine-readable contract
BINDING.schema.json — Machine-readable contract
AGENT_ACTIONS.md — Action reference
AGENT_ACTIONS.md — Action reference
AGENTS.promptinclude.md — Auto-injection config
AGENTS.promptinclude.md — Auto-injection config
Writeback rules
After any meaningful change to workspace reality, the agent updates the state files whose claims are no longer accurate.Task completed
TODO.md, renumber remaining items, append to completed/YYYY-MM-DD-task-slug.md.Content discipline
State files hold current state only. They are not logs, not narratives, not explanations.| Content type | In state file? | Where instead |
|---|---|---|
| Current state, active tasks, status | ✅ Yes | — |
| Logs, execution records, event accounts | ❌ No | completed/ journal |
| Explanations of why something was done | ❌ No | completed/ journal |
| Narrative describing a reorganization | ❌ No | Just update the path |
| Historical context (“was X, now Y”) | ❌ No | Just show Y |