Blazing-fast local full-text search (SQLite FTS5) for your Claude Code sessions
Project description
cc·search
Blazing-fast local full-text search for your Claude Code sessions.
Every conversation you've ever had with Claude Code — your prompts, Claude's answers, its internal thinking, every tool call and its output, even subagent transcripts — indexed and searchable in milliseconds.
- Zero dependencies — pure Python standard library (SQLite FTS5 is built in)
- 100% local & private — binds to
127.0.0.1only, makes zero network requests, nothing ever leaves your machine - Fast — indexes ~200k messages (1.8 GB of transcripts) in under 10 seconds; incremental after that
Installation
Run it instantly with uv (nothing installed permanently):
uvx claude-session-search
Install it with pipx or pip:
pipx install claude-session-search # or: pip install claude-session-search
cc-search
Or straight from GitHub:
uvx --from git+https://github.com/aleducode/cc-search cc-search
Or clone and run:
git clone https://github.com/aleducode/cc-search && cd cc-search
./run.sh
Any of the above indexes your sessions and opens http://localhost:7777 in your browser. The first run takes a few seconds; subsequent runs only process files that changed.
cc-search --port 8080 # use a different port
cc-search --no-open # don't open the browser
cc-search --reindex # rebuild the index and exit
The index lives at ~/.cc-search/index.db.
What gets indexed
Everything inside every session under ~/.claude/projects/:
| Role | Content |
|---|---|
user |
Your prompts |
assistant |
Claude's responses |
thinking |
The model's internal reasoning |
tool_use |
Every tool invocation and its arguments |
tool_result |
Tool output (truncated to 4 KB per message) |
Subagent transcripts (<session>/subagents/*.jsonl) are included too — tagged with ⑂ and attributed to their parent session.
Search features
- SQLite FTS5 full-text engine with BM25 relevance ranking
- Diacritic-insensitive:
migracionmatchesmigración - Automatic prefix matching:
indexmatchesindexer,indexing, … - Exact phrases with quotes:
"connection refused" - Filters: project (sidebar), message role (chips), date range, sort by relevance or recency
- Full-context view: click any result to open the entire conversation with the matching message centered and highlighted
- Keyboard-first:
/focuses the search box,Esccloses panels
How it works
cc_search/indexer.py JSONL parser → SQLite (~/.cc-search/index.db) with an FTS5 virtual table
cc_search/server.py stdlib HTTP server + JSON API: /api/search, /api/sessions,
/api/session/<id>, /api/projects, /api/stats, /api/reindex
cc_search/static/ single-page UI, no build step
The indexer tracks each file's mtime and size, so reindexing (on startup or via the ⟳ Reindex button) only reprocesses sessions that changed.
Privacy
Everything is strictly local. The server listens on 127.0.0.1 only and performs no outbound requests of any kind. Your transcripts never leave your machine. See SECURITY.md.
Contributing
Contributions are welcome — see CONTRIBUTING.md. The one hard rule: zero runtime dependencies. Run the tests with:
python3 -m unittest discover -s tests -v
Release history lives in the CHANGELOG.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_session_search-0.2.0.tar.gz.
File metadata
- Download URL: claude_session_search-0.2.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2faa5a1c7a2ed22722ba93d9cd55d3e5b866e73fa28c6a477128d17f66d154d5
|
|
| MD5 |
479ba5680c1c2b4cc66145a9bcbc4726
|
|
| BLAKE2b-256 |
e8cc1cc9db0277bef040d958ac3704c280b6d66aaa3d7423ce2f00003d9f3f93
|
Provenance
The following attestation bundles were made for claude_session_search-0.2.0.tar.gz:
Publisher:
publish.yml on aleducode/cc-search
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_session_search-0.2.0.tar.gz -
Subject digest:
2faa5a1c7a2ed22722ba93d9cd55d3e5b866e73fa28c6a477128d17f66d154d5 - Sigstore transparency entry: 2256844520
- Sigstore integration time:
-
Permalink:
aleducode/cc-search@8202f37bb61e2638b8521d4a35fc617c379c47f7 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/aleducode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8202f37bb61e2638b8521d4a35fc617c379c47f7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file claude_session_search-0.2.0-py3-none-any.whl.
File metadata
- Download URL: claude_session_search-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
272adf2ae5a7c8025c8eb0611cb88f30a2039a5afb0b64d470508ca119d1faf6
|
|
| MD5 |
d303cd80126e73b7e61d64b61e7c8fc2
|
|
| BLAKE2b-256 |
a81b744c5b04d4d6eb1b3964cb8284f8374132ae574c96a6e72388946da3f1ae
|
Provenance
The following attestation bundles were made for claude_session_search-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on aleducode/cc-search
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_session_search-0.2.0-py3-none-any.whl -
Subject digest:
272adf2ae5a7c8025c8eb0611cb88f30a2039a5afb0b64d470508ca119d1faf6 - Sigstore transparency entry: 2256844529
- Sigstore integration time:
-
Permalink:
aleducode/cc-search@8202f37bb61e2638b8521d4a35fc617c379c47f7 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/aleducode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8202f37bb61e2638b8521d4a35fc617c379c47f7 -
Trigger Event:
push
-
Statement type: