Search your Claude Code and Codex sessions: kioku
After talking something through with an AI, I often come back a few days later and can’t remember which session it was, or which tool I used.
So I built kioku (記憶, Japanese for “memory”), a terminal tool that searches the transcripts of all your coding agents. It indexes whole conversations and returns individual messages, not just session titles.
What it does
- Message-level hits. Every row is the message that matched, ranked by BM25, with an agent mark, project and age.
- Seven agents. Claude Code, Codex, Pi, Grok, OpenCode, Cursor CLI and Antigravity CLI, on macOS and Linux.
- Read the context, then continue. The transcript folds unrelated turns away. Enter resumes the session in its own directory with that agent’s resume command.
- Local and read-only. It never edits agent transcripts. The only thing it writes is its own index in
~/.cache/kioku.
Built with CJK in mind
Most full-text search doesn’t segment Chinese, Japanese or Korean text, so searching for 部署, デプロイ or 배포 (all “deploy”) often finds nothing. I wrote a CJK tokenizer, fts5-cjk, so those words match inside running text. kioku links it in, so 結帳, ログイン and 결제 work out of the box, including single characters.

Try it
brew install Ray0907/kioku/kioku
kioku 部署
Prebuilt binaries and build-from-source steps are in the README. kioku also has a JSON CLI, an MCP server and a Claude Code plugin, so agents can search their own past sessions.