From thread-finder
Search, index, and extract local Claude Code session history using Thread Finder hybrid search.
How this skill is triggered — by the user, by Claude, or both
Slash command
/thread-finder:thread-finderThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the user asks to search, inspect, extract, or update the local index of Claude Code sessions.
Use this skill when the user asks to search, inspect, extract, or update the local index of Claude Code sessions.
~/.claude/projects/<encoded-cwd>/<session-id>.jsonl~/.claude/plugins/data/thread-finder/index.sqliteThread Finder only reads from ~/.claude/projects/. It writes its derived chunks, embeddings, and FTS5 rows to its own index database.
text-embedding-3-largehybrid, combining vector cosine search with SQLite FTS5 BM25 through reciprocal rank fusionPrefer the MCP tools when available:
thread_search(query, limit=5, mode="hybrid", project=None)thread_index_sync(force=false, limit=null, project=None)thread_index_one(thread_id, force=false)thread_extract(thread_id, include_transcript=false)thread_finder_paths()Use thread_search in hybrid mode by default. Use mode="text" for exact IDs, paths, table names, stack traces, and function names. Use mode="vector" only when the user explicitly wants semantic-only matching.
Pass project="accounting-analytics" (or any substring of the project dir / cwd) to scope a search to one project. Project dir names are the encoded form Claude Code stores under ~/.claude/projects/.
Use thread_extract after thread_search when the user wants to pull context from an older session into the current one. Return the paste_ready_summary to the user, and include transcript only when the user asks for the full readable transcript.
Tool calls (tool_use) and their outputs (tool_result) are included in the index, truncated, so queries about specific bash commands, file edits, or search results in past sessions will hit.
Sidechain (sub-agent) sessions are indexed and tagged via the is_sidechain field.
Update the index:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py index
Search:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py search "pricing deploy rollback" --mode hybrid
Scope a search to one project:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py search "rentals united import" --project accounting-analytics
Run one retrieval branch explicitly:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py search "multiunit_attributes 4699138" --mode text
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py search "that RU onboarding import session" --mode vector
Extract paste-ready context:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py extract SESSION_ID
Extract paste-ready context plus the full readable transcript:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py extract SESSION_ID --include-transcript
Re-index one session:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/thread_finder_core.py index --thread-id SESSION_ID --force
npx claudepluginhub hyatus-living/claude-plugins --plugin thread-finderCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.