LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model)
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-wiki-5003160f536f ,按照其中的说明把「wiki」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Persistent, self-maintained markdown knowledge base for project and session knowledge. Inspired by Karpathy's LLM Wiki concept.
Process knowledge into wiki pages. A single ingest can touch multiple pages.
wiki_ingest({ title: "Auth Architecture", content: "...", tags: ["auth", "architecture"], category: "architecture" })
Search across all wiki pages by keywords and tags. Returns matching pages with snippets — YOU (the LLM) synthesize answers with citations from the results.
wiki_query({ query: "authentication", tags: ["auth"], category: "architecture" })
Run health checks on the wiki. Detects orphan pages, stale content, broken cross-references, oversized pages, and structural contradictions.
wiki_lint()
Add a single page quickly (simpler than ingest).
wiki_add({ title: "Page Title", content: "...", tags: ["tag1"], category: "decision" })
wiki_list() # Show all pages (reads index.md)
wiki_read({ page: "auth-architecture" }) # Read specific page
wiki_delete({ page: "outdated-page" }) # Delete a page
View wiki operation history by reading .omc/wiki/log.md.
Pages are organized by category: architecture, decision, pattern, debugging, environment, session-log
.omc/wiki/*.md (markdown with YAML frontmatter).omc/wiki/index.md (auto-maintained catalog).omc/wiki/log.md (append-only operation chronicle)Use [[page-name]] wiki-link syntax to create cross-references between pages.
At session end, significant discoveries are automatically captured as session-log pages. Configure via wiki.autoCapture in .omc-config.json (default: enabled).
.omc/wiki/ is project-local)haiku — quick lookups, lightweight inspection, narrow docs worksonnet — standard implementation, debugging, and reviewopus — architecture, deep analysis, consensus planning, and high-risk reviewfable — Claude Fable 5 (above Opus); pass it explicitly on the Task call or pin it per agent with agents.<name>.model/model applies to the main loop only. Delegated agents run on their pinned tier unless the Task call passes model explicitly or the agent is overridden via agents.<name>.model. To run delegated work on Fable, use one of those two surfaces; selecting Fable in /model alone does not change delegation.