When to use this
- When searching across past Claude Code sessions by topic, date, or content to resume earlier work
- When the session list is long enough that manual browsing is slower than keyword search
- When you want incremental indexing so searches stay fast even with hundreds of stored sessions
How to use
-
Open the template on GitHub and copy its content:
scripts/cc-sessions.py -
Place the file inside
anywhere (run directly)in your project (or globally in~/.claude/to share across all projects). For shell scripts, make it executable:chmod +x cc-sessions.py - Read through the file, identify the sections that need project-specific values, and update them before committing.