A living wiki for your codebase, maintained by AI agents. Decisions, flows, invariants, and gotchas — captured automatically, organized by topic, interlinked by wikilinks.
Every page is a markdown file your agent can read, search, and link to
codealmanac hooks into your existing workflow. Nothing changes except your agent gets a wiki.
Run npx codealmanac. The wizard checks auth, installs a SessionEnd hook, and drops agent guides into your config. Then almanac bootstrap seeds your first pages.
Use Claude Code as usual. When your session ends, a writer agent reads the transcript, drafts wiki pages, and a reviewer agent QAs them. Pages land in git status.
Every session adds knowledge. Pages interlink via [[wikilinks]], topics organize into a DAG, and your agent starts each session with the full story behind your code.
Atomic markdown pages with [[wikilinks]], organized by a topic DAG. Not a single CLAUDE.md that gets stale and unwieldy.
Writer and reviewer agent pairs draft and QA every page. Encyclopedia-quality prose, not raw session dumps.
A SessionEnd hook backgrounds almanac capture. Your wiki grows after every coding session without you lifting a finger.
Entity, Decision, Flow, Gotcha. Each captures a different kind of knowledge your code can’t express on its own.
Each repo gets its own .almanac/ directory. Cross-wiki references with [[project:slug]]. A global registry tracks everything.
npx codealmanac — interactive wizard, idempotent, installs hooks and agent guides automatically. Set up in 30 seconds.
codealmanac isn't docs or a RAG pipeline. It's a structured wiki that captures why your code is shaped the way it is.
One command. Agent-maintained. Free forever.