Skip to content

Claude Session Index

Index, search, and analyze your Claude Code sessions. Full-text search, conversation retrieval, analytics, and cross-session synthesis.

Install: npx skills add lee-fuhr/claude-session-index

Works with Claude Code · 30 GitHub stars

Install

$npx skills add lee-fuhr/claude-session-index

Install command taken from the project's README or registry entry. Always review code before running it.

Claude session index

Every Claude Code session you've ever had, searchable in under a second.

You've built things across hundreds of sessions. Solved problems, hit walls, found workarounds. But sessions disappear into ~/.claude/projects/ as unlabeled JSONL files — thousands of them, unsearchable, forgettable. This tool indexes them all into a fast SQLite database with full-text search, conversation retrieval, analytics, and cross-session synthesis.

Ask "what did I try last time I debugged webhooks?" and get an actual answer.


Quick start

pip install claude-session-index

Then install the Claude Code skill:

npx skills add lee-fuhr/claude-session-index

Or copy it manually:

cp skills/session-index/SKILL.md .claude/skills/session-index.md

That's it. The first time you ask a question, it auto-indexes all your existing sessions. After that, queries return in milliseconds.


How it works (for you)

The interface is your Claude Code conversation. You ask questions naturally, Claude translates them into searches, and gives you conversational answers.

"Didn't we discuss browser control recently?"

Claude searches your sessions, finds the matches, and tells you:

You discussed browser control in 3 sessions last week. The most relevant was on Jan 18 where you figured out that synthetic MouseEvent dispatch bypasses the framework's event handling. The key insight was that the submit button was a ``, not a <button>.

→ claude --resume a5b111c6-dca0-4ee9-b237-74b75baf13cd

"What have I tried for form automation? What actually worked?"

Claude searches across sessions, extracts the relevant conversations, and synthesizes:

Approaches tried: element.click() → failed (framework intercepts). Coordinate-based clicking → failed (dynamic elements). Synthetic MouseEvent dispatch → success.

What worked: Native OS-level clicking for all button interaction. Persistent browser profiles for session continuity.

What failed: All JavaScript-based clicking — the framework intercepts and blocks it.

Sources: 5 sessions spanning Jan 10–Feb 1 → claude --resume abc123... → claude --resume def456...

"How did I spend my week?"

89 sessions this week. 302 hours total.

Windmill Labs: 2 sessions, 47h GridSync: 2 sessions, 17h NovaTech: 4 sessions, 7h

Top tools: Bash (3,214), Read (2,126), Edit (1,718) Task agent usage up 142% from last week.

Every answer includes claude --resume links so you can jump straight back into any session.


What it does under the hood

  1. Indexes all your Claude Code sessions into SQLite with FTS5 full-text search
  2. Searches by content, client, project, tool, agent, tag, or date — results in milliseconds
  3. Retrieves context — actual conversation exchanges (user + assistant), not just metadata
  4. Analyzes your usage — time per client, tool trends, session frequency, topic patterns
  5. Synthesizes across sessions — "What approaches have I tried for X?" via in-session Haiku subagent (no extra API cost)
  6. Tracks topics live during sessions via Claude Code hooks

The CLI

The skill handles the conversational interface. But if you want direct access from a terminal, everything goes through sessions:

# Search — just type what you're looking for
sessions "webhook debugging"
sessions "webhook" --context              # with conversation excerpts

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex…

Open-source AI job search agent and job finder: scan job boards, score each job 1-5 against your CV before you apply, tailor an ATS-friendly resume and cover letter, get…

Agent skillSearch & web+1,899 this week

Explore related