akm Multi‑Wiki Support: Structured Knowledge Bases for Agents
Create a wiki with akm wiki create, stash sources, run akm wiki ingest, and lint to enforce structure.
Create a wiki with akm wiki create, stash sources, run akm wiki ingest, and use akm wiki lint to enforce structure.
Summary
akm now supports multi‑wiki, where each wiki is a named subdirectory under ~/akm/wikis/ with a fixed structure: schema.md, index.md, log.md, raw/, and content pages.
schema.md defines page kinds, voice, and contradiction policy; index.md catalogs all pages; log.md records an append‑only activity log; raw/ holds immutable ingested sources.
The akm wiki stash command copies sources into raw/ with unique slugs, preventing accidental overwrites.
akm wiki ingest prints a workflow recipe for the agent to execute, while akm wiki pages lists generated pages.
akm wiki lint performs deterministic structural checks: orphan pages, broken xrefs, missing descriptions, uncited raw files, and stale indexes.
This division of labor lets akm enforce invariants while the agent focuses on synthesis and updates, ensuring a reliable, searchable knowledge base.
Key changes
- Introduction of multi‑wiki support with fixed directory structure
- schema.md defines page kinds and policies
- index.md catalogs pages; log.md records activity
- akm wiki stash copies sources into raw/ with unique slugs
- akm wiki ingest prints a workflow for the agent
- akm wiki lint performs deterministic structural checks