← ClaudeAtlas

chat-history-searchlisted

Exhaustive search across ALL of your local Claude chat history — Cowork (Claude Desktop local-agent-mode) AND Claude Code CLI — to find user prompts, recover past conversations, inventory how often a pattern was used, or audit prior work. Knows every log location, every JSONL line shape, and the false-positive gotchas (task-notification wrappers, TodoWrite items, tool_result content, audit-log duplicates) that trip up naive grep. Use when the user asks to find all uses of X, when they last said Y, inventory prompts about Z, recover a conversation, or audit their sessions across projects.
BryceEWatson/claude-global-skills · ★ 0 · AI & Automation · score 72
Install: claude install-skill BryceEWatson/claude-global-skills
# Chat History Search Exhaustive search across the two separate corpora of local Claude chat history. ## Why this skill exists Claude writes its session transcripts to **two completely separate locations**, and a naive search misses one of them or drowns in false positives. The Claude Code CLI logs to `~/.claude/projects/`; Claude Desktop's local-agent-mode (Cowork) logs to a separate, often ~10× larger corpus under the OS app-data directory. On top of that, both formats serialize TodoWrite items, `<task-notification>` wrappers, and tool_result content as `type:"user"` messages — so they read like typed prompts but are not. This skill encodes the full corpus map plus the verification rules that reject those false positives, so the search is right the first time. ## When this skill triggers User intent that maps here: - "find all uses of X in my chat history" / "every time I asked Claude to Y" - "when did I last Z" / "inventory my prompts about W" - "recover that conversation where we talked about V" - "audit my sessions for U" - "search my local logs for T" ## Storage map — search ALL of these > Paths below use `~` / `$HOME`. On Windows that resolves to `%USERPROFILE%` > (e.g. `C:\Users\<you>`). The Cowork app-data base differs by OS — see Corpus 2. ### Corpus 1: Claude Code CLI / VS Code (`~/.claude/projects/`) ``` ~/.claude/projects/<encoded-cwd>/<sessionId>.jsonl ~/.claude/projects/<encoded-cwd>/<sessionId>/subagents/agent-*.jsonl ``` `<encoded-cwd>` is the worki