Your agent worked all night in Claude Code. Now your quota says Codex. Take the context with you.
$ nexthop
⏭ nexthop · 6 个会话可交接
Claude Code · Codex CLI · 最近优先
● 2026-11-09 10:03 Claude Code 2 turns Fix the login race in src/auth.ts
· 2026-11-09 09:05 Codex CLI 2 turns migrate the store to zustandEvery solution to "I switched CLIs mid-task" ends the same way: a hand-written
HANDOFF.md. nexthop writes that file for you, extracted from the session
log the previous agent already left on disk — goal, where it stands, files
touched, commands worth knowing, resume commands.
- Cross-CLI — Claude Code and Codex sessions today; one registry, one format
- Heuristic, labelled — the handoff says exactly what it is and links the source log
- Read-only on the source — the only file nexthop writes is your HANDOFF.md
- Zero dependencies · offline · nothing leaves your machine
npm install -g nexthop
# or run once, install nothing:
npx nexthopnexthop # list handoff-able sessions across all CLIs
nexthop handoff # latest session (matches your cwd when possible) → HANDOFF.md
nexthop handoff --from codex # pick from Codex sessions only
nexthop handoff --session cpx-01 --force
nexthop show e2e-01 # print the extraction without writingThe generated HANDOFF.md follows the community convention — goal, where it
stands, last user instruction, files touched, commands, resume hints — so the
next agent (Claude Code, Codex, Cursor, anything) can read it cold.
- Session logs are parsed, never modified.
- The only file nexthop writes is the
HANDOFF.mdyou asked for (and it refuses to overwrite one without--force). - No network. Extraction is heuristic and the file says so on its face.
git clone https://github.com/ecoreal/nexthop && cd nexthop
npm test # 10 tests against synthetic session fixturesCI: Ubuntu/macOS/Windows × Node 18/20/22/24.
- More adapters: OpenClaw, Gemini CLI, Cursor
-
--launch— write the handoff and start the next CLI in one step - Token-budget summary of what the next agent will re-read
MIT © 2026 Jerry Lee (ecoreal)