Eight coding agents store sessions eight ways, so one dev built a unified searchable index
Southern_Reference23 · reddit · 2026-09-20
A developer built a single-file Python tool that indexes the on-disk session stores of eight coding agents — Claude Code, Codex, OpenCode, Gemini CLI, Droid, Copilot CLI, Kimi Code and Qwen Code — into one searchable list with fzf-style resume.
Key details:
- Storage formats differ wildly: OpenCode uses sqlite; Gemini and Kimi hash the working directory into folder names (paths must be recovered from project lists); Droid and Qwen reuse Claude's JSONL shape with changed keys; Codex mixes real turns with event/reasoning records that need filtering.
- Typing a word lists every matching session with a preview; Enter resumes it with the agent's own resume command in its original directory, or focuses the pane if still running.
- Parsing stays fast by testing byte markers in each line's head before .loads, skipping tool and reasoning lines — a 124 MiB transcript parses in tens of milliseconds.
GPL, standard library only plus fzf, no network calls. Also a useful reference for anyone parsing these session files.
More from coding & agent
- Qwen 27B one-shot prompt builds three playable Super Mario clones — EcstaticDentist · 2026-09-20
- Jev Classifies 1.6k Bookmarks in 22s, 155x Faster and 10x Cheaper Than GLM 4.7 Flash — iannuttall · 2026-09-20
- Python Is Losing Steam Because AI Doesn't Need It to Be Simple — mark_k · 2026-09-20
- Dev rips apart Musk-boosted agent's harness: 'complete garbage' Python mess — MickeySteamboat · 2026-09-20
- Databricks Co-founder: If Starting a PhD Today, I'd Work on Reward Hacking — burny_tech · 2026-09-20
- Open-source tools track what AI coding agents really spend in tokens and cost — _jaydeepkarale · 2026-09-20