KB Compact
Use when context-pack.md is too long, stale, misses recent work, or repeatedly forces an agent to read extra notes.
AgentKB keeps Markdown as the canonical storage format. Load the smallest sufficient context first, and make every write reviewable with Git diff.
Inputs
Read only:
- Existing
context-pack.md overview.mdcurrent-state.mddecisions.mdopen-questions.md- Recent project logs
_system/indexes/knowledge-index.mdif navigation has changed
Do not read personal/ or archive/ unless the user explicitly authorizes it.
Procedure
- Remove duplicate history and stale details.
- Preserve current goal, state, constraints, key decisions, validation commands, and open questions.
- Keep raw history in logs, not the context pack.
- Write a concise replacement or a proposed change if uncertain.
- Review the Git diff.
Output
A short, current context-pack.md that is sufficient for task startup.