Search, browse, and resume your Claude Code sessions. Fast.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
git clone https://github.com/neilberkman/ccrider{
"mcpServers": {
"ccrider": {
"command": "ccrider"
}
}
}MCP Servers overview
# ccrider
[](https://opensource.org/licenses/MIT)
[](https://github.com/neilberkman/ccrider/releases)
[](https://github.com/neilberkman/homebrew-tap)
[](https://news.ycombinator.com/item?id=46512501)
Search, browse, and resume your Claude Code, Codex CLI, GitHub Copilot CLI, OpenCode, Pi, Antigravity CLI, and Amp sessions, plus MCP server to remember past context.
When your coding agent forgets, tell it: _[see what you have done](#the-king)_.
## Why ccrider?
You've got months of coding agent sessions sitting in `~/.claude/projects/`, `~/.codex/sessions/`, `~/.copilot/`, `~/.local/share/opencode/`, `~/.pi/agent/sessions/`, `~/.gemini/antigravity-cli/brain/`, and your Amp account. Finding that conversation where you fixed the authentication bug? Good luck grepping through nested JSON files and separate tools.
ccrider indexes Claude Code, Codex CLI, GitHub Copilot CLI, OpenCode, Pi, Antigravity CLI, and Amp sessions into a single searchable database, with a TUI browser, CLI search, and an MCP server so your agent can search past sessions too.
```bash
# Import sessions from every detected local provider (and Amp when explicitly enabled)
ccrider sync
# Launch the TUI - browse, search, resume
ccrider tui
# Or search from command line
ccrider search "authentication bug"
```
Stay in your terminal. Find any conversation. Resume where you left off. Sessions are tagged with their provider in the TUI for easy identification.
**Installation:**
```bash
# Homebrew (recommended)
brew install neilberkman/tap/ccrider
# Or from source
git clone https://github.com/neilberkman/ccrider.git
cd ccrider
go build -o ccrider cmd/ccrider/main.go
sudo mv ccrider /usr/local/bin/
# Optional: install the MCP server in Claude Code
claude mcp add --scope user ccrider $(which ccrider) serve-mcp
```
<a id="the-king"></a>
_"Vibe code like ~a king~ The King!"_
https://github.com/user-attachments/assets/5b008290-076e-4323-a775-f27f704b1ff2
## Core Features
### 1. Interactive TUI Browser
```bash
ccrider tui
```
Browse your sessions with a polished terminal UI:
- **Arrow keys** to navigate
- **Enter** to view full conversation
- **o** to open session in new terminal tab (auto-detects Ghostty, iTerm, Terminal.app)
- **/** to search across all messages
- **p** to toggle project filter (show only current directory)
- **?** for help
Sessions matching your current directory are highlighted in light green - instantly see which sessions are relevant to your current work.
### 2. Full-Text Search
```bash
ccrider search "postgres migration"
ccrider search "error handling" --project ~/code/myapp
ccrider search "authentication" --after 2024-01-01
```
Powered by SQLite FTS5 - search message content, filter by project or date, get results instantly.
### 3. Resume Sessions
Press **r** in the TUI to launch the provider's resume command in the right directory with the right session. Use **c** to copy that command or **o** to open it in a new terminal. Pi resumes with `pi --session <id>` and forks with `pi --fork <id>`; Antigravity resumes with `agy --conversation <id>` and forks interactively with `/fork`; Amp resumes with `amp threads continue <id>`.
### 4. Incremental Sync
```bash
ccrider sync # Import new sessions from all providers
ccrider sync --force # Re-import everything
```
Automatically discovers Claude Code (`~/.claude/projects/`), Codex CLI (`~/.codex/sessions/`), GitHub Copilot CLI (`~/.copilot/session-state/`), OpenCode (`~/.local/share/opencode/opencode*.db`), Pi (`~/.pi/agent/sessions/`), and Antigravity CLI (`~/.gemini/antigravity-cli/brain/`) sessions. Antigravity imports each canonical `transcript.jsonl`, excluding its diagnostic transcript. To import Amp, set `amp_enabled = true` in `~/.config/ccrider/config.toml` and install/authenticate the `amp` CLI. ccrider then lists archived and active threads and exports only new or changed threads.
Amp threads are cloud-backed. The integration is disabled by default because enabling it downloads searchable text into ccrider's local SQLite database. MCP requests never contact Amp; they search cached Amp data from an earlier CLI/TUI sync.
---
## MCP Server
ccrider includes a built-in MCP (Model Context Protocol) server that gives your coding agent access to your session history.
Ask your agent to search past conversations while working on new problems:
- "Find sessions where I worked on authentication"
- "Show me my most recent Elixir sessions"
- "What was I working on last week in the billing project?"
- "Search my Codex sessions for database migrations"
### Setup
Configure your MCP-capable client to run `ccrider serve-mcp`. Examples:
**Claude Code:**
```bash
# Install for all your projects (recommended)
claude mcp add --scope user ccrider $(which ccrider) serve-mcp
# Or for current project only
claude mcp add ccrider $(which ccrider) serve-mcp
```
**Claude Desktop:**
Add to your config (`~/Library/Application Support/Claude/claude_desktop_config.json`):
```json
{
"mcpServers": {
"ccrider": {
"command": "ccrider",
"args": ["serve-mcp"]
}
}
}
```
**Other MCP clients:**
Use command `ccrider` with args `["serve-mcp"]`.
### Available Tools
- **search_sessions** - Full-text search across all session content with date/project/provider filters
- **list_recent_sessions** - Get recent sessions, optionally filtered by project or provider
- **get_session_messages** - Get messages from a session (supports tail mode, context around search matches)
- **generate_session_anchor** - Generate a unique phrase to tag your session for later retrieval
All tools support a `provider` parameter to filter by `claude`, `codex`, `copilot`, `opencode`, `pi`, `antigravity`, or `amp`. The MCP server provides read-only access to your local session database. Local providers are read from disk; Amp threads are fetched from your authenticated Amp account during sync and then stored locally.
---
## Configuration
> **Note:** Claude Code auto-deletes session JSON files after 30 days by default. ccrider preserves all session content in its own database, but if you want the original files kept (for resume, etc.), add `"cleanupPeriodDays": 99999` to your `~/.claude/settings.json`.
ccrider looks for config in `~/.config/ccrider/`:
```toml
# config.toml - pass additional flags to each provider's resume command
claude_flags = ["--dangerously-skip-permissions"]
# codex_flags = ["--dangerously-bypass-approvals-and-sandbox"]
# copilot_flags = []
# opencode_flags = []
# pi_flags = []
```
```txt
# terminal_command.txt - custom command for 'o' key
# Available placeholders: {cwd}, {command}
wezterm cli spawn --cwd {cwd} -- {command}
```
```txt
# resume_prompt.txt - customize the prompt sent when resuming sessions
```
See [CONFIGURATION.md](docs/CONFIGURATION.md) for full details.
---
## Architecture
Built with strict core/interface separation following [Saša Jurić's principles](https://www.theerlangelist.com/article/phoenix_is_modular):
- **Core** (`pkg/`, `internal/core/`): Pure business logic - parsing, database, search, multi-provider import
- **Interface** (`internal/interface/`, `cmd/`): Thin wrappers - CLI, TUI, MCP server
Uses proven technologies:
- **Go** for performance and single-binary distribution
- **SQLite with FTS5** for fast full-text search
- **Bubbletea** for polished terminal UI
- **MCP** for coding agent integration
### Why This Matters
Other coding agent session tools are broken:
- Incomplete schema support (can't parse all message types)
- Broken builds and abandoned dependencies
- No real search (just grep)
- Can't actually resume sessions
- Single-provider only
ccrider fixes this with:
- 100% schema coverage - parses all message types correctly
- Multi-provider - Claude Code, Codex CLI, GitHub Copilot CLI, OpenCode, Pi, Antigravity CLI, and Amp in one database
- SQLite FTS5 search - fast, powerful full-text search
- Single binary - no npm, no pip, no dependencies
- Native resume - one keystroke to resume sessions
- Incremental sync - detects new messages in ongoing sessions
---
## Development
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and guidelines.
### Project Structure
```
cmd/ccrider/ # CLI entry point + MCP server
internal/
core/ # Business logic (no UI concerns)
db/ # Database operations
importer/ # Session import/sync and Amp CLI client
search/ # Full-text search
session/ # Session launch logic
interface/ # Thin UI wrappers
cli/ # Command handlers
tui/ # Terminal UI (bubbletea)
pkg/
ccsessions/ # Claude Code session parser (public API)
codexsessions/ # Codex CLI session parser (public API)
copilotsessions/ # GitHub Copilot CLI session parser (public API)
opencodesessions/ # OpenCode session parser (public API)
pisessions/ # Pi session parser (public API)
antigravitysessions/ # Antigravity CLI session parser (public API)
ampsessions/ # Pure Amp export parser (public API)
```
### Quick Build
```bash
go build -o ccrider cmd/ccrider/main.go
./ccrider sync
./ccrider tui
```
---
## Documentation
- [Configuration Guide](docs/CONFIGURATION.md)
- [Resume Prompts](docs/RESUME_PROMPT.md)
- [Design Document](docs/plans/2025-11-08-ccrider-design.md)
- [Schema Documentation](research/schema.md)
- [Requirements](research/requirements.md)
## License
MIT
What people ask about ccrider
What is neilberkman/ccrider?
+
neilberkman/ccrider is mcp servers for the Claude AI ecosystem. Search, browse, and resume your Claude Code sessions. Fast. It has 121 GitHub stars and its last recorded update is dated 2026-08-05.
How do I install ccrider?
+
You can install ccrider by cloning the repository (https://github.com/neilberkman/ccrider) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is neilberkman/ccrider safe to use?
+
Our security agent has analyzed neilberkman/ccrider and assigned a Trust Score of 92/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains neilberkman/ccrider?
+
neilberkman/ccrider is maintained by neilberkman. The last recorded GitHub activity is dated 2026-08-05, with 0 open issues.
Are there alternatives to ccrider?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy ccrider to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/neilberkman-ccrider)<a href="https://claudewave.com/repo/neilberkman-ccrider"><img src="https://claudewave.com/api/badge/neilberkman-ccrider" alt="Featured on ClaudeWave: neilberkman/ccrider" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!