By surebeli
Karpathy-style persistent markdown knowledge base — custom frontmatter dimensions, three-tier memory aging (active/archived/frozen), external plugin fallback (deepwiki-cli, web search). 10 skills: init, import, ingest, search, graph, tier, digest, query, lint.
Generate a digest of the wiki: recent activity summary, key themes by cluster, tier distribution (active/archived/frozen), coverage gaps, cross-cutting synthesis, stale custom dimensions, and suggested next actions. The weekly health report for your knowledge base.
Query the wiki as a graph without maintaining a graph DB. Structured frontmatter queries, neighbor traversal, shortest paths, hub/orphan detection — each call scans the .md files fresh and computes the answer on the fly. Defaults to active-tier pages when memory tiers are enabled.
Import an existing document system (folder tree, Obsidian vault, Notion/Confluence export, etc.) into the wiki. Scans source structure, maps to wiki types, deduplicates against existing content, prompts once per batch for any custom frontmatter dimensions declared in SCHEMA.md, and processes in priority order with checkpoint support.
Ingest a source into the wiki: save raw content and referenced images, prompt the user for any custom frontmatter dimensions declared in SCHEMA.md, extract key information, create or update wiki pages per SCHEMA.md conventions, and update index.md and log.md.
Interactive bootstrap for a new LLM wiki: ask about domain, propose categories that fit, write a customized SCHEMA.md, create index.md and log.md, and suggest git init.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A plugin for building and maintaining a persistent, compounding knowledge base as interlinked markdown files. Based on Andrej Karpathy's LLM Wiki pattern.
Unlike RAG (which rediscovers knowledge from scratch per query), the wiki is compiled once and kept current. Cross-references are already there. Contradictions have already been flagged. You curate sources and ask good questions; the agent does all the bookkeeping — reading, summarizing, cross-referencing, filing, maintaining consistency. You (almost) never write wiki pages yourself.
Obsidian is the IDE. The LLM is the programmer. The wiki is the codebase. — Karpathy
This plugin implements Karpathy's original concept and extends it with three systems he left open. The table below shows which ideas come from the original and which are plugin extensions.
| Idea | Original quote / reference |
|---|---|
| Compiled once, kept current (not RAG) | "Unlike RAG... the wiki is compiled once and then kept up to date" |
| Human curates, LLM maintains | "You curate sources and ask good questions, the LLM does the rest" |
raw/ immutable layer | "You don't modify raw source material" |
index.md — read index first | "The LLM reads the index first to find relevant pages" |
log.md — append-only action log | "A chronological log of all actions taken" |
| Ingest: 10–15 pages per source | "A single source can touch 10-15 pages" |
| Query results file back and compound | "Queries compound in the wiki just like ingested sources" |
| Lint: stale content + data gaps | "Lint also finds data gaps that could be filled with a web search" |
| Schema co-evolves with the wiki | "The schema... co-evolves along with the wiki over time" |
| Git repo by default | "The wiki directory is just a git repo" |
| Obsidian as the IDE | "Obsidian is the IDE. The LLM is the programmer." |
| Everything optional and modular | "Pick what's useful, ignore what isn't" |
| qmd for scaling search | "qmd... for search at scale" |
| Web search to fill gaps | "The LLM is good at suggesting new questions to investigate" |
| Extension | What it adds | Why |
|---|---|---|
| SCHEMA.md as authoritative config | All conventions in one file; agent reads and enforces rather than hardcoding | Karpathy said schema co-evolves — we formalized where it lives and who enforces it |
| Interactive domain-specific init | wiki-init proposes categories per domain (research/book/business/personal) | Karpathy's structure is intentionally abstract — a real tool needs a concrete bootstrapper |
Bulk import (wiki-import) | 5-phase migration from Obsidian/Notion/Confluence/folders with checkpoint/resume | Original assumes you start fresh; most users have existing notes |
Image handling in wiki-ingest | Auto-download referenced images to raw/assets/, rewrite to local paths | URLs rot; Karpathy didn't specify image handling |
Structured graph queries (wiki-graph) | Frontmatter filters, BFS neighbors, shortest-path, hubs/orphans — no persistent graph DB | The [[wikilink]] graph is implicit in Karpathy's design; we made it queryable |
| Custom frontmatter dimensions | Domain-specific fields (e.g. version:) declared in SCHEMA.md, prompted during ingest | Karpathy mentions frontmatter but doesn't specify extensibility |
| Three-tier memory aging | active/archived/frozen tiers computed on-the-fly from source dates | Karpathy notes "stale content" in lint but doesn't propose a temporal model |
| External fallback plugins | .wiki-plugins.yaml registers CLI tools (deepwiki-cli, web search) as wiki-query fallback | Karpathy mentions web search for gaps; we generalized to any external tool with a closed-loop ingest pipeline |
| Multi-format query output | markdown / table / slides (Marp) / chart (matplotlib) / canvas (Obsidian) | Original doesn't specify output formats |
| Plugin packaging | .claude-plugin/ + .codex-plugin/ + skill files for Claude Code and Codex CLI | Karpathy's concept is tool-agnostic; this wraps it for specific platforms |
# Install via marketplace
claude plugin install litianyi/AK-llm-wiki
npx claudepluginhub surebeli/ak-llm-wikiPortable prompt governance for non-Claude agent runtimes. Inlines a model-neutral behavioral constitution into a host's charter (AGENTS.md/CLAUDE.md), a Kimi skill, opencode.json, or a read-only MCP tool. Governance only — background dispatch lives in hopper-plugin. See https://github.com/surebeli/fable-5-anything.
SpecTeam: AI-native spec review and decision alignment for product and engineering teams.
Thin plugin layer over the llm-hopper file-based protocol. Dispatches task-typed work to vendor CLI subprocesses (codex, kimi, opencode, copilot, agy, grok, mimo, claude). No harness reaction core; vendor CLIs bring their own runtime. State lives in plain markdown under .hopper/. See https://github.com/surebeli/hopper-plugin.
A self-evolving knowledge system for AI-paired builders. Built on Karpathy's LLM-Wiki principle, the CORE is a self-closing ingest/synthesis loop + auto-dreaming that resurfaces frozen pages when their relevance returns. Phase 1 reach (current): AI-paired engineering — compile project business semantics so agents read project conventions before they write code. Phase 2 (designed): team spec authoring + dispute resolution. Builders inherit a kata, adapt it to their project, transcend the form. 13 skills (init, import, ingest, search, graph, tier, digest, query, lint, config, dream, watch, sync). Multi-CLI session ingest in flight (v1.11).
Personal LLM-managed wiki: ingest sources, cross-reference pages, query with citations, and lint your markdown knowledge base
LLM-maintained personal wiki skills for Claude Code. Implements Karpathy's LLM Wiki pattern — persistent, compounding knowledge base for research, codebase documentation, or any long-term knowledge accumulation.
Karpathy-style local-first LLM Wiki / Knowledge Compiler for Claude Code. Ingest sources, build a structured markdown knowledge base, and maintain it with AI-powered workflows.
Build and maintain an LLM-curated personal knowledge base in your project — Andrej Karpathy's LLM Wiki pattern, designed to scale to thousands of pages without becoming a context bottleneck. Now with an optional compiled graph layer for typed, provenance-backed relationships.
A persistent LLM-maintained wiki for your knowledge base. Ingest sources, query your knowledge, and lint for consistency.
Karpathy LLM Wiki 知识库 — Ingest / Query / Lint 三操作维护个人 LLM 知识体系