Skip to content
Agentmart
Submit a tool

grim:mem:chat-log-search

(grim:mem:chat-log-search): (Chat Log Search): Search and summarize past Codex Desktop, Claude Code, and Cursor chat logs with layered detail (prompts…

Skill by MindGoblinStudios

IndexedMIT★ 34
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mindgoblinstudios-grim-mem-chat-log-search

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

(grim:mem:chat-log-search): (Chat Log Search): Search and summarize past Codex Desktop, Claude Code, and Cursor chat logs with layered detail (prompts, messages, final replies, tools, full). Use when asked to find prior conversations, prompts, decisions, tool calls, or to locate a session by keyword/date/session id.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/grim-mem-chat-log-search

What's inside

Skill name
grim:mem:chat-log-search
Description
(grim:mem:chat-log-search): (Chat Log Search): Search and summarize past Codex Desktop, Claude Code, and Cursor chat logs with layered detail (prompts, messages, final replies, tools, full). Use when asked to find prior conversations, prompts, decisions, tool calls, or to locate a session by keyword/date/session id.
License
MIT
Instructions
94 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (15)

  • SKILL.md
  • openai.yaml · agents/
  • codex-chat-search-icon-large.png · assets/
  • codex-chat-search-icon-med.png · assets/
  • codex-chat-search-icon-small.png · assets/
  • icon-generation-2026-08-22-ledger-restyle.md · assets/prompts/
  • log_locations.md · references/
  • search_api.md · references/
  • search_layers.md · references/
  • chat_log_lib.py · scripts/
  • chat_log_search.py · scripts/
  • claude_log_search.py · scripts/
  • codex_log_search.py · scripts/
  • cursor_log_search.py · scripts/
  • test_chat_log_lib.py · scripts/

SKILL.md (first lines)

# 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 tools --limit 50
```

Cursor full session dump search:
```bash
python3 skills/mem/chat-log-search/scripts/cursor_log_search.py "paywall" --source sessions --detail full --limit 50
```

Everything across history + sessions:
```bash
python3 skills/mem/chat-log-search/scripts/chat_log_search.py "sentry" --source both --detail full --limit 50
```

JSON output:
```bash
python3 skills/mem/chat-log-search/scripts/claude_log_search.py "council" --source both --detail messages --json
```

## Workflow

1. Start with `--source history --detail prompts` to find candidate sessions quickly.
2. Re-run the matching session with `--source sessions --detail final` for a readable transcript.
3. Use `--detail tools` when debugging agent behavior or MCP/tool usage.
4. Use `--detail full` when you need reasoning, raw events, or complete context.
5. Narrow noisy results with `--after`, `--before`, or `--session-id`.
6. Add `--exclude-approval-review` when mining user conversations or recurring patterns so Guardian assessment sessions do not duplicate injected transcripts.

## Output

- Human-readable default:
  `timestamp | provider | source | detail | kind | role | session_id | snippet`
- JSON records include: `provider`, `source`, `detail`, `kind`, `role`, `session_id`, `timestamp`, `text`, `file`, `meta`

## Recency & limits

- Default: `--limit 50 --order recent` → **50 newest matching records**
- All matches: `--all` or `--limit 0`
- Scan depth: `--recent-window N` → only search last N raw lines/records per file/session
- Turn-based limit: `--detail final --limit-units turns --limit N`

Full option reference: `references/search_api.md`

## Notes

- Read-only. Do not modify files under `~/.codex`, `~/.claude`, or `~/.cursor`.
- Codex archived sessions are included by default; pass `--no-archived` on Codex/all scripts.
- Codex/all-provider scripts support `--exclude-approval-review`. It skips Guardian approval-review session logs from session metadata while preserving normal tasks, normal subagents, and history-index prompts.
- Cursor prefers `agent-transcripts`; pass `--include-store-db` on Cursor/all scripts only if needed.
- Log locations and formats: `references/log_locations.md`
- Detail layer reference: `references/search_layers.md`

From MindGoblinStudios/grim-tome, MIT.

More from MindGoblinStudios/grim-tome

Signals

Stars
34
Forks
4
Open issues
0
Last commit (this folder)
Sep 6, 2026 (1 month ago)
Last release
Aug 25, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from MindGoblinStudios

Cite this page

grim:mem:chat-log-search skill. Agent Mart. https://agentmart.dev/skills/mindgoblinstudios-grim-mem-chat-log-search (last updated 2026-10-24)