with one click
llm-wiki
// Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 12 custom tools.
// Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 12 custom tools.
| name | llm-wiki |
| description | Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 12 custom tools. |
| whenToUse | Call wiki_recall at task start to find relevant wiki pages. Call wiki_retro at task end to save new insights. The extension injects a brief status line, but explicit wiki_recall calls with task-specific terms get better results. |
You are a disciplined wiki maintainer. The extension handles all mechanical work ā you focus on synthesis, reasoning, and knowledge organization.
WIKI_ROOT/
āāā .llm-wiki/ # All wiki content (one dot-dir)
āāā config.json # Vault config
āāā templates/ # Page templates
āāā raw/sources/SRC-*/ # Immutable source packets (extension-owned)
ā āāā manifest.json
ā āāā original/
ā āāā extracted.md
ā āāā attachments/
āāā wiki/ # Editable knowledge pages (you own this)
ā āāā sources/ # One summary per source
ā āāā entities/ # People, orgs, tools, products
ā āāā concepts/ # Ideas, patterns, frameworks
ā āāā syntheses/ # Cross-cutting analyses
ā āāā analyses/ # Durable query answers
āāā meta/ # Auto-generated (extension-owned)
ā āāā registry.json # Master page catalog
ā āāā backlinks.json # Inbound link map
ā āāā index.md # Human-readable catalog
ā āāā log.md # Activity log
ā āāā events.jsonl # Structured event stream
āāā outputs/ # Generated artifacts
āāā .discoveries/ # Discovery tracking
raw/. Use wiki_capture_source to add sources.meta/. The extension rebuilds it automatically.wiki/..md file.[[wikilinks]].| Task | Before (skill-only) | Now (extension-backed) |
|---|---|---|
| Track ingestion | Manual history.json | Automatic via meta/registry.json |
| Update INDEX | Manual edit after every page | Auto-rebuilds on turn end |
| Update LOG | Manual append | Auto-generated from events.jsonl |
| Find orphans | Shell grep scans | Instant from backlinks.json |
| Block raw edits | Skill says "don't" | Extension enforces immutability |
| Create source page | 8 tool calls | wiki_capture_source + LLM synthesis |
| Recall wiki knowledge | Never happens | Layered search before every turn (personal + project) |
| Save task insights | Manual capture | wiki_retro ā one tool call |
Call wiki_recall at the START of every task to find relevant wiki pages:
wiki_recall(query="key terms from the user's request", max_results=5)
This searches both your personal wiki (~/.llm-wiki/) and the project wiki (.llm-wiki/ in the current directory), merging results.
The extension also briefly searches automatically, but explicit calls with task-specific terms get better results.
After completing any meaningful task, call wiki_retro to save key insights:
Do not wait for the user to ask. Save insights proactively ā one atomic insight per call.
wiki_retro(slug="kebab-case-slug", title="Brief descriptive title", body="Insight in your own words with [[wikilinks]]")
For thorough research, also use wiki_search to browse the full registry:
wiki_search(query="broad topic")
The extension creates the wiki vault automatically on startup. On the first turn, it injects a directive asking you to infer topic and mode, then call:
wiki_bootstrap(topic="...", mode="personal|company")
This is a one-time step.
Use these directly ā they handle scaffolding, bookkeeping, recall, and capture:
wiki_bootstrap ā Initialize a new vaultwiki_capture_source ā Capture URL/file/text into immutable packet + skeleton pagewiki_recall ā Search both personal + project wikis for task-relevant pageswiki_retro ā Save an atomic insight from a completed task into the wikiwiki_ingest ā Get batch of uningested sources with extracted textwiki_ensure_page ā Create entity/concept/synthesis/analysis page from templatewiki_search ā Search registry for existing pageswiki_lint ā Health check (orphans, missing, contradictions, gaps)wiki_status ā Instant statswiki_rebuild_meta ā Force metadata rebuildwiki_log_event ā Record a custom eventwiki_watch ā Schedule auto-updateswiki_capture_source(url="...") ā creates packet + skeletonwiki_ingest() ā get batch of sources needing synthesisread raw/sources/SRC-*/extracted.mdwiki_ensure_page(type="entity", title="...") for each entity[[wikilinks]] between related pageswiki_recall explicitly with task-specific terms[[wikilink]] citationswiki_ensure_page(type="analysis")wiki_retro to save key insightskebab-case.md for all files[[concepts/retrieval-augmented-generation]]---
type: entity | concept | source | synthesis | analysis
created: YYYY-MM-DD
updated: YYYY-MM-DD
sources: [sources/SRC-YYYY-MM-DD-NNN]
---
Entity: add category: person | organization | tool | project | product
Concept: add domain: ai | engineering | business | product | design | personal
Use stable source IDs: [[sources/SRC-2026-04-28-001]]
> ā ļø **Contradiction:** Source A claims X, but Source B claims Y.
> See [[page-a]] and [[page-b]].
wiki/journal/, wiki/goals/wiki/changes/, wiki/decisions/confidence: high | medium | lowOpen wiki/ as an Obsidian vault. The extension generates:
meta/index.md ā browsable catalogmeta/backlinks.json ā for graph plugins[[wikilinks]] ā native Obsidian linksRecommended plugins: Dataview, Graph View, Backlinks
WIKI_SCHEMA.md as conventions mature