Compile human knowledge base from agent metadata. Generates _human/ directory.
The bridge between agent storage and human display. Reads agent metadata (frontmatter, _index.md, _signals.md) and uses LLM reasoning to produce a human-readable knowledge base in _human/. This is NOT deterministic — it requires LLM evaluation of what's worth showing and how.
Handle: "Gabe Lens bakes the bread (compilation), km-explore serves it (display)."
Read ~/.claude/khujta-mem-config.md to get vault_path. If it doesn't exist, tell the user to run /km-init first.
All file references below are relative to [vault_path].
_human/
├── overview.md ← Dashboard / minimap
├── quests.md ← Active quest log
├── achievements.md ← Progress milestones
├── trees/
│ └── [behavior].md ← Skill tree per behavior
└── categories/
└── [slug].md ← Human-readable category summary
All files in _human/ are generated, never hand-edited. Regenerated on demand.
/km-wrap — default)Regenerate everything. Read all vault metadata, compute all artifacts.
Process:
_index.md, _signals.md, _config.yaml.raw/ is empty, report "Nothing to compile — vault is empty. Ingest knowledge first with /km-ingest." and exit.categories/*/_meta.md and record frontmatter.raw/ record frontmatter (for quest computation)._human/.| YYYY-MM-DD | compile | _human | agent | full compilation ([N] categories, [N] records) |/km-wrap quests)Regenerate _human/quests.md only. Useful after reviewing signals.
/km-wrap tree [behavior])Regenerate _human/trees/[behavior].md for a specific behavior. Useful after category restructuring.
/km-wrap category [slug])Regenerate _human/categories/[slug].md for a specific category. Useful after ingestion or promotion into that category.
/km-wrap achievements)Regenerate _human/achievements.md only. Useful after evolution events (promotions, archives, verifications).
Compact orientation view. One screen that shows the overall shape of knowledge.
Content:
---