History directories are the append-only record layer of Continuity. While state files hold the current value of each concern, history directories preserve every value that state files have ever held. WhenDocumentation 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.
STATE.md is overwritten, the old version lands in snapshots/. When a task is completed and removed from TODO.md, it goes to completed/. History never shrinks — old entries are preserved forever and new entries are appended alongside them.
Directory table
Each history directory is indexed by a root state file. The table below shows the full set, their naming patterns, and which state file each one connects to.| Directory | Class | Naming pattern | Indexed by |
|---|---|---|---|
completed/ | History | YYYY-MM-DD-task-slug.md | TODO.md |
journal/ | History | YYYY-MM-DD-turn-N.md | CONTEXT.md |
reflections/ | History | YYYY-MM-DD-topic-slug.md | LEARNINGS.md |
snapshots/ | History | YYYY-MM-DDTHH-MM-SS.md | STATE.md |
audits/ | History | YYYY-MM-DD-type-slug.md | STATE.md, LEARNINGS.md |
proposals/ | History | YYYY-MM-DD-topic-slug.md | PLAN.md |
setup/ | History | YYYY-MM-DD-tool-name.md | TOOLS.md |
artifacts/ | History | YYYY-MM-DD-name.ext | STATE.md, ARTIFACTS.md |
audits/ is indexed by both STATE.md and LEARNINGS.md — that is a mesh edge. One audit entry serves two state files. One file, two contexts. No duplication.Directory details
completed/ — Finished task records
completed/ — Finished task records
When a task is removed from
TODO.md, it moves here. Each entry documents the task, the result, evidence of completion, and any learnings. Removing a task from TODO.md without a corresponding completed/ entry is a protocol violation — evidence must exist before a task is considered done.Indexed by: TODO.mdNaming: YYYY-MM-DD-task-slug.md — e.g., 2026-06-27-fix-webhook.mdjournal/ — Narrative event log
journal/ — Narrative event log
Per-turn operational snapshots. When
CONTEXT.md captures a significant turn, the turn’s full context — what happened before, actions taken, result, and next context — is appended here. Provides a queryable narrative history of the agent’s work session by session.Indexed by: CONTEXT.mdNaming: YYYY-MM-DD-turn-N.md — e.g., 2026-06-27-turn-3.mdreflections/ — Learning records
reflections/ — Learning records
Detailed records of insights, behavioral corrections, and soft rules discovered through completed work. While
LEARNINGS.md holds distilled reusable rules, reflections/ holds the fuller narrative behind each learning — the event that triggered it, the failure mode observed, and the correction applied.Indexed by: LEARNINGS.mdNaming: YYYY-MM-DD-topic-slug.md — e.g., 2026-06-27-delegation-failure.mdsnapshots/ — Immutable recovery checkpoints
snapshots/ — Immutable recovery checkpoints
Every time
STATE.md is overwritten, the previous version is snapshotted here with a timestamp filename. This ensures no operational state is ever permanently lost. The agent can recover any previous state by loading the snapshot at the appropriate timestamp.Indexed by: STATE.mdNaming: YYYY-MM-DDTHH-MM-SS.md — e.g., 2026-06-27T14-30-00.mdaudits/ — Cross-cutting audit records
audits/ — Cross-cutting audit records
Security audits, code reviews, quality checks, and other assessments land here. Because audits are relevant to both current system health and to durable learnings,
audits/ is indexed by two state files: STATE.md and LEARNINGS.md. This is a concrete example of the mesh — one audit entry, two consumers, no duplication.Indexed by: STATE.md, LEARNINGS.mdNaming: YYYY-MM-DD-type-slug.md — e.g., 2026-06-27-security-audit.mdproposals/ — Plan evolution records
proposals/ — Plan evolution records
When a significant plan change is proposed or when a planning decision needs a durable record, it goes here.
PLAN.md holds the current phased plan; proposals/ holds the history of how the plan evolved and what alternatives were considered.Indexed by: PLAN.mdNaming: YYYY-MM-DD-topic-slug.md — e.g., 2026-06-27-api-redesign.mdsetup/ — Tool installation records
setup/ — Tool installation records
When a new tool is installed, configured, or a significant infrastructure change is made, the setup record goes here.
TOOLS.md holds the current capability registry; setup/ holds the installation history so the agent can trace how any tool was configured and reproduce that configuration if needed.Indexed by: TOOLS.mdNaming: YYYY-MM-DD-tool-name.md — e.g., 2026-06-27-caddy-setup.mdartifacts/ — Generated outputs and evidence
artifacts/ — Generated outputs and evidence
Generated files, reports, specs, and deliverables produced during agent work. The filename preserves the date and a descriptive name. Because artifacts are relevant to both the current project state and to the artifact inventory,
artifacts/ is indexed by both STATE.md and ARTIFACTS.md.Indexed by: STATE.md, ARTIFACTS.mdNaming: YYYY-MM-DD-name.ext — e.g., 2026-06-27-inventory.jsonEntry template formats
Each history directory ships with anENTRY.template.md. The YAML frontmatter IS the field specification — copy it, rename it, and fill in the values.
- completed/
- snapshots/
- journal/
- artifacts/
The never-modify rule
The agent enforces this rule explicitly:- Do not overwrite history files. Append only.
- Do not update state without preserving the old version. Snapshot before overwriting
STATE.md. - Do not mark tasks complete without evidence. A passing test, an artifact, a commit, or a review satisfies this requirement.