search

Search Claude Code session history in JSONL logs for past prompts and context.

1|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/toseekandfind/multi-agent-sandbox --skill search-toseekandfind
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: search
Source: https://github.com/toseekandfind/multi-agent-sandbox/tree/main/elf/skills/elf-search
Command: npx skills add https://github.com/toseekandfind/multi-agent-sandbox --skill search-toseekandfind

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Natural language search through Claude Code session history to locate past prompts, conversations, topics, file modifications, and context from earlier sessions. This helps you understand project continuity and quickly revisit prior work.

Core Features & Use Cases

  • Find relevant prompts and assistant responses across multiple sessions.
  • Filter results by topic, date, or modified files to surface useful context.
  • See related discussions and iterations to guide future work.

Quick Start

Ask the search command with a natural language query to retrieve matching prompts and context from past Claude Code sessions.

Frequently Asked Questions about search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Claude Code session history for past prompts and conversations?

You can search Claude Code session history by running a natural-language query to retrieve matching prompts, assistant responses, and context from past sessions stored as JSONL files.

Can I filter session log search results by topic, date, or modified files?

Yes, you can filter session log search results by topic, date, or modified files to surface relevant context and related discussions from your earlier Claude Code work.

How does natural language search work on JSONL project logs in Claude Code?

Natural language search scans line-delimited JSON files under ~/.claude/projects, filters out agent logs, and performs natural-language matching to deliver relevant results with surrounding context.

What is the best way to locate context and file modifications from earlier Claude Code sessions?

The best way to locate past context is to search session history with a natural language query, which scans all project logs and surfaces matches with related discussions and iterations.

Does Claude Code store session history locally for offline log analysis?

Yes, Claude Code stores session history locally as JSONL files under the ~/.claude/projects directory, enabling offline log analysis and retrieval of past prompts without external dependencies.