kiwifs init template ships agent-facing documents beside your markdown pages. Together they tell agents where to write, what frontmatter to use, and which MCP tools to call.
Core files
| File | Purpose |
|---|---|
SCHEMA.md | Directory layout, frontmatter field tables, naming conventions |
.kiwi/playbook.md | Step-by-step MCP sequences for each operation |
.kiwi/rules.md | Harness-specific behavior (Cursor, Claude, etc.) |
index.md | Auto-maintained table of contents |
log.md | Optional append-only chronological record |
The
knowledge template also includes episodes/ for episodic memory. See Episodic memory.Load context in one call
- MCP
- REST
schema, playbook, and index in one response.kiwi://schema for the schema document alone.
Playbook operations
Ingest — process a new source
Ingest — process a new source
Query — answer a question
Query — answer a question
Remember — save episodic observations
Remember — save episodic observations
Consolidate — merge episodes into durable pages
Consolidate — merge episodes into durable pages
Lint — audit health
Lint — audit health
Rules for your harness
Export.kiwi/rules.md in a format your agent tool understands:
GET /api/kiwi/rules, PUT /api/kiwi/rules — see Utilities API.
Provenance on writes
KiwiFS injects
derived-from into frontmatter automatically from these headers.Related documentation
MCP
Full tool reference.
Episodic memory
Episodes, consolidation, and merge reports.
Schemas
JSON Schema validation on writes.
Examples
Practical workflow recipes.