session-searchlisted
Install: claude install-skill techwolf-ai/ai-first-toolkit
# session-search
Two scripts in `scripts/` locate past sessions and dump their content:
- `find_sessions.py` , discover + filter sessions (metadata + optional full-text grep).
- `show_session.py` , print a single session's conversation (user/assistant turns) in readable form.
Both read directly from disk , no API calls, no auth. They resolve paths from `$HOME` so they work for any macOS user:
- Claude Code CLI: `~/.claude/projects/*/\*.jsonl`
- Claude Cowork: `~/Library/Application Support/Claude/local-agent-mode-sessions/*/*/local_*/audit.jsonl` (sibling `local_*.json` holds title/metadata)
## How to use
Start narrow, widen if needed. Prefer `--grep` for content recall; use metadata filters to scope.
### Step 1 , find candidate sessions
```bash
scripts/find_sessions.py --grep "recruitee logo api" # content search
scripts/find_sessions.py --title "rippling" # title substring
scripts/find_sessions.py --cwd "Recruitee" # Code sessions under matching cwd
scripts/find_sessions.py --since 2026-03-01 --until 2026-03-31
scripts/find_sessions.py --kind cowork -n 30 # 30 most recent Cowork
```
Combine freely. Output is a table by default; add `--json` for structured piping.
`--grep PATTERN` is a regex (case-insensitive). It searches message text inside every transcript and prints 1-2 matching snippets per session along with the session row. Use this when the user remembers a phrase or topic, not a title.
### Step 2 , pull full con