Library directories are the curated knowledge stores of Continuity. Unlike history directories — which are append-only and grow monotonically — library directories are maintained over time: entries can be added, updated, or retired as facts change. There are two library directories: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.
memory/ for structured memory entries with a schema and index, and knowledge/ for topic-organized reference documents. They serve different purposes and must be kept separate.
The two library directories
| Directory | Class | Naming pattern | Indexed by | Has schema? |
|---|---|---|---|---|
memory/ | Library | namespace-topic-slug.md | MEMORY.md | Yes (SCHEMA.md) |
knowledge/ | Library | topic-slug.md | KNOWLEDGE.md | No |
memory/ — Structured memory entries
Thememory/ directory holds durable facts organized by topic and namespace. Each entry is a structured Markdown file with YAML frontmatter that defines its metadata, trust tier, and retention policy. The directory also contains INDEX.md (a manifest of all entries with tags and mesh connections) and SCHEMA.md (the full frontmatter specification).
Directory structure
Entry naming
Memory entries follow the patternnamespace-topic-slug.md. Examples:
semantic-server-ip.md— a durable fact about server identityprocedural-caddy-deploy.md— a reusable deployment methodepisodic-transfer-2026-06-16.md— a significant past eventworking-current-auth-task.md— temporary working context
Entry schema (YAML frontmatter)
Every memory entry uses this frontmatter structure:Namespaces
| Namespace | Purpose | Example |
|---|---|---|
semantic | Durable facts | ”Server IP is 192.0.2.1” |
procedural | Reusable methods | ”How to deploy via Caddy” |
episodic | Important events | ”Transfer completed 2026-06-16” |
working | Temporary context | ”Current task: fix webhook” |
Trust tiers
| Tier | Meaning |
|---|---|
| Verified | File or tool confirmed, confidence ≥ 0.9 |
| Partner | Partner-echoed; cross-check before acting |
| Extracted | Extracted from raw material |
| Inferred | Assumed; confidence < 0.9 |
Delivery types
Memory entries have two delivery types that control when they are loaded:Latent
Auto-injected on boot. These entries are loaded into the agent’s context on every session start. Use for facts the agent needs available without searching — identity anchors, critical infrastructure facts, hard limits.
Working
Search on demand. These entries are retrieved when relevant, not pre-loaded. Use for facts the agent may need but does not need constantly — past events, reference procedures, domain-specific knowledge.
INDEX.md — The manifest
memory/INDEX.md is the manifest of all entries in the memory/ directory. It lists every entry with its tags and mesh connections. The index is what allows the agent to discover and navigate memory entries without reading every file. Update it whenever an entry is added, retired, or significantly changed.
Weekly surveillance routine
The memory system requires periodic maintenance:Check staleness
Flag working entries not updated in more than 30 days; flag episodic entries not updated in more than 90 days.
Regenerate JSON index
If using a JSON index for vector retrieval, regenerate
memory/index.json from INDEX.md.knowledge/ — Reference documents
Theknowledge/ directory holds topic-organized reference documents: research reports, external documentation excerpts, domain notes, and curated reference material. Unlike memory/, it has no INDEX.md, no SCHEMA.md, and no YAML frontmatter requirement. It is structured by topic, not by date.
Directory structure
Entry naming
Knowledge entries follow the patterntopic-slug.md. Examples:
api-rate-limits.mdauth-patterns.mdpostgres-tuning.md
Characteristics
- No schema. Knowledge documents are free-form reference material — they don’t require YAML frontmatter.
- No index.
KNOWLEDGE.mdat the workspace root serves as the catalog. Theknowledge/directory itself has no manifest file. - Topic-organized, not date-organized. Entries are named by topic, not by date. They can be updated in place as the reference material evolves.
- Curate freely. Add documents when new reference material is discovered. Update in place when facts change. Retire when superseded.
Connected to
KNOWLEDGE.md (the root state file) catalogs what exists in knowledge/. Update KNOWLEDGE.md when documents are added or superseded.
Memory vs Knowledge: key differences
| Aspect | memory/ | knowledge/ |
|---|---|---|
| Structure | Dated entries with YAML frontmatter | Topic-organized documents, free-form |
| Schema | Yes — SCHEMA.md defines the spec | No schema required |
| Index | Yes — INDEX.md is the manifest | No index; KNOWLEDGE.md is the catalog |
| Naming | namespace-topic-slug.md | topic-slug.md |
| Update cadence | On significant events | On research or discovery |
| Delivery | Latent (auto-inject) or working (search) | Search on demand |
| Root state file | MEMORY.md | KNOWLEDGE.md |
| Use case | Durable facts, rules, events, working context | Reference docs, research, domain notes |