Claude-code-sessions session-search

install
source · Clone the upstream repo
git clone https://github.com/apappascs/claude-code-sessions
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/apappascs/claude-code-sessions "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/session-search" ~/.claude/skills/apappascs-claude-code-sessions-session-search && rm -rf "$T"
manifest: skills/session-search/SKILL.md
source content

Session Search

Search across all Claude Code sessions by keyword or regex.

Step 1: Run the search

bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts search "<query>" --limit 20 --context 1

To filter by project:

bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts search "<query>" --project "<filter>" --limit 20 --context 1

To filter by date:

bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts search "<query>" --since "2026-04-01" --limit 20

Step 2: Present results

The script outputs newline-delimited JSON (one match per line). Group results by session and present:

  • Session ID and project as headers
  • Matching text with timestamp
  • Context (lines before/after) if available
  • Resume command:
    claude --resume <session-id>

If no results, suggest broadening the search or trying different keywords.