search-history
БесплатноБез исполняемых скриптовНе проверенSearch across all Claude Code conversation history (JSONL files) across all projects.
от aviz85★ 52 звезды на GitHubОб этом скилле
Search Claude Code Conversation History
Search across all Claude Code sessions and projects to find past discussions, solutions, and context.
Usage
/search-history "aviz-museum" /search-history "supabase migration" --project Users-aviz-dreemz-backend /search-history "Riley Brown" --user-only --limit 5
Parameters
<search-term>-- keyword or phrase to search (required)--project <name>-- limit to specific project dir (e.g., -Users-aviz-sb)--user-only-- only search user messages (skip assistant/progress/system)--limit N-- max sessions to show (default: 10)
How It Works
Storage Structure
~/.claude/projects/
-Users-aviz-sb/ # Project dir (path with / -> -)
ae1972bf-...-2e6f1b34be03.jsonl # Session file (UUID)
ae1972bf-.../ # Session artifacts
subagents/ # Subagent logs
tool-results/ # Tool output files
-Users-aviz-dreemz-backend/
...
JSONL Message Types
Each line is a JSON object with a type field:
| Type | Description | Key Fields |
|---|---|---|
user |
User input | message.content (string or array), timestamp, cwd |
assistant |
Claude response | message.content (array of text/tool_use blocks), message.model |
progress |
Tool execution tracking | data.toolName, data.status |
system |
System events | Compaction, boundaries |
file-history-snapshot |
File backup metadata | snapshot.timestamp |
queue-operation |
Inbox operations | operation |
last-prompt |
Last user prompt text | prompt |
Content Extraction
- User messages:
message.contentis usually a string, sometimes array of content blocks. - Assistant messages:
message.contentis array -- extract.textfromtype: "text"blocks.
Implementation
Search using grep + Python for structured output:
# Quick grep across all projects
grep -rl "SEARCH_TERM" ~/.claude/projects/*/*.jsonl
For structured search with context, use Python to parse JSONL files, extract matching messages, and display with session metadata (project, timestamp, message type).
Tips
- Start broad -- grep is fast across all JSONL files
- Use
--user-onlyto find what YOU asked, not what Claude replied - Use
--projectto narrow to a specific workspace - Session UUIDs can be used with
claude --resume SESSION_ID - Tool results are in separate
.txtfiles undersession-dir/tool-results/ - Subagent conversations are in
session-dir/subagents/agent-*.jsonl
Установить search-history в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл search-history?
Search across all Claude Code conversation history (JSONL files) across all projects.
Как установить скилл search-history?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл search-history запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic