Skip to main content
kiwifs init scaffolds a knowledge directory from a built-in template. Each template provides a directory layout, sample files, a .kiwi/config.toml, a SCHEMA.md, a playbook.md, and optional workflows or JSON Schemas.

Available templates

In the web UI and cloud dashboard, templates are also available when creating a new workspace or space.
Every template (except blank) includes two agent-facing documents:
  • SCHEMA.md — directory layout, frontmatter fields, and naming conventions. Agents read this via kiwi_context or kiwi://schema.
  • playbook.md — step-by-step MCP tool sequences for standard operations, with a cost table to minimize unnecessary calls.
Export harness-specific rules for your agent tool:

kb

The kb (knowledge base) template is designed for governed, high-quality knowledge bases with article verification workflows.

Directory structure

Articles follow a draft → review → verified → stale → archived lifecycle. The janitor flags verified articles past their review_date as stale. Enable schema enforcement to require title, type, and status on every article.

wiki

A structured team wiki with decision records, onboarding guides, and process documentation.

Directory structure

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.

memory

The memory template implements the episodic/semantic memory pattern. Agents write short-lived observations to episodes/ and periodically consolidate them into durable pages.

Directory structure

Episodes use memory_kind: episodic frontmatter with optional expires, scope, and validity fields. Use kiwi_memory_report to find episodes ready for consolidation, then merge them into durable pages with merged-from provenance tracking. See Episodic memory.

tasks

Task tracking template with a pre-configured workflow, JSON Schema validation, and Kanban-ready frontmatter.

Directory structure

Each task file uses structured frontmatter validated by .kiwi/schemas/task.json:
The status field drives Kanban board grouping. The workflow and state fields enable state-machine transitions via Workflows.
The 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
See Schemas.
With the workflow configured, the web UI renders tasks as a Kanban board grouped by state. Use the API to advance tasks programmatically:

data

Structured data collections with DQL dashboards and import connectors.

Directory structure

Dashboard pages use kiwi-view: true and kiwi-query frontmatter to auto-generate tables and charts from collection data. Pair with kiwi-chart fenced blocks for visual summaries. See DQL.

cms

Git-native headless CMS with an editorial workflow, Atom/JSON feeds, and a published reader at /p/*.

Directory structure

Publish pages to the reader at /p/{path} and subscribe via GET /api/kiwi/feed.xml (Atom) or GET /api/kiwi/feed.json (JSON Feed). The editorial workflow manages content through review stages before publication. See Publishing.

runbook

Operations-focused template with incident response procedures and execution staleness tracking.

Directory structure

Each runbook uses severity (P1-P4), services, trigger, and last_executed frontmatter. The janitor flags runbooks that have not been executed within a configurable staleness window. Schema validation ensures required fields are present.

adr

Architecture Decision Records using the MADR format with supersession chains and contradiction detection.

Directory structure

ADRs track supersedes and contradicts typed links in frontmatter. The graph view highlights contradiction edges. The workflow enforces valid status transitions. Use adr_number for sequential numbering with auto-increment via [sequences] config.

prompt

Versioned prompt management with rubrics and evaluation metrics.

Directory structure

Each prompt file includes version, model, and temperature frontmatter. Rubric files define scoring criteria. Use kiwi_eval to benchmark search quality against rubrics. Git versioning provides a full history of prompt iterations.

research

Research template with structured note-taking, reading workflows, and citation tracking.

Directory structure

Paper files track authors, year, doi, bibtex, and reading status via the reading workflow. Use kiwi_cite to generate citations. The graph view visualizes citation networks between papers.

log

Append-only event log with daily partitioning and sequence number validation.

Directory structure

The log template configures validate_write guards to enforce append-only semantics. Sequence numbers (<!-- seq:N --> markers) are validated by the kiwifs check CLI to detect gaps or reordering. Daily files partition events by date with FLATTEN support in DQL queries.

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

Returns an array of template objects with id, name, and description.

Agent playbook

How agents onboard using SCHEMA.md and playbook.md.

Workflows

State machines that drive Kanban boards and editorial pipelines.

Schemas

JSON Schema validation on writes.

Configuration

Full .kiwi/config.toml reference.

Episodic memory

The episode/consolidation pattern used by the memory template.

Quickstart

Install and run KiwiFS in 60 seconds.
Last modified on June 25, 2026