Skip to main content

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.

Python Dependencies License

  • Zero dependencies — pure Python standard library (SQLite FTS5 is built in)
  • 100% local & private — binds to 127.0.0.1 only, 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: migracion matches migración
  • Automatic prefix matching: index matches indexer, 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, Esc closes 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.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_session_search-0.1.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_session_search-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file claude_session_search-0.1.0.tar.gz.

File metadata

  • Download URL: claude_session_search-0.1.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for claude_session_search-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e700aa6d85ad90b612ff9983707a788980d610efcf73b48a5fa9f10d02ffb080
MD5 9444697f906ae5d0004b2ae164578b99
BLAKE2b-256 a7fe1d4ef1798e9f4c6edb8d9c18f48325ae76a9328b9ac9b9d2ee8b507bf9be

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_session_search-0.1.0.tar.gz:

Publisher: publish.yml on aleducode/cc-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_session_search-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_session_search-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9b369b91ff0579cea38a7fdcf5388d0ab83d6cf6ef7a754f7f8caba1330004
MD5 fa43c2348804c4dc0ce148f967f40e93
BLAKE2b-256 347fc04c883df7c043c6bc8dacc361ff17ad765cd45377591a43c434e3cc65d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_session_search-0.1.0-py3-none-any.whl:

Publisher: publish.yml on aleducode/cc-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page