1 min read
kevin-wiki — working here
Purpose
Kevin's personal LLM Wiki (Karpathy pattern): flat markdown files, no vector DB,
schema-as-readable. Three layers — immutable raw/ sources, the LLM-written
wiki/ knowledge base, and AGENTS.md (the schema). Kevin curates sources and
asks questions; the agent does the summarizing, cross-referencing, filing, and
bookkeeping.
Mental model & key files
AGENTS.md— the full schema, conventions, and operations guide. Read first.wiki/— compiled knowledge (you own this).wiki/_index.mdis the catalog;wiki/RESOLVER.mdis the filing tree;wiki/SOUL.md/USER.md/HEARTBEAT.mdare identity.wiki/meta/agent-operations-hub.mdis the routing map.raw/— immutable source material (read, never modify).scripts/— tsx maintenance CLIs (seescripts/SKILL.md).ui/— the Next.js viewer (seeui/SKILL.md).config/+skills/— agent config + skill taxonomy, symlinked into~/.cursor/~/.claude.
Patterns to follow / invariants
- Brain-first:
qmd search/qmd querybefore any external lookup. - Quality: every fact carries an inline
[Source: ...]; every entity mention is back-linked; compiled truth is rewritten, the timeline is append-only. - Use
rg, nevergrep. Tests usenode:testvia tsx. - No one-off work: if it'll recur, codify it as a skill or automation.
Common tasks → first action
- Start a session → read SOUL/USER/HEARTBEAT + the hub, then
npx tsx scripts/check-freshness.ts. - Ingest a source / "add it" →
wiki/meta/capture-ingest-protocol.md(full graph, not one file). - After wiki edits →
npx tsx scripts/build-index.tsthenqmd update && qmd embed. - Health check →
npx tsx scripts/doctor.ts.
Gotchas
- Never hand-author a
## Backlinkssection — backlinks are computed. _index.mdandREADME's stats table are generated — don't edit by hand.- Don't propagate clone-folder suffixes (e.g.
my-wiki-real) into prose; the project iskevin-wikieverywhere.