agent-hop Reverse-Engineers Five Agents' Session Formats So You Can Resume a Chat in a Different Tool
Posted to HN on August 8, agent-hop is a CLI that searches all your local coding-agent histories and resumes any session in any supported agent, normalizing five reverse-engineered on-disk formats to a common turn structure: Claude Code JSONL under `~/.claude/projects/`, Codex rollout JSONL under `~/.codex/sessions/YYYY/MM/DD/`, OpenCode via its SQLite-backed export/import, Pi JSONL under `~/.pi/agent/sessions/`, and Grok Build's `chat_history.jsonl` plus `summary.json`. Converted sessions are written to look native to the target tool. Notably, Muse Code support was removed pending live API verification — and the format-quirk notes (Claude Code hyphenates every non-alphanumeric character in path encoding; Pi is more selective) are useful on their own if you parse these files for observability.
Source
↳ Follow the thread