chat-history-searchlisted
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