Skip to main content
Short, working recipes for common KiwiFS tasks. Each one links to the page with the full reference.

Agent memory knowledge base

Start from the memory template and let agents read the playbook on connect:
Terminal
knowledge
SCHEMA.md
playbook.md
index.md
log.md
pages
episodes
.kiwi
An agent calls kiwi_context first, then follows the operations in the playbook. See Agent playbook and Init templates.

Agent writes

Terminal
X-Provenance adds a derived-from entry to the page’s frontmatter.
Terminal
Terminal
Terminal
See Alternate protocols.
Terminal

MCP tool sequences

See Episodic memory.
See Widgets.
Some plans need a person to approve them in the web UI first. See Refactor.

Query with DQL

See DQL. Write a manifest, preview it, then apply it as one commit:
restructure.yaml
Terminal
Every link to a moved page is rewritten in the style it was written in. See Refactor.

Import

See Import overview.

Export

See Document export.

Production config

.kiwi/config.toml
See Configuration and Authentication.

Docker

Terminal
The image runs kiwifs serve --root /data by default. See Docker.

Go embed

main.go
See Go embed.

FAQ

Common questions.

MCP

Every MCP tool.
Last modified on October 19, 2026