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 в Applications (подпись 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 (Universal Binary для Apple Silicon и Intel), Linux (arm64/x86_64, установщик .deb или tar.gz) и Windows (zip x86_64).
Отправляет ли Wake мои данные агентов куда-либо?Нет. Всё остаётся локально, каталоги данных открываются только для чтения, файлы учётных данных никогда не читаются, а единственный сетевой вызов — запущенная пользователем проверка обновлений на GitHub (плюс опциональные SSH/rsync к настроенным вами удалённым хостам).
Можно ли искать по всем сессиям агентов сразу?Да, Wake использует триграммный индекс SQLite FTS5 для полнотекстового поиска (Cmd/Ctrl+K), который обрабатывает CJK-текст и подстроки кода и прыгает прямо к совпавшему сообщению.
Можно ли просматривать и возобновлять сессии с других машин?Да, через Settings → Remote hosts можно зеркалировать сессии с других машин по SSH/rsync; они отображаются с бейджем @host и возобновляются через скопированную команду ssh -t, хотя внутри Wake они доступны только для чтения (удалить нельзя).
Как MCP-сервер позволяет агентам использовать мою историю?Встроенный сервер wake-mcp открывает четыре инструмента только для чтения (поиск, список сессий, получить сессию, список проектов), так что Claude Code, Codex, Cursor или любой MCP-клиент может искать по всей вашей истории и продолжать с того места, где закончилась предыдущая сессия.
Что происходит, когда я нажимаю resume у сессии?Wake заново открывает сессию в вашем терминале в её исходном каталоге проекта, используя собственную команду возобновления агента, например claude --resume или codex resume, запуская Terminal/iTerm на macOS или доступный терминал на Linux/Windows.
Какие есть похожие проекты?memex, okf-agent-memory, kanzo, navop, leviathan, xerj, tusk, epiq
Автор
iAmCorey
Размер
6.5 MB
Звёзды
1.6K
Возраст
3 мес
Коммиты · 90 дней