{"id":"de14d544-7f03-4369-bac7-5cdeb12c66c8","slug":"claude-sesh","kind":"mcp","name":"claude-sesh","summary":"Session explorer for Claude Code - find, search, and resume all your past sessions","owner":"abracadabra50","repoUrl":"https://github.com/abracadabra50/claude-sesh","license":"MIT","licenseTier":"permissive","trust":"community","stars":16,"match":null,"fewStars":false,"format":"mcp","createdAt":"2025-12-17T12:06:09.000Z","addedAt":"2026-10-14T05:48:11.541Z","logoUrl":"https://avatars.githubusercontent.com/u/195611275?u=d88c535f2b90d5cff50c0eac605d4d57634ad17f&v=4","linkOnly":false,"collection":null,"skillPath":null,"categories":["developer-tools","search","data-analytics"],"tags":["analytics","anthropic","claude-code","cli","developer-tools","typescript","session-explorer"],"runtime":"node","local":true,"cloudCapable":false,"cloudCapability":"unknown","cloudReadyOnPlatform":false,"needsApiKey":false,"reviewed":false,"syncedAt":"2026-10-17T07:49:26.443Z","sample":false,"url":"https://conduits.dev/tools/claude-sesh","language":"TypeScript","transports":["stdio"],"install":{"npm":"claude-sesh"},"requirements":{"env":[],"upstreamMayCharge":false},"tools":null,"readme":"<div align=\"center\">\n\n# 🗂️ claude-sesh\n\n### Your Claude Code sessions, organized.\n\n<br />\n\n**Claude Code buries your sessions in `~/.claude/projects/`.**\n**Good luck finding that conversation from last week.**\n\n<br />\n\n[![npm version](https://img.shields.io/npm/v/claude-sesh.svg?style=for-the-badge&color=D4A574)](https://www.npmjs.com/package/claude-sesh)\n[![npm downloads](https://img.shields.io/npm/dm/claude-sesh.svg?style=for-the-badge&color=8B7355)](https://www.npmjs.com/package/claude-sesh)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](LICENSE)\n[![MCP](https://img.shields.io/badge/MCP-enabled-D4A574.svg?style=for-the-badge)](https://modelcontextprotocol.io)\n\n<br />\n\n```bash\nnpx claude-sesh web\n```\n\n**One command. Zero config. Your entire Claude Code history.**\n\n<br />\n\n[Features](#features) · [Quick Start](#quick-start) · [Dashboard](#-web-dashboard) · [CLI](#-cli-commands) · [MCP](#-mcp-integration)\n\n<br />\n\n<img src=\"assets/dashboard.png\" alt=\"claude-sesh dashboard\" width=\"800\" />\n\n</div>\n\n<br />\n\n---\n\n<br />\n\n## Features\n\n<table>\n<tr>\n<td width=\"50%\">\n\n### 🔍 Session Explorer\n\n**Find any conversation instantly.**\n\nBrowse your complete Claude Code history with powerful filtering by project, date, model, and more. Never lose track of that perfect solution again.\n\n</td>\n<td width=\"50%\">\n\n### 🔎 Full-Text Search\n\n**Search across everything.**\n\nFind sessions by code snippets, error messages, or any text. Search spans all your conversations, tool calls, and outputs.\n\n</td>\n</tr>\n<tr>\n<td width=\"50%\">\n\n### 📊 Usage Analytics\n\n**Know where your tokens go.**\n\nTrack costs, token usage, and coding time across all sessions. See breakdowns by project, model, and time period.\n\n</td>\n<td width=\"50%\">\n\n### 🔄 Easy Resume\n\n**Pick up where you left off.**\n\nGet rich context summaries to continue any session. Copy resume prompts or use Claude's native resume feature.\n\n</td>\n</tr>\n<tr>\n<td width=\"50%\">\n\n### 🏷️ AI Enrichment\n\n**Auto-generated insights.**\n\nLet AI summarize sessions, extract key decisions, and add searchable tags. Powered by your Anthropic API key.\n\n</td>\n<td width=\"50%\">\n\n### 🧠 MCP Integration\n\n**Give Claude memory.**\n\nLet Claude search your past sessions directly. Ask \"How did I solve this before?\" and get real answers.\n\n</td>\n</tr>\n</table>\n\n<br />\n\n---\n\n<br />\n\n## Quick Start\n\n<table>\n<tr>\n<td>\n\n### ⚡ Try instantly\n\n```bash\nnpx claude-sesh web\n```\n\nOpens `http://localhost:3847` with your full Claude Code history.\n\n**No install. No config. No API keys.**\n\n</td>\n<td>\n\n### 📦 Install globally\n\n```bash\nnpm install -g claude-sesh\n```\n\nThen use the CLI anywhere:\n\n```bash\nsesh list          # List sessions\nsesh search \"bug\"  # Search conversations\nsesh stats         # View analytics\nsesh web           # Launch dashboard\n```\n\n</td>\n</tr>\n</table>\n\n<br />\n\n---\n\n<br />\n\n## 🖥️ Web Dashboard\n\n```bash\nsesh web\n```\n\n<br />\n\n<table>\n<tr>\n<td align=\"center\" width=\"33%\">\n<h3>📈</h3>\n<b>Stats at a Glance</b><br/>\n<sub>Total tokens, cost, hours coded</sub>\n</td>\n<td align=\"center\" width=\"33%\">\n<h3>📅</h3>\n<b>Activity Heatmap</b><br/>\n<sub>GitHub-style contribution graph</sub>\n</td>\n<td align=\"center\" width=\"33%\">\n<h3>⏱️</h3>\n<b>Session Timeline</b><br/>\n<sub>Visual history of all your work</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" width=\"33%\">\n<h3>🏆</h3>\n<b>Leaderboards</b><br/>\n<sub>Top projects, tools, models</sub>\n</td>\n<td align=\"center\" width=\"33%\">\n<h3>🔍</h3>\n<b>Deep Search</b><br/>\n<sub>Find by content, project, date</sub>\n</td>\n<td align=\"center\" width=\"33%\">\n<h3>📋</h3>\n<b>Session Details</b><br/>\n<sub>Full context for any session</sub>\n</td>\n</tr>\n</table>\n\n<br />\n\n---\n\n<br />\n\n## 💻 CLI Commands\n\n<table>\n<tr>\n<td width=\"50%\">\n\n**Browse Sessions**\n```bash\nsesh list              # Recent sessions\nsesh ls -n 50          # Last 50 sessions\nsesh show <id>         # Session details\nsesh projects          # List all projects\n```\n\n</td>\n<td width=\"50%\">\n\n**Search & Find**\n```bash\nsesh search \"auth\"     # Full-text search\nsesh continue          # Find resumable sessions\nsesh stats             # Overall statistics\n```\n\n</td>\n</tr>\n<tr>\n<td width=\"50%\">\n\n**Resume Work**\n```bash\nsesh resume <id>           # Get resume context\nsesh resume <id> --copy    # Copy to clipboard\nsesh resume <id> --native  # Use Claude's resume\n```\n\n</td>\n<td width=\"50%\">\n\n**AI Features**\n```bash\nsesh enrich            # Generate AI summaries\nsesh enrich --limit 20 # Enrich 20 sessions\nsesh enrich --stats    # Check progress\n```\n\n</td>\n</tr>\n</table>\n\n<br />\n\n---\n\n<br />\n\n## 🧠 MCP Integration\n\n**Give Claude access to your session history.**\n\n```bash\nclaude mcp add claude-sesh --scope user -- npx claude-sesh mcp\n```\n\nRestart Claude Code. Now ask things like:\n\n> *\"What was I working on in this project?\"*\n> *\"How did I solve the caching issue before?\"*\n> *\"What files have changed recently?\"*\n\n<br />\n\n<details>\n<summary><b>Available MCP Tools</b></summary>\n\n<br />\n\n| Tool | Description |\n|------|-------------|\n| `search_sessions` | Full-text search across all sessions |\n| `get_session` | Get detailed info about a specific session |\n| `get_project_context` | Recent sessions, decisions, todos for a project |\n| `get_pending_todos` | Find incomplete tasks across sessions |\n| `search_decisions` | Find past architectural decisions |\n| `search_knowledge` | Search learnings and solutions |\n| `get_file_history` | Track changes to specific files |\n| `get_recent_activity` | Summary of recent coding activity |\n\n</details>\n\n<br />\n\n---\n\n<br />\n\n## 🏷️ AI Enrichment\n\n**Auto-generate summaries and tags for better search.**\n\n```bash\nexport ANTHROPIC_API_KEY=your-key\nsesh enrich\n```\n\n<table>\n<tr>\n<td width=\"25%\" align=\"center\"><b>📝 Summary</b><br/><sub>What was accomplished</sub></td>\n<td width=\"25%\" align=\"center\"><b>🎯 Decisions</b><br/><sub>Key choices made</sub></td>\n<td width=\"25%\" align=\"center\"><b>🐛 Problems</b><br/><sub>Issues & solutions</sub></td>\n<td width=\"25%\" align=\"center\"><b>🏷️ Tags</b><br/><sub>Auto-categorization</sub></td>\n</tr>\n</table>\n\n<br />\n\n---\n\n<br />\n\n## How It Works\n\n```\n┌────────────────────────────────────────────────────────────────┐\n│  Claude Code writes sessions to ~/.claude/projects/           │\n│  ↓                                                             │\n│  claude-sesh parses & aggregates session data                  │\n│  • Token counts, costs, duration                               │\n│  • Tool usage breakdown                                        │\n│  • File changes tracked                                        │\n│  ↓                                                             │\n│  AI Enrichment (optional)                                      │\n│  • Auto-generate summaries                                     │\n│  • Extract key decisions                                       │\n│  • Add searchable tags                                         │\n│  ↓                                                             │\n│  Web Dashboard & CLI                                           │\n│  • Search all sessions                                         │\n│  • View analytics & trends                                     │\n│  • Resume past work                                            │\n└────────────────────────────────────────────────────────────────┘\n```\n\n**Your data stays local.** claude-sesh reads Claude's existing session files. Nothing is uploaded anywhere.\n\n<br />\n\n---\n\n<br />\n\n## 🔒 Privacy & Security\n\n<table>\n<tr>\n<td align=\"center\">💾<br/><b>100% Local</b><br/><sub>All data stays on your machine</sub></td>\n<td align=\"center\">👀<br/><b>Read-Only</b><br/><sub>Never modifies Claude's files</sub></td>\n<td align=\"center\">📡<br/><b>No Telemetry</b><br/><sub>Zero data collection</sub></td>\n</tr>\n</table>\n\n<br />\n\n---\n\n<br />\n\n## Configuration\n\n<details>\n<summary><b>Change Dashboard Port</b></summary>\n\n```bash\nsesh web --port 8080\n```\n\n</details>\n\n<details>\n<summary><b>Data Locations</b></summary>\n\nClaude Code sessions:\n```\n~/.claude/projects/[project-path]/[session-id].jsonl\n```\n\nEnriched data (optional):\n```\n~/.claude-sesh/enriched/[session-id].json\n```\n\n</details>\n\n<details>\n<summary><b>Troubleshooting</b></summary>\n\n**Dashboard not loading?**\n```bash\nlsof -i :3847        # Check if port in use\nsesh web --port 8080 # Try different port\n```\n\n**Search returning nothing?**\n- Try broader search terms\n- Run `sesh enrich` to improve searchability\n\n**MCP not working?**\n- Restart Claude Code after adding MCP server\n- Verify with `claude mcp list`\n\n</details>\n\n<br />\n\n---\n\n<br />\n\n## Contributing\n\nWe welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines and our roadmap.\n\n<br />\n\n---\n\n<br />\n\n<div align=\"center\">\n\n**Built for the Claude Code community** ❤️\n\n[Report Bug](https://github.com/abracadabra50/claude-sesh/issues) · [Request Feature](https://github.com/abracadabra50/claude-sesh/issues) · [Discussions](https://github.com/abracadabra50/claude-sesh/discussions)\n\n<br />\n\nMIT License · [Claude Code](https://docs.anthropic.com/en/docs/claude-code) · [Model Context Protocol](https://modelcontextprotocol.io)\n\n</div>\n"}