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

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.

kioku searching 結帳 across Traditional Chinese messages, with the transcript below the results

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.

Links