grimmemchat-log-searchlisted
Install: claude install-skill MindGoblinStudios/grim-tome
# Chat Log Search
Search local Codex, Claude Code, and Cursor chat logs with layered source and detail controls.
## Scripts
| Script | Scope |
|---|---|
| `scripts/chat_log_search.py` | All providers |
| `scripts/codex_log_search.py` | Codex only |
| `scripts/claude_log_search.py` | Claude Code only |
| `scripts/cursor_log_search.py` | Cursor only |
## Source Layers (`--source`)
- `history` — fast prompt index (`~/.codex/history.jsonl`, `~/.claude/history.jsonl`)
- `sessions` — full session / transcript logs
- `both` — history index plus session logs
Cursor has no history index; use `--source sessions` for Cursor.
## Detail Layers (`--detail`)
- `prompts` — user prompts only
- `messages` — user + assistant text, no tools or thinking
- `final` — user prompts + final assistant reply per turn (no intermediate tool-step chatter)
- `tools` — tool inputs and outputs only
- `full` — all extractable events (text, tools, reasoning, raw session events)
## Quick Start
Fast user prompt search (all providers with history indexes):
```bash
python3 skills/mem/chat-log-search/scripts/chat_log_search.py "linear ticket" --source history --detail prompts --limit 20
```
Codex clean transcript (user + final assistant replies):
```bash
python3 skills/mem/chat-log-search/scripts/codex_log_search.py "memory system" --source sessions --detail final --limit 50
```
Claude tool audit:
```bash
python3 skills/mem/chat-log-search/scripts/claude_log_search.py "posthog" --source sessions --detail