Where did last week's Claude Code session go? Today's recipe
Claude Code deletes old sessions after 30 days. Caprock keeps every Claude Code, Codex and OpenCode session on your machine and finds one by a word.
Demo data: the projects, answers and ages on screen come from Caprock's demo screenshots; the searches typed and the ⌘K result tags are staged on the real UI. Voice-over and the opening kitchen shot are AI-generated.
Watch on: YouTube Shorts
More explainers on YouTube Follow the build: YouTube Instagram Threads X
Transcript
The question
Where's that migration your agent wrote last week?
Claude Code deletes old sessions after 30 days by default. Today's recipe keeps them all, and finds it in one search.
You'll need Caprock, a free, open-source app, and one word you remember.
The recipe
Step one: Caprock keeps every Claude Code, Codex and OpenCode session on your machine.
Step two: open Memory. Type the word: migration.
Step three: serve. What the agent told you 6 days ago, in web-app: backfill in batches, and the table never locks for long.
One click, and you're back at the moment it was written.
By what you asked
Remember what you asked, not what it said? Press ⌘K, or Ctrl+K, and type it. Past sessions come up with project, age and cost.
Chef's note: it all stays on this machine.
Serves one tired developer. Caprock: free and open source, at caprock.dev.
How it works
Kept past 30 days.
Claude Code removes its transcripts after 30 days by default; Caprock keeps what it read from them, Codex's and OpenCode's sessions too. Claude Code history →
Search what the agent said.
The Memory screen searches the replies Claude Code, Codex and OpenCode wrote, and opens the moment each was written. Search across sessions →
Or what you asked.
⌘K (Ctrl+K on Windows and Linux) finds past sessions by any prompt you typed, the title, project or branch, with project, age and cost. Resume a Claude Code session →
Only what Caprock read.
Sessions Claude Code deleted before Caprock was installed are gone. Gemini CLI is recorded when Caprock starts it.
Local and free.
It all stays on your machine, and it is all in the free app.
