type
concept
created
Mon Apr 06 2026 02:00:00 GMT+0200 (Central European Summer Time)
updated
Mon Apr 06 2026 02:00:00 GMT+0200 (Central European Summer Time)
sources
raw/notes/reference_mcp_servers
tags
infrastructure wiki knowledge-management hooks
aliases
LLM Wiki, Karpathy Wiki

Wiki System

abstract
Project-level LLM Wiki based on Karpathy's pattern. 57+ pages, MOC navigation, auto-injected at session start via hooks. Browse at https://uc-wiki.xdvu.com.

Architecture (3 layers)

  1. Raw sources (wiki/raw/) — immutable documents. Claude reads, never modifies.
  2. Wiki pages (wiki/wiki/) — LLM-maintained. Concepts, entities, summaries, analyses, MOCs.
  3. Schema (wiki/CLAUDE.md) — operating instructions: ingest, query, lint workflows.

Navigation: Maps of Content (MOCs)

Every new page MUST be added to the relevant MOC.

Hooks (project-level, .claude/settings.json)

Hook When What
SessionStart Session opens Injects _home.md + index.md into context
Stop Claude finishes Checks git diff, reminds to update wiki if code changed
PostToolUse After Bash Auto-logs git commits to wiki/log.md

Hooks are project-level — only active in unitcycle-demo/. Other projects are unaffected.

Key Files

File Purpose
wiki/CLAUDE.md Schema — how to operate the wiki
wiki/index.md Flat catalog of all pages (machine-readable)
wiki/log.md Append-only activity + auto-logged commits
wiki/wiki/_home.md Human entry point (MOC)
.claude/settings.json 3 hooks (SessionStart, Stop, PostToolUse)
WIKI-SETUP.md Reusable prompt to set up wiki in any project

How It Evolves

Git

Wiki is part of the project repo (not separate). Commit prefix: wiki:.

Web Server

AI Search

LLM-powered search with query expansion, streaming answers, and smart ranking. See wiki/concepts/wiki-ai-search for full details.

Sources

Related