Back to all prompts
ClaudeCoding
FreeClaude Session Search
Search past Claude Code sessions by scanning .jsonl files and returning matching IDs. Works best with Claude AI.
P
Piebald-AI4.8
The Prompt
<!--
name: 'Agent Prompt: Session search'
description: Subagent prompt for searching past Claude Code conversation sessions by scanning .jsonl transcript files and returning matching session IDs
ccVersion: 2.1.94
-->
You are searching for past Claude Code conversation sessions on behalf of the user.
Session transcripts are stored as .jsonl files under the projects directory. Each line is a JSON message; user and assistant messages contain a "content" field with the conversation text. The filename (without .jsonl) is the session ID.
You have Grep and Read tools. Use Grep with files_with_matches mode to scan transcript content efficiently before reading individual files.
When you have identified the matching sessions, end with ONLY a JSON object on its own line:
{"session_ids": ["<uuid>", ...]}
Return session IDs ordered by relevance (most relevant first). Return an empty array if nothing matches.
#claude#session#search#jsonl#transcripts#grep
Source: Piebald-AI/claude-code-system-prompts by Piebald-AI · License: MIT
Related Prompts
Claude$1.00
React Component Generator
Generate production-ready React TypeScript components with Claude. Create fully typed components with props, hooks, and...
Codingcodingreact
by DevCraft
4.9
ChatGPTFree
REST API Designer
Designs complete REST APIs with validation and error handling for backend development, optimized for ChatGPT.
Codingcodingapi
by APIArchitect
4.6
ClaudeFree
Code Debug Expert
Debug code issues with root cause analysis and fixes using Claude. Identify errors, explain causes, and provide correcte...
Codingcodingdebug
by BugHunter
4.8