Browse / LLM wiki / wiki-from-code-with-llm-wiki-karpathy

wiki-from-code-with-llm-wiki-karpathy

balukosuri

This is a drop-in template inspired by Andrej Karpathy's llm-wiki.md and the companion article I used Karpathy's LLM Wiki to build a knowledge base that maintains itself with AI.

Open balukosuri/wiki-from-code-with-llm-wiki-karpathy → Manually confirmed as a workspace.

Built for one agent

ships CLAUDE.md and nothing for other agents.

In its own words

README.mdbalukosuri/wiki-from-code-with-llm-wiki-karpathy

A self-maintaining wiki for your codebase. Commit code, the wiki commits itself.

This is a drop-in template inspired by Andrej Karpathy's llm-wiki.md and the companion article I used Karpathy's LLM Wiki to build a knowledge base that maintains itself with AI. The original pattern ingests documents; this variant ingests your own code via a background git post-commit hook.

Every time you run git commit, a hook fires in the background, diffs the change, feeds it to the AI CLI of your choice, and the AI updates the wiki — new pages, updated signatures, refreshed glossary, appended log entry. A follow-up wiki: update commit lands a few seconds later. Your git commit returns instantly; you keep coding.

Contents

  • What this is, and what it isn't
  • What you get
  • How it works
  • Configuring what gets documented
  • Hallucinations — how the template mitigates them
  • Manual operations
  • Will it really start documenting on its own?
  • Where the docs live
  • Viewing and querying the wiki
  • Best practices
  • Limitations
  • Common misinterpretations
  • Privacy and security
  • Troubleshooting
  • Credits

What this is, and what it isn't

What this is. A small personal project that instantiates an idea Andrej Karpathy published as llm-wiki.md — using an AI agent to build and maintain a knowledge base. The original was document-centric; this variant points the same pattern at a code repository and triggers it from git commit.

Quoting 5% of the README. Read the rest on GitHub ↗

Read from the repository's git tree on 2026-08-17.