Search and manage Claude Code sessions. Use when the user references past sessions, wants to find prior work, or needs to resume a specific conversation.
Claude Code session search CLI. Full-text search across session history with metadata filtering. Built for AI agent consumption but works for humans too.
--pr filter, metadata filters--pr to find sessions mentioning it--json for programmatic access when processing results# Search by content
tb-session search "authentication middleware"
tb-session search "budget calculation" --all-projects
# Search by PR (number or URL)
tb-session search --pr 557
tb-session search --pr https://github.com/org/repo/pull/123
# List recent sessions
tb-session list
tb-session list --all-projects --limit 20
# Show session details (prefix match works)
tb-session show bcb7ff
# Resume by UUID prefix or name
tb-session resume bcb7ffed
tb-session resume "auth refactor"
resume opens a new iTerm/Terminal.app tab, cd's into the original project, and runs claude --resume. This is expected — not an error.list and search include sessions from all git worktrees of the same repo. Use --all-projects for everything.resume "auth refactor" searches summary/first prompt and resumes the most recent match. UUID prefixes of any length also work.Run tb-session prime for available commands and index status.
!tb-session prime