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.

See every coding agent you run.

Who is waiting on you, who is stuck, how close the limit is. Free and open source; nothing leaves your machine.

Caprock is a desktop app: it installs on your computer, not your phone.

Or email yourself the link:

macOS, Windows and Linux. Your phone pairs with it by QR code. Install options →

Download on the App StoreDownload on the App Store

On an iPhone, pair it with the app.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Download for Windows

Windows 10 22H2 or later, x64. Windows may ask once whether to run it: click More info, then Run anyway.

Paste it into Claude Code, Codex or any coding agent.

See what it says ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local
app for my coding agents: https://github.com/dspv/caprock

What the install does and how to remove it:
https://github.com/dspv/caprock/blob/master/docs/install-agent.md

Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or
/linux.sh. Read it before you run it if you like. Leave my Claude Code settings
alone; the app asks me itself. Tell me when it's open.

Or run it yourself:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.

Homebrew

Or run it yourself:

irm https://caprock.dev/win.ps1 | iex

Paste in PowerShell: it installs Caprock for you and opens it.

Or run it yourself:

curl -fsSL https://caprock.dev/linux.sh | sh

Paste in a terminal: it installs Caprock for you, no sudo.

Or download the AppImage