kiwifs init scaffolds a knowledge directory from a built-in template. Each template provides a directory layout, sample files, a .kiwi/config.toml, and optional agent-facing documents.
Available templates
| Template | Best for | Starter files |
|---|---|---|
knowledge | LLM-maintained knowledge bases | SCHEMA.md, playbook, episodes, index, log, sample page |
wiki | Team wikis | Sample pages, index |
runbook | Ops and incident response | Runbook starters, checklists |
research | Research notes and literature | Note structure, bibliography |
tasks | Task tracking with workflows | Workflow schema, Kanban-ready frontmatter |
blank | Empty starting point | .kiwi/config.toml only |
knowledge (default)
Theknowledge template is designed for AI agents that maintain a structured knowledge base. It includes everything an agent needs to onboard itself.
Directory structure
Key files
SCHEMA.md
SCHEMA.md
Describes the knowledge base layout, frontmatter field tables, and naming conventions. Agents read this (via
kiwi_context or kiwi://schema) to understand where to write and what metadata to set..kiwi/playbook.md
.kiwi/playbook.md
Step-by-step MCP sequences for standard operations: ingest, query, deep retrieval (peek, graph_walk, section), memory consolidation, lint loop, canvas generation, and workflow management. Includes a cost table of tools to help agents minimize unnecessary calls.
.kiwi/rules.md
.kiwi/rules.md
Harness-specific behavior rules. Export for your agent tool:
index.md
index.md
Auto-maintained table of contents that agents update after adding pages. Seeds with a link to
pages/getting-started.log.md
log.md
Append-only chronological record. Agents append a line after each operation for audit trail and observability.
episodes/
episodes/
Directory for episodic memory. Agents write observations here as short-lived notes with
memory_kind: episodic frontmatter. Periodically consolidate into durable pages using kiwi_memory_report. See Episodic memory.wiki
A structured team wiki with decision records, onboarding guides, and process documentation.Directory structure
Workflow page templates
Workflow page templates
The wiki template includes slash-command templates in
.kiwi/templates/ for common page types: architectural decision records, meeting notes, onboarding checklists, product specs, and standard operating procedures. These appear in the web UI’s “new page” menu.runbook
Operations-focused template with incident response procedures, postmortem templates, and escalation paths.Directory structure
severity and on_call frontmatter fields.
research
Research template with structured note-taking, experiment tracking, and literature review pages.Directory structure
hypothesis, status, and result frontmatter fields. Literature files track authors, year, and doi.
tasks
Task tracking template with a pre-configured workflow, JSON Schema validation, and Kanban-ready frontmatter.Directory structure
Task frontmatter
Task frontmatter
Each task file uses structured frontmatter validated by The
.kiwi/schemas/task.json:status field drives Kanban board grouping. The workflow and state fields enable state-machine transitions via Workflows.JSON Schema validation
JSON Schema validation
The See Schemas.
task.json schema in .kiwi/schemas/ validates that required fields (title, status) are present and that status is one of the allowed values. Enable enforcement with:.kiwi/config.toml
Kanban visualization
Kanban visualization
With the workflow configured, the web UI renders tasks as a Kanban board grouped by state. Use the API to advance tasks programmatically:
blank
Minimal template — creates only.kiwi/config.toml. Use this when you want to start from scratch or bring your own directory structure.
Listing templates via API
id, name, and description.
Related
Agent playbook
How agents onboard using SCHEMA.md and playbook.md.
Episodic memory
The episode/consolidation pattern used by the knowledge template.
Configuration
Full .kiwi/config.toml reference.
Quickstart
Install and run KiwiFS in 60 seconds.