快速开始 (Getting started)

中文 (简体) 翻译 — 以英文主文档 docs/getting-started.md 为准 上次同步:v0.3.0 (2026-04-08) v0.3 初稿 — 本翻译为初版,可能落后于英文主文档。

5 分钟快速上手。完成后,你将拥有一个可浏览的 Wiki,包含你运行过的所有 Claude Code 会话。

前置要求

  • Python ≥ 3.9(macOS 默认自带 3.9+;大多数 Linux 发行版也是)
  • git
  • 已有若干 Claude Code 或 Codex CLI 会话保存在 Agent 默认的会话存储目录

就这些。无需 npm、无需 brew、无需数据库、无需账号。

安装

macOS / Linux

git clone https://github.com/AlexanderMakarov/llm-wiki.git
cd llm-wiki
./setup.sh

Windows

git clone https://github.com/AlexanderMakarov/llm-wiki.git
cd llm-wiki
setup.bat

setup.sh / setup.bat 会以幂等的方式完成以下步骤:

  1. 通过 pip install --user 安装 markdown(必需)。语法高亮使用 highlight.js(通过 CDN 加载)。
  2. 创建 raw/wiki/site/ 目录结构
  3. 运行 llmwiki adapters 显示检测到的 Agent
  4. 首次同步的 dry-run 预览,你可以看到将要转换哪些内容

安装后的两个命令

./sync.sh        # 从 Agent 存储中拉取新会话 → raw/sessions/<project>/*.md
./build.sh       # 将 raw/ + wiki/ 编译为 site/

在浏览器中打开 site/index.html — 站点就是普通文件,无需启动任何服务,也不会请求网络 — 然后试试:

  • ⌘KCtrl+K — 命令面板
  • / — 聚焦搜索栏
  • g h / g p / g s — 跳转到首页 / 项目 / 会话
  • j / k — 浏览会话表
  • ? — 键盘快捷键帮助

下一步

Keyboard shortcuts

⌘K / Ctrl+KOpen command palette
/Focus search
g hGo to home
g pGo to projects
g sGo to sessions
j / kNext / prev row (tables)
?Show this help
EscClose dialogs

Structured queries

Mix key:value filters with free text in the palette:

type:sessionOnly session pages
project:llm-wikiFilter by project name (substring)
model:claudeFilter by model name (substring)
date:>2026-03-01Sessions after a date
date:<2026-04-01Sessions before a date
tags:rustPages mentioning a tag/topic
sort:dateSort results by date (newest first)

Example: type:session project:llm-wiki date:>2026-04 sort:date