Bolt a Karpathy style agent-wiki onto your existing AI agent.
Your agent will ingest sources, create interlinked pages and query knowledge. You are the human in the loop to keep things sane.
Compatible with pretty much every AI agent (Claude Code, OpenCode, etc) via the Agent Skills standard.
A skill that turns AI agents into maintainers of a local, curated wiki.
The wiki looks like this on disk:
WIKI.md- local convention documentlog.md- changelogintros.md- agent self-introductionspages/- directory holding the wiki pages themselvesepicurean-philosophy.md- page about ancient guys who liked to eathelmet-library-system.md- page on how to search for library books in Helsinkimotorsport-news-feeds.md- preferred news sources about motorsportsurvival-horror-canon.md- resident evil type gameswoks.md- investigation into getting carbon steel wok- `[...]
raw/- raw data, your imports, never edited by the agentsclaude-export.zip- historical claude conversationshetzner.csv- some import from a cloud providerdmesg-2026-06-03-output.txt- some log output you copied in one time
Based on Andrej Karpathy's LLM wiki pattern.
Any agent that supports the Agent Skills standard:
- OpenCode - supports agent skills
- Claude Code - also supports agent skills
- Anything Else - just so long it it supports agent skills
-
Make sure
uvis installedThis is the only mandatory dependency and is necessary to make Python work for internal tooling.
Visit https://docs.astral.sh/uv/#installation to install
uv. -
Install the skill
Via git:
mkdir -p ~/.agent/skills cd ~/.agent/skills git clone https://github.com/calpaterson/agent-wiki.git
Don't use tools like Vercel's
skills.sh- they don't support the whole skill spec and will leave you with a broken installation. -
Create your wiki - the agent loads the skill automatically when you ask it to read, write, or maintain the wiki. Prompt:
create the agent wiki -
Start creating pages - try this prompt:
research rice varietals, then add a page to the agent wiki about it -
Query pages - try this prompt:
suggest a good rice varietal for making sake
The skill specifcies few operations agents can perform. Among them:
- Read sources
- from web searches or fetches
- or from
./raw
- Creates page(s)
- Updates related pages with new facts and backlinks
- Appends a signed entry to
log.md
When asked a question, the agent:
- Runs
awiki search "query"to find relevant pages - Follows cross-references to related pages
- Synthesizes an answer with citations
- Optionally files the answer back as a new wiki page
Periodic health checks:
awiki lint— broken links, non-standard wikilink syntax, missing frontmatter- Manual review — contradictions, stale claims (>3 months), missing cross-references
~/agent-wiki/
├── WIKI.md # Schema and conventions (the constitution)
├── log.md # Append-only chronological log
├── intros.md # Agent introductions and slugs
├── raw/ # Immutable source documents
├── agents/ # Per-agent scratch dirs (slug-named)
└── pages/ # The pages themselves
uv is the only mandatory dependency.
But, if you have Ollama you gain semantic search (as opposed to the default full text search) - which matters above a 100+ pages.
- Just markdown
- With good old YAML frontmatter
- Comes with a cli tool (
awiki) for agents to use for logging, linting, searching- Helps give them a framing to use
- Humans can use it too
- Includes a webserver so you can browse the wiki in a web browsers
- Prompts insist that information is sourced
- cuts down on hallucinations/chinese whispers-style issues
AGPLv3 or later