From aichat
Searches prior Claude-Code/Codex-CLI sessions for code patterns, decisions, or work via aichat CLI, jq parsing, and session file reads (max 3). For non-subagent CLI agents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aichat:session-searchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **If you are Claude Code:** Do NOT use this skill directly. Use the
If you are Claude Code: Do NOT use this skill directly. Use the
session-searchersubagent via the Task tool instead - it handles this more efficiently without polluting your context.
Search and find previous code agent sessions (Claude-Code or Codex-CLI) for specific work, decisions, or code patterns.
aichat search --json -n 10 "[query]" (use
-g "project" to filter by project)jq to extract fields from JSONL output (session_id,
project, created, snippet, file_path)~/.claude/projects/*/[session-id].jsonl (max 3 files)Run aichat search --help to see all options (date filters, branch filters, etc.)
and JSONL field names.
Return a concise summary containing:
Format as clean markdown, not raw JSON.
Query: "Find sessions where we discussed authentication design"
aichat search --json -n 10 "authentication design"
Summary:
--json flag with aichat search (otherwise it spawns interactive UI)If aichat search command fails or is not found, ask user to install:
uv tool install claude-code-tools # Python package
cargo install aichat-search # Rust search TUI
Prerequisites:
If user doesn't have uv or cargo:
curl -LsSf https://astral.sh/uv/install.sh | sh # uv
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Rust
npx claudepluginhub pchalasani/claude-code-tools --plugin aichatSearches past Claude Code session logs to recall decisions, patterns, or unresolved work. Useful when users reference prior conversations, say 'do you remember', or need historical context.
Searches and recalls previous Claude Code conversation sessions by querying a local SQLite FTS5 index or JSONL log files.
Searches Claude Code conversation history by topic or date filters, returning session IDs and project paths for resumption via 'claude --resume'. For queries like 'find conversation about X' or 'what did we do yesterday'.