Wake README

项目的 README,来自 github.com/iAmCorey/Wake。合并为一个 markdown 文件:README.md。

Wake

Website License Release Platform Downloads Stars CI

A native desktop app that gathers every coding-agent session on your machine into one place — find any conversation in seconds, read it in full, and pick it back up in your terminal. Built with Rust + GPUI. macOS first; Linux and Windows are experimental.

Your agent history is scattered across ~/.claude, ~/.codex and many other folders. Wake reads all of it, read-only and entirely on your machine. And with the Wake plugin, every new Claude Code or Codex session starts knowing where your agents left off.

Website: wake.cool — downloads, the MCP and CLI docs, and the changelog (中文).

Wake — sessions list and transcript view

Features

Full-text search across every agent's sessions

Supported agents

Agent Data source Model Via
Claude Code ~/.claude/projects/**/*.jsonl ✅ —
Codex CLI ~/.codex/sessions/**/*.jsonl[.zst] + state_5.sqlite ✅ ✅
Qoder ~/.qoder/projects/*/*.jsonl + Qoder IDE / Qoder CN tasks in projects/*/transcript/*.jsonl ✅ —
Copilot CLI ~/.copilot/session-store.db — —
Cursor ~/.cursor/projects/**/agent-transcripts + Cursor's state.vscdb (IDE chats) ✅ —
OpenCode ~/.local/share/opencode/opencode.db ✅ —
OpenCode 2 (opencode2) ~/.local/share/opencode/{opencode.db,opencode-next.db} ✅ —
Kiro ~/.kiro/sessions/cli ✅ —
Gemini CLI ~/.gemini/tmp/**/chats — —
Pi ~/.pi/agent/sessions/**/*.jsonl ✅ —
Oh My Pi ~/.omp/agent/sessions/**/*.jsonl ✅ —
Grok Build ~/.grok/sessions/**/updates.jsonl ✅ —
Kimi Code ~/.kimi-code/sessions/**/wire.jsonl — —
Antigravity ~/.gemini/antigravity/brain, ~/.gemini/antigravity-ide/brain, ~/.gemini/antigravity-cli/brain + ~/.gemini/antigravity-cli/conversation_summaries.db ✅ ✅
DeepSeek Harness (dsh) ~/.dsh/sessions/**/session*.jsonl[.zstd] ✅ —
Hermes Agent ~/.hermes/state.db + profiles/*/state.db ✅ ✅
OpenClaw ~/.openclaw/agents/*/agent/openclaw-agent.sqlite + agents/*/sessions/*.jsonl ✅ ✅
CodeBuddy ~/.codebuddy/projects/*/*.jsonl ✅ —
WorkBuddy ~/.workbuddy/projects/*/*.jsonl ✅ —
ZCode ~/.zcode/cli/db/db.sqlite ✅ —
Craft Agents ~/.craft-agent/workspaces/*/sessions/*/session.jsonl ✅ ✅
Devin ~/.local/share/devin/cli/sessions.db ✅ —
Kilo Code ~/.local/share/kilo/kilo.db + the legacy extension's globalStorage/kilocode.kilo-code/tasks ✅ ✅
Grok Bot the desktop app's cache (Grok Bot/sand-client-persistence) — —
MiMo Code ~/.local/share/mimocode/mimocode.db ✅ —
Doubao Work the Doubao desktop app's agent mode (Doubao/<profile>/.doubao/agent_mode/workspace/.sessions) — —
Qwen Work (千问办公) ~/.qwenworkcn/projects/*/*.jsonl + the QoderWork CN folder it migrated from (~/.qoderworkcn/projects) ✅ —

Agents' own environment variables (CODEX_HOME, XDG_DATA_HOME, …) are respected, and Settings → Session locations adds folders anywhere else.

Model: Wake shows the LLM a session used. Via: Wake shows where it started (CLI, IDE, desktop app, chat channel). "—" means the agent doesn't record it.

Not supported: Windsurf and Trae (encrypted), Amp, Factory and Warp (cloud only).

Remote hosts

Add a machine in Settings → Remote hosts (an ~/.ssh/config alias or user@host) and its sessions show up next to yours with an @host badge, searchable and resumable through a copied ssh -t command. Wake syncs on launch, on refresh and on Sync now.

Connect your agents

Claude Code and Codex plugins

Every new session starts knowing where your agents left off in this project, and can open any earlier session through Wake's MCP tools.

claude plugin marketplace add iAmCorey/Wake --sparse .claude-plugin plugins/wake && claude plugin install wake@wake
codex plugin marketplace add iAmCorey/Wake --sparse .agents/plugins --sparse plugins/wake && codex plugin add wake@wake

Needs Wake 0.9 or later, opened at least once. In Codex, trust the hook in /hooks. More in docs/cli.md.

MCP server

wake-mcp ships with the app and gives any MCP client five read-only tools:

Tool What it does
wake_search Search every session and memory file
wake_list_sessions Recent sessions, by project, agent, time or starred
wake_get_session Read a transcript or memory file, page by page
wake_list_projects Projects with sessions, most recent first
wake_list_memories Your agents' memory and instruction files, by project

Copy the setup from Settings → Connect, or:

claude mcp add --scope user wake -- "/Applications/Wake.app/Contents/MacOS/wake-mcp"
# ~/.codex/config.toml
[mcp_servers.wake]
command = "/Applications/Wake.app/Contents/MacOS/wake-mcp"

Full reference: docs/mcp.md.

From a shell

wake-cli gives the same answers in a terminal (Settings → Connect has the command to put it on your PATH):

wake-cli sessions --project "$PWD" --limit 5      # what happened in this repo
wake-cli search "rate limiter" --project "$PWD"   # where was this discussed
wake-cli show 'claude-code:1b2c3d4e-…'            # read that transcript
wake-cli context                                  # what a new session here starts with
wake-cli refresh                                  # update the index while Wake is closed

npx skills add iAmCorey/Wake teaches agents to reach for it. Full reference: docs/cli.md.

Zoom

Make everything bigger — 110%, 125% or 150% — with ⌘+ / ⌘− / ⌘0 (Ctrl on Linux and Windows), the View menu, or Settings → Appearance.

Language

Wake follows your system language, with Simplified Chinese built in (Settings → General → Language). A new language is one JSON file, and partial translations are welcome: see crates/wake/locales/README.md.

Privacy stance

Performance

On the author's machine (~1,100 sessions, ~1.8 GB): a full index in ~5 s, searches in a few milliseconds.

Install

Download Wake-<version>-macos.zip from wake.cool or the latest release, unzip, and drag Wake to Applications (a Universal Binary for Apple Silicon and Intel). It's ad-hoc signed, so open it the first time with right-click → Open, or run xattr -d com.apple.quarantine Wake.app.

Or build it with a Rust toolchain:

git clone https://github.com/iAmCorey/Wake && cd Wake
scripts/make-app.sh          # dist/Wake.app (--universal builds both architectures)
open dist/Wake.app

Linux (experimental)

Each release has a .deb and a tar.gz (with a no-root install.sh) for arm64 and x86_64. To build:

sudo apt-get install -y libasound2-dev libfontconfig1-dev libwayland-dev \
  libxkbcommon-dev libxkbcommon-x11-dev libssl-dev libzstd-dev pkg-config cmake clang
git clone https://github.com/iAmCorey/Wake && cd Wake
scripts/make-linux.sh        # dist/wake-<version>-linux-<arch>.tar.gz and .deb

Windows (experimental)

Download wake-<version>-windows-x86_64.zip, unzip, and run Wake.exe (if SmartScreen stops it: More info → Run anyway). To build, run scripts/make-windows.ps1 with the MSVC Rust toolchain.

Development

cargo run -p wake                      # run in dev mode
scripts/test.sh                        # one-command test entry: data-layer tests + UI compile gate
scripts/test.sh --smoke                # adds a real-data scan baseline (reads your local agent dirs, read-only)
cargo test -p wake-core                # data-layer tests only (adapter contracts, FTS, scanner)
cargo run -p wake-core --bin scan      # data-layer smoke test: scan and print stats (quit Wake first, or add --tmp: it will not write an index Wake holds)
cargo run -p wake-core --bin scan -- --search "useEffect("   # search smoke test
cargo run -p wake-core --bin wake-mcp -- setup                # print MCP setup snippets for the dev build
cargo run -p wake-core --bin wake-mcp -- call wake_search '{"query":"useEffect("}'   # run one MCP tool against your index
cargo run -p wake-core --bin wake-cli -- sessions --project "$PWD"   # the CLI against your index
WAKE_THEME=dark cargo run -p wake      # force dark/light (defaults to system)
WAKE_HOME=/path cargo run -p wake      # point all agent adapters at a different home dir (portable installs, testing)
WAKE_LIVE_REMOTE_HOST=<host> cargo test -p wake-core --test remote_sync live -- --ignored   # run the remote-host pipeline against a real SSH host
git config core.hooksPath scripts/hooks   # optional: run tests before every commit
python3 scripts/demo-home.py           # build a synthetic fake-home dataset for screenshots/demos

CI checks formatting, runs the tests and builds the app on macOS, Linux and Windows. Tests use synthetic fixtures only; your real agent data is never touched.

Architecture

crates/
├── wake-core        # pure data layer, no UI dependencies
│   ├── adapters/    #   one adapter per storage format (AgentAdapter trait — add an adapter, get the whole UI for free;
│   │                #   remote.rs wraps any adapter over a synced cache for remote hosts)
│   ├── remote.rs    #   remote hosts: ssh probe + rsync whitelist mirror into <data dir>/remotes/<host>/
│   ├── scanner.rs   #   single-pass scan: meta + FTS in one go, mtime incremental
│   ├── watcher.rs   #   notify-based file watching → per-file incremental updates
│   ├── skills.rs    #   read-only skills overview: each agent's skill folders, grouped by skill
│   ├── db.rs        #   rusqlite (WAL): sessions, the full-text index, memories, stars/pins, tombstones, settings
│   ├── mcp/         #   wake-mcp: read-only MCP server over stdio (hand-written JSON-RPC, five tools)
│   ├── cli.rs       #   wake-cli: argv → the same five tools, same text out as MCP
│   └── services/    #   terminal resume (per-platform: AppleScript / argv / Win32) / export / trash / agent context helpers
└── wake             # GPUI app (three-pane workbench + ⌘K / Ctrl+K palette)
plugins/wake         # the Claude Code and Codex plugin: session-start hook + MCP, no binaries of its own
skills/wake          # the Wake skill, for agents that read skills
web/                 # wake.cool (Astro), built from docs/ and CHANGELOG.md

Design notes live in DESIGN.md, product decisions in PRODUCT.md, release history in CHANGELOG.md.

Star History

Star History Chart

License

MIT. Brand icons are from lobe-icons (MIT); agent names and logos belong to their respective owners.

Wake (iAmCorey/Wake)

正在搜索数据库…

1.6K ·GitHub
这是什么?Wake 是一个原生桌面应用,把你机器上所有编程智能体会话集中到一处,让你可以浏览、全文搜索并恢复 Claude Code、Codex、Cursor 等众多工具中的任意对话。
这是我安装的应用,还是导入代码的库?它是一个用 Rust 和 GPUI 构建的原生桌面应用,不是库。它还附带一个小型只读 MCP 服务器(wake-mcp),位于应用二进制文件旁边。
怎么让它跑起来?在 macOS 上,下载 Wake-*-macos.zip,解压后把 Wake 拖入应用程序文件夹(它是 ad-hoc 签名的,首次启动需右键 → 打开)。Linux 和 Windows 也有实验性的预构建包,或者你可以用 Rust 工具链从源码构建。
它实际索引哪些编程智能体?它以只读方式读取各智能体的本地会话文件,支持 Claude Code、Codex CLI、Qoder CLI、Copilot CLI、Cursor、OpenCode、Kiro、Gemini CLI、Pi、Oh My Pi、Grok Build、Kimi Code、Antigravity CLI、DeepSeek Harness、Hermes Agent 和 OpenClaw。
Linux 和 Windows 支持完全就绪了吗?没有——macOS 是主要目标平台;Linux 支持(自 v0.2.5 起)和 Windows 支持(自 v0.2.7 起)都标记为实验性,桌面集成经过的真实环境测试也比数据层少。
它能在哪些平台上运行?macOS(Apple Silicon 和 Intel 的通用二进制)、Linux(arm64/x86_64,.deb 或 tar.gz 安装包)以及 Windows(x86_64 zip)。
Wake 会把我的智能体数据发送到别处吗?不会。一切都保留在本地,数据目录以只读方式打开,从不读取凭据文件,唯一的网络调用是用户主动发起的 GitHub 更新检查(外加可选的、你自己配置的远程主机 SSH/rsync)。
可以一次性搜索我所有的智能体会话吗?可以,Wake 使用 SQLite FTS5 三元组索引做全文搜索(Cmd/Ctrl+K),能处理中日韩文本和代码子串,并直接跳转到匹配的消息。
可以查看并恢复来自其他机器的会话吗?可以,通过 Settings → Remote hosts 可以用 SSH/rsync 镜像其他机器上的会话;它们会带一个 @host 标签出现,通过复制出来的 ssh -t 命令恢复,不过在 Wake 里它们是只读的(无法删除)。
MCP 服务器如何让智能体使用我的历史记录?内置的 wake-mcp 服务器暴露四个只读工具(搜索、列出会话、获取会话、列出项目),让 Claude Code、Codex、Cursor 或任何 MCP 客户端都能搜索你的全部历史,并从上一个会话中断的地方继续。
点击某个会话的恢复按钮会发生什么?Wake 会在你的终端中于该会话原始项目目录下用智能体自带的恢复命令重新打开会话,例如 claude --resume 或 codex resume,在 macOS 上于 Terminal/iTerm 中启动,在 Linux/Windows 上使用可用的终端。
有哪些类似的项目?memex, okf-agent-memory, kanzo, navop, leviathan, xerj, tusk, epiq
作者
iAmCorey
大小
6.5 MB
星标
1.6K
时长
3个月
提交 · 90 天