Skip to content

abracadabra50/claude-sesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—‚οΈ claude-sesh

Your Claude Code sessions, organized.


Claude Code buries your sessions in ~/.claude/projects/. Good luck finding that conversation from last week.


npm version npm downloads License MCP


npx claude-sesh web

One command. Zero config. Your entire Claude Code history.


Features Β· Quick Start Β· Dashboard Β· CLI Β· MCP


claude-sesh dashboard



Features

πŸ” Session Explorer

Find any conversation instantly.

Browse your complete Claude Code history with powerful filtering by project, date, model, and more. Never lose track of that perfect solution again.

πŸ”Ž Full-Text Search

Search across everything.

Find sessions by code snippets, error messages, or any text. Search spans all your conversations, tool calls, and outputs.

πŸ“Š Usage Analytics

Know where your tokens go.

Track costs, token usage, and coding time across all sessions. See breakdowns by project, model, and time period.

πŸ”„ Easy Resume

Pick up where you left off.

Get rich context summaries to continue any session. Copy resume prompts or use Claude's native resume feature.

🏷️ AI Enrichment

Auto-generated insights.

Let AI summarize sessions, extract key decisions, and add searchable tags. Powered by your Anthropic API key.

🧠 MCP Integration

Give Claude memory.

Let Claude search your past sessions directly. Ask "How did I solve this before?" and get real answers.




Quick Start

⚑ Try instantly

npx claude-sesh web

Opens http://localhost:3847 with your full Claude Code history.

No install. No config. No API keys.

πŸ“¦ Install globally

npm install -g claude-sesh

Then use the CLI anywhere:

sesh list          # List sessions
sesh search "bug"  # Search conversations
sesh stats         # View analytics
sesh web           # Launch dashboard



πŸ–₯️ Web Dashboard

sesh web

πŸ“ˆ

Stats at a Glance
Total tokens, cost, hours coded

πŸ“…

Activity Heatmap
GitHub-style contribution graph

⏱️

Session Timeline
Visual history of all your work

πŸ†

Leaderboards
Top projects, tools, models

πŸ”

Deep Search
Find by content, project, date

πŸ“‹

Session Details
Full context for any session



πŸ’» CLI Commands

Browse Sessions

sesh list              # Recent sessions
sesh ls -n 50          # Last 50 sessions
sesh show <id>         # Session details
sesh projects          # List all projects

Search & Find

sesh search "auth"     # Full-text search
sesh continue          # Find resumable sessions
sesh stats             # Overall statistics

Resume Work

sesh resume <id>           # Get resume context
sesh resume <id> --copy    # Copy to clipboard
sesh resume <id> --native  # Use Claude's resume

AI Features

sesh enrich            # Generate AI summaries
sesh enrich --limit 20 # Enrich 20 sessions
sesh enrich --stats    # Check progress



🧠 MCP Integration

Give Claude access to your session history.

claude mcp add claude-sesh --scope user -- npx claude-sesh mcp

Restart Claude Code. Now ask things like:

"What was I working on in this project?" "How did I solve the caching issue before?" "What files have changed recently?"


Available MCP Tools
Tool Description
search_sessions Full-text search across all sessions
get_session Get detailed info about a specific session
get_project_context Recent sessions, decisions, todos for a project
get_pending_todos Find incomplete tasks across sessions
search_decisions Find past architectural decisions
search_knowledge Search learnings and solutions
get_file_history Track changes to specific files
get_recent_activity Summary of recent coding activity



🏷️ AI Enrichment

Auto-generate summaries and tags for better search.

export ANTHROPIC_API_KEY=your-key
sesh enrich
πŸ“ Summary
What was accomplished
🎯 Decisions
Key choices made
πŸ› Problems
Issues & solutions
🏷️ Tags
Auto-categorization



How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Claude Code writes sessions to ~/.claude/projects/           β”‚
β”‚  ↓                                                             β”‚
β”‚  claude-sesh parses & aggregates session data                  β”‚
β”‚  β€’ Token counts, costs, duration                               β”‚
β”‚  β€’ Tool usage breakdown                                        β”‚
β”‚  β€’ File changes tracked                                        β”‚
β”‚  ↓                                                             β”‚
β”‚  AI Enrichment (optional)                                      β”‚
β”‚  β€’ Auto-generate summaries                                     β”‚
β”‚  β€’ Extract key decisions                                       β”‚
β”‚  β€’ Add searchable tags                                         β”‚
β”‚  ↓                                                             β”‚
β”‚  Web Dashboard & CLI                                           β”‚
β”‚  β€’ Search all sessions                                         β”‚
β”‚  β€’ View analytics & trends                                     β”‚
β”‚  β€’ Resume past work                                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Your data stays local. claude-sesh reads Claude's existing session files. Nothing is uploaded anywhere.




πŸ”’ Privacy & Security

πŸ’Ύ
100% Local
All data stays on your machine
πŸ‘€
Read-Only
Never modifies Claude's files
πŸ“‘
No Telemetry
Zero data collection



Configuration

Change Dashboard Port
sesh web --port 8080
Data Locations

Claude Code sessions:

~/.claude/projects/[project-path]/[session-id].jsonl

Enriched data (optional):

~/.claude-sesh/enriched/[session-id].json
Troubleshooting

Dashboard not loading?

lsof -i :3847        # Check if port in use
sesh web --port 8080 # Try different port

Search returning nothing?

  • Try broader search terms
  • Run sesh enrich to improve searchability

MCP not working?

  • Restart Claude Code after adding MCP server
  • Verify with claude mcp list



Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines and our roadmap.




Built for the Claude Code community ❀️

Report Bug Β· Request Feature Β· Discussions


MIT License Β· Claude Code Β· Model Context Protocol

About

Session explorer for Claude Code - find, search, and resume all your past sessions

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors