transcript_search
Search raw Claude Code session transcripts to retrieve past conversation excerpts and full context from prior sessions.
Instructions
Search raw Claude Code session transcripts for past conversation excerpts.
This is the DIFFERENT from memory_recall — it searches the raw session
JSONL files under ~/.claude/projects/, not the mined memory corpus.
Use it when you need to find the actual back-and-forth of a prior
conversation, not the distilled lesson from it.
Behaviour:
Read-only. Does not modify transcripts, memories, or any index.
No authentication required.
No rate limits. Latency scales with transcript corpus size; typical 100-500ms across a year of daily sessions.
Data access scope: reads ~/.claude/projects/**/*.jsonl via direct filesystem access. Does NOT read ~/obsidian-brain/ (that's what
memory_recallandmemory_listare for). Nothing is sent over the network.Idempotent and deterministic for a given filesystem state.
Failure modes: returns "No matching sessions" on empty result sets. Sessions older than Claude Code's 30-day retention window are not searchable (they've been deleted).
Use transcript_search when:
You want to recall "what did I actually say three weeks ago about X"
A mined memory references a session and you want the full context
You want to find all sessions that touched a specific file or topic
You're verifying a memory's source_session or debugging extraction
Do NOT use for:
Looking up durable knowledge (use
memory_recall— mined, ranked, faster)Listing memories (use
memory_list)Query-tailored context briefings (use
context_assemble)
Returns: Markdown-formatted session excerpts with the session id, date, and matched text, or "No matching sessions" if nothing matches. Transcripts older than Claude Code's 30-day retention are not searchable.
Example: transcript_search(query="redis connection pool size", limit=3)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of session excerpts to return. Each excerpt is a short quote with the session id and date. | |
| query | Yes | Search phrase or keyword list. Matches against the raw Claude Code session JSONL transcripts (not the mined memory corpus). Use this for session-level context recovery, not durable knowledge lookup. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |