This skill should be used when the user wants to find, search, or resume previous Claude Code sessions based on conversation content, files edited, or tools used. Use this skill when the user asks to find sessions where they worked on specific topics, edited particular files, or used certain tools.
This skill enables searching through Claude Code session history to find previous conversations based on actual content, not just metadata. It provides accurate search results by parsing session JSONL files and ranking matches by relevance score.
Use this skill when the user requests:
To search sessions, execute the scripts/search_sessions.py script:
python3 scripts/search_sessions.py "search terms" [optional-project-path]
Examples:
# Search current project for Pino log rotation work
python3 scripts/search_sessions.py "pino log rotation"
# Search specific project for authentication sessions
python3 scripts/search_sessions.py "authentication JWT" /Users/username/Dev/myproject
# Find sessions that edited config files
python3 scripts/search_sessions.py "config.ts"
# Find WebSocket-related work
python3 scripts/search_sessions.py "websocket refactor"
message.content fields (not metadata)Included (high-value signals):
Excluded (to avoid false positives):
sessionId, gitBranch, cwd)Results include:
Good searches (specific and meaningful):
Poor searches (too broad or generic):
Use multiple keywords to improve relevance:
Search for specific files:
Search by tools used:
Claude stores sessions at:
~/.claude/projects/<project-directory>/<session-id>.jsonl
Where <project-directory> is the project path with slashes replaced by dashes.
Example:
/Users/jnarowski/Dev/myproject~/.claude/projects/-Users-jnarowski-Dev-myproject/For detailed information about the JSONL format, content blocks, and search strategy, refer to references/jsonl_format.md.
Key points:
message.content fields contain conversation contenttext, tool_use, tool_result, imageThe search_sessions.py script:
Possible causes:
Solutions:
~/.claude/projects/ for available session directoriesIf results don't match expectations:
The script converts file paths to Claude's directory format automatically. If it can't find the directory:
~/.claude/projects/ to see available directoriesPython script that performs the session search. Can be executed directly or referenced by Claude for understanding the implementation.
Key features:
Comprehensive documentation of Claude's session JSONL structure, including:
Load this reference when deeper understanding of the JSONL format is needed or when troubleshooting search issues.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer