The code tells you what a system does. It doesn't tell you why totals are rounded per line, why a declined card is never retried, or that someone already compared three payment SDKs last spring.
That knowledge usually lives in a wiki nobody reviews, or in one person's head. My AI coding agent has it even worse: every session starts from zero, so it happily suggests the approach we rejected a month ago. I wanted the reasons in the repo, where both people and agents read them, and a check that tells me when they stop being true. So I wrote knowledge_base .
What it gives you
A fixed place for decisions, feature docs, research notes, and a glossary, all plain Markdown in docs/
One index per folder, one line per doc, so a reader opens only what matters
A block in CLAUDE.md or AGENTS.md that tells your agent to read the indexes before it works
A /capture skill that proposes what to keep when a task is done
A checker with thirteen checks, made for CI
It works with any language and any repo.…