Search, inspect, and resume local Claude Code, Claude Desktop, Codex, and Opencode sessions from the terminal.
Use ccs when you remember a topic, command, file path, stack trace, or decision from an old agent session, but not the session itself.
Install
brew install materkey/ccs/ccs
Shell installer, Cargo, cargo-binstall
The crate and the installer are named ccfullsearch; the installed command is ccs.
Shell installer:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/materkey/ccfullsearch/releases/latest/download/ccfullsearch-installer.sh | sh
Cargo:
cargo install ccfullsearch --locked
cargo-binstall:
cargo binstall ccfullsearch
Update a non-Homebrew install with ccs update. For Homebrew installs, use brew upgrade ccs instead.
Requirements:
rg from ripgrep must be available in PATH. The Homebrew formula installs it automatically.
claude must be available in PATH to resume Claude Code sessions and to use AI search.
codex must be available in PATH to resume Codex sessions.
opencode must be available in PATH to resume Opencode sessions.
Quick start
ccs
ccs opens on recent sessions. Start typing to search. Press Enter to resume the selected session.
Opened the wrong session? Leave it within a minute (/exit or Ctrl+C) and ccs comes back exactly where you were: the same query, filters and cursor, with the session you just opened tagged [opened]. Leaving after a longer session returns to the shell as before.
If Claude, Codex or Opencode fails to start the session, ccs shows the error; press Enter to return to the picker.
How it works
- Full transcripts, not titles.
ccs searches user and assistant messages, tool calls and tool results, thinking blocks and rendered slash commands. A query matches as one exact phrase, ignoring case; turn on regex (Ctrl+R or --regex) for anything looser. Results are grouped by transcript, so multiple matches from the same conversation stay together, and each row in the TUI shows the project, branch, provider, source, timestamp and message count.
- Resume a Claude Code session from any point. Tree view shows conversation branches, fork points, latest-chain markers, and compaction boundaries. Resuming from a non-latest tree message creates a forked JSONL transcript and resumes that branch. Opencode sessions always open at their latest point, Codex sessions have no tree, and for Claude Desktop sessions
Enter only opens the app on macOS.
- Search by description. Press
Ctrl+G and describe the session in your own words, in any language. A claude -p agent tries several phrasings over your whole history, Opencode sessions aside, and returns up to five sessions, each with a short reason.
- Other machines too. With remote hosts configured, search, recent sessions, preview, tree and resume work over ssh next to your local sessions.
Main keys