voyager-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@voyager-mcpsearch my recent sessions for tensorboard changes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Voyager ๐งญ
One index across every AI coding agent on your machine.
Cross-agent continuity is built in: merge context across sessions and continue in any agent (voyager merge / switch / continue) โ see docs/ROADMAP.md for the shipped scope and docs/POST-1.0.md for what's next.
Voyager reads the local session data your agents already write โ Codex, Claude Code, ZCode, DSH (DeepSeek Harness), and more โ and turns it into a single searchable, exportable, resumable index. Pure local, no accounts, no cloud, no telemetry.

Eight agents keep eight different formats; Voyager normalizes them into one SQLite index you can search, resume from, hand off to another agent, or query straight from inside an agent over MCP.

$ voyager list
ID PROV UPDATED MSG TOOL TITLE
a1b2c3d4-... zcode 2026-09-13 01:13 162 206 ้ๆๅญๅจๅผๆ็ๅๅ
ฅ่ทฏๅพ
9f8e7d6c-... codex 2026-07-06 22:52 76 168 ไฟฎๅคๅค็บฟ็จไธ่ฝฝๅจ็็ซๆๆกไปถ
5e4d3c2b-... claude 2026-07-17 12:46 89 70 ๅๆๆฐๆฎ้็ปๆๅนถ่ฎพ่ฎก่ฏๆต่ๆฌWhy
Every agent keeps its own history in its own format: Codex writes rollout JSONL, Claude Code writes project JSONL plus a file-version chain, ZCode uses SQLite, DSH compresses JSONL with zstd. You work across all of them โ Voyager makes that history one thing you can query.
Cross-agent timeline per repo โ what did all your agents do to this project, and when?
Full-text search everywhere โ find the session where someone ran that one command or touched that one file (CJK substring search works).
Real exports โ human-readable Markdown, or lossless JSON with both the normalized and the raw events.
Resume where you left off โ Voyager knows each platform's resume command and runs it for you.
Related MCP server: Open Brain Knowledge MCP Server
Install
# isolated CLI install โ no virtualenv juggling (recommended)
pipx install "voyager[all] @ git+https://github.com/HarryHeYu/voyager.git"
# or with pip (user-level)
pip install "voyager[all] @ git+https://github.com/HarryHeYu/voyager.git"
# once the release is on PyPI (tracked in CHANGELOG.md)
pipx install voyager[all] = DSH support (zstandard) + MCP server (mcp). The two are
optional and only needed for those features:
pip install "voyager @ git+https://github.com/HarryHeYu/voyager.git" # core
pip install "voyager[dsh] @ git+https://github.com/HarryHeYu/voyager.git" # + DSH
pip install "voyager[mcp] @ git+https://github.com/HarryHeYu/voyager.git" # + MCP serverWorking on Voyager itself:
git clone https://github.com/HarryHeYu/voyager && cd voyager
pip install -e ".[all,dev]" # editable + extras + pytest
python -m pytest tests/ -q # 363 collected: 345 passed, 18 skipped (synthetic fixtures, no provider data)Python โฅ 3.10. Windows / macOS / Linux. If voyager is not on your PATH,
run it as python -m voyager.cli.
Usage
First run: voyager scan walks every supported agent's local storage and
builds the index at ~/.voyager/index.db. After that, re-run scan
whenever you want to pick up new sessions โ it is incremental and only
re-reads what changed. To make syncing fully automatic, keep a watcher
running (or put it in a scheduled task):
voyager watch --interval 300 # re-scan every 5 minutes, foreverPut the command in your OS autostart (or the provided
~/.voyager/watch.vbs in the Windows Startup folder) and the index stays
current with zero manual steps.
voyager scan # discover + index every supported agent
voyager list # all sessions, newest first
voyager list --repo myproj # sessions for one repo
voyager show <id> # full message / tool-call timeline
voyager search "tensorboard"
voyager repo E:/code/myproj # cross-agent timeline for a repository
voyager export <id> --format md # or --format json (includes raw events)
voyager resume <id> # launches the native agent on that session
voyager handoff <id> --to codex # context package for another agent
voyager continue # one command to pick your latest work back up
voyager thread list # WorkThreads: task-centric session groups
voyager switch codex # switch the active thread to another agent
voyager skill install # teach other agents about voyager
voyager brief # 48h digest of what every agent is doing
voyager files <id> # files the session touched
voyager diff <id> # Claude sessions: rebuilt before/after diffs
voyager stats # index statisticsCross-agent handoff is work continuation, not session migration
(the other agent cannot inherit hidden tool state or cached reasoning).
voyager handoff <id> --to codex extracts the session into a Context
Package (goal, instructions, files touched, commands, errors, where the
work stopped) and shows the launch command; add --launch to start it.
The target is told to read the package file and continue โ works for
claude, codex and grok; other targets get the file to paste.
Same-provider pickup still uses native resume (codex resume, โฆ).
One command to continue: voyager continue picks your newest session
and does the right thing โ native resume for codex/claude/dsh/grok,
automatic handoff package for the rest. voyager continue --repo myproj --launch goes straight back into a specific project; multi-session
synthesis (voyager merge A B C) groups the work into a WorkThread
and cross-agent switch is one command (voyager switch codex โ lease
aware, see docs/ROADMAP.md).
Goal-conditioned & budgeted: add --goal "finish adapter tests" to
rank the evidence, and --budget compact|balanced|full|Nk to cap the
bundle size (estimate printed). Without --goal/--budget the output is
unchanged.
Transcript mode (opt-in, experimental): voyager switch codex --mode transcript writes a NEW native session containing a flattened
user/assistant transcript (tools/state dropped) so the target resumes
natively. Only codex/grok pass the resume gate today (claude timed out,
dsh unverified) โ the default remains the Continuation Bundle. This is
work continuation, not session teleportation: hidden tool state and
provider runtime state never move.
Everyday flow โ brief to see what's moving, export to read one
session in full (a 2,915-message DSH session โ a 20 MB Markdown file),
continue or handoff to pick it back up. Full recipes in
docs/WORKFLOWS.md.
Session ids are matched by prefix; if a prefix is ambiguous Voyager lists
the candidates and exits. resume runs the native agent's own command
(e.g. codex resume <id>); providers without a CLI resume path say so
explicitly instead of pretending.
Startup Continuity โ product status
Core functionality: Complete and operational.
Runtime auto-trigger: Claude Code has a native SessionStart hook, and Voyager registers one. Whether Claude Code actually fires it is not yet verified on a live run.
The startup_continuity() function correctly discovers WorkThreads, auto-attaches sessions, and compiles continuation context. What varies per provider is whether a session start can reach that function without the user doing anything.
Provider classification:
Provider | Skill | MCP | Status | What it means |
Claude | Y | R |
| Native |
Codex | Y | R |
| No native hook; needs an explicit call |
Grok CLI | Y | N |
| Best effort |
DSH | Y | N |
| Best effort |
Legend: Y = installed, R = registered, N = unsupported, A = available/manual setup needed.
Startup status: Y = zero-touch verified live, H = native hook registered but the live trigger is not yet verified, A = startup-assisted, N = no hook. Only Y claims the provider fires the hook by itself; nothing currently claims Y. Run voyager integrate status for the live answer on your machine.
How Claude Code hooks work here
Claude Code reads SessionStart hooks from ~/.claude/settings.json. Voyager writes the documented shape:
{
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
{"type": "command", "command": "\"<abs python>\" \"<abs>/claude_session_start.py\"", "timeout": 120}
]
}
]
}
}voyager integrate install claude writes this for you (it is additive โ your own hooks are preserved, and the file is backed up first). The installed command uses absolute paths, so it does not depend on the interpreter being on PATH.
Two things are verified, one is not. The handler is verified end-to-end: it emits a protocol-valid payload, caps the injected context at 9,000 UTF-16 code units, spills the full bundle to ~/.voyager/context/, and exits 0. The registration is verified: voyager integrate status reads the file back. What is not verified is Claude Code itself invoking the hook โ that needs one manual run:
claude --debug hooks --init-only # expect: Found 1 hook matchers in settingsUntil someone sees that line, treat the trigger as unproven. See claude_continuity_verdict.md for the full evidence trail.
What works right now โ
startup_continuity()handles discovery, attach, staleness detectionAuto-attach works when conditions are safe (exact repo match, single thread)
Context compilation reuses existing ranker+budget+continuation pipeline
A compiled context bundle is cached in the store and reused across session starts (5-minute TTL, invalidated by git changes or thread membership changes)
Ambiguity protection: explicit error if multiple active threads
Auto-registration creates config files for Codex/Claude (
voyager integrate install <provider>), including the native Claude Code hook
How to use today ๐ง
Recommended workflows:
Native hook (Claude Code):
voyager integrate install claude, then restart Claude Code. No further action โ if the hook fires, context is injected before your first turn.Explicit commands:
voyager switch <agent>orvoyager continue [id]MCP-assisted: in-agent tool call
voyager_startup(provider="codex", cwd="$PWD")Skill guidance: read
SKILL.mdin the agent's skill directory
A (startup-assisted) means: the runtime will not reach Voyager on its own. Codex does not automatically call voyager_startup at session start โ you must invoke it via one of the workflows above. MCP registration is fully automated; startup invocation is not.
voyager integrate install claude # skill + MCP + native SessionStart hook
voyager integrate install codex # skill + MCP (~/.codex/config.toml)
voyager integrate status # per-provider truth, including whether the hook is registered
voyager integrate remove claude # removes only Voyager's entries, leaves your hooks aloneSee docs/DOGFOOD.md for the detailed verification procedure.
Integration โ teach agents about Voyager
Install the Skill file into known agent directories:
voyager skill install # installs SKILL.md at ~/.{agent}/skills/voyager/SKILL.mdThe Skill instructs agents when to use Voyager commands and when NOT to (never export full sessions).
To register Voyager as an MCP server so agents can query it with native tools:
voyager integrate install codex # skill + MCP (~/.codex/config.toml)
voyager integrate install claude # skill + MCP + native SessionStart hook (~/.claude/settings.json)
voyager integrate status # per-provider truth, incl. whether the hook is registered
voyager integrate remove <provider> # undo every step (skill + mcp + bootstrap + hook)These commands now auto-create config files if they don't exist - no manual setup needed for first-time installation. Re-running is idempotent, and install merges rather than overwrites: your own hooks and settings are preserved, and the file is backed up before it is rewritten.
For verification of actual zero-touch startup behavior, see docs/DOGFOOD.md and claude_continuity_verdict.md.
Supported platforms
Platform | Source | Messages | Tool calls | Shell exit | File diffs | Tokens | Resume |
Codex (CLI/VSCode/Desktop) | rollout JSONL | โ | โ | โ | โ | โ | โ
|
Claude Code | project JSONL + file-history | โ | โ | โ | โ version chain | โ | โ
|
ZCode | SQLite ( | โ | โ | โ | โ ๏ธ file events (edits stay in raw) | โ usage tables | โ desktop only |
DSH | zstd JSONL ( | โ | โ | โ | โ | โ | โ
|
Grok CLI |
| โ | โ | โ | โ | โ | โ
|
Cursor |
| โ | โ | โ | โ ๏ธ in raw | โ ๏ธ | โ IDE only |
Kiro IDE | workspace-session JSON | โ | โ not persisted | โ | โ | โ | โ IDE only |
Antigravity | conversation SQLite (protobuf) | โ ๏ธ heuristic | โ ๏ธ heuristic | โ ๏ธ text | โ ๏ธ snapshots on disk | โ | โ IDE only |
Cursor and Antigravity adapters are marked experimental: Cursor reads its key-value store read-only and Antigravity decodes protobuf blobs heuristically (no public schema). Full per-field availability matrix and data-source paths for every tool are in docs/RECON.md.
Tests & CI
Adapters are the part of Voyager that breaks when a vendor ships a storage change, so every platform has a regression test against a synthetic fixture โ no real session data, no agent installation needed:
tests/
โโโ fixtures/ # codex/claude/dsh/grok/kiro JSON+JSONL, zcode/cursor/antigravity SQL seeds
โโโ conftest.py # builds tmp trees (incl. zstd + SQLite) and repoints adapters at them
โโโ test_codex.py test_claude.py test_zcode.py test_dsh.py test_grok.py
โโโ test_cursor.py test_kiro.py test_antigravity.py test_adapters.py
โโโ test_store.py test_export.py test_handoff.py test_cli.py test_mcp.py
โโโ test_claude_session_start_hook.py # the SessionStart entrypoint: protocol, size cap, spill, logging
โโโ test_context_cache.py # the persisted context cache, incl. hostile inputpython -m pytest tests/ -q # 363 collected: 345 passed, 18 skipped โ adapters, store, continuity, budget, leases, switch, skill, API, MCP, integration
python scripts/run_tests_core_only.py # same suite with no optional deps (skips extras)CI (.github/workflows/test.yml) runs the suite
on Python 3.10โ3.13 (Linux) and 3.10/3.13 (Windows โ the adapters deal with
%APPDATA%, drive letters and backslashes), plus a core-only job proving the
CLI works with zero optional dependencies. The store tests cover the
"don't wreck my thousands of sessions" contract: repeated scans never
duplicate, changed sources are re-parsed, vanished sources are pruned.
Design
Provider files are read-only. Adapters translate each platform's events into
one normalized model (Session / Event) while keeping the raw provider
event alongside โ nothing is lost, giant blobs are truncated with a pointer
back to the source. Everything lands in a local SQLite index with FTS5
(trigram, so CJK substring search works). Scans are idempotent: sources are
tracked by (mtime, size) and re-parsed only when they change; sessions
whose source files vanish are pruned.
Details in docs/ARCHITECTURE.md, docs/DECISIONS.md, docs/API.md and docs/FAQ.md and everyday recipes in docs/WORKFLOWS.md.
What's next
The Continuity Engine core is complete (see docs/ROADMAP.md for the full close-out). The post-1.0 backlog โ VS Code Context Composer UI, auto-clustering research, Claude/DSH transcript gates, scoped scan, fs-event watcher, PyPI/packaging polish โ lives in docs/POST-1.0.md.
Phased plan, CLI sketches, and the issue list: docs/ROADMAP.md ยท ไธญๆ.
License
MIT โ see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Local-first, governed memory and session continuity for AI coding agents. No cloud, no telemetry.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Persistent memory for AI agents. Search, store, and recall across sessions.
- EngramOAuthtools.engram
Memory for AI agent teams across tools, sessions, repositories, and teammates.
Related MCP Servers
- AlicenseAqualityAmaintenanceLocal index and hybrid search (SQLite FTS5 + on-device vector KNN) over your AI coding-agent conversation history across 11 tools (Claude Code, Codex, Cursor, and more). Exposes search_threads, search_current_project, recent_threads, get_thread, list_tags, and list_open_todos so any agent can recall its own past work.2239AGPL 3.0
- FlicenseAqualityDmaintenanceA persistent, cross-session knowledge base for AI agents that indexes session history into a searchable SQLite database with full-text search, enabling recall of past sessions, stored knowledge, and summaries.10-
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to search and retrieve past coding-tool conversations across Claude Code, Claude Desktop, Codex, and Cursor through a local, read-only index.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching, indexing, and recovering past AI chat sessions and agent actions from local AI coding tools, with optional vector database semantic search and direct filesystem access.-