search-historian — Claude Code command: search past sessions
search-historian — a slash command that searches your earlier Claude sessions and returns five hits, so you can reuse a fix or a decision instead of starting over.
MIT ★ 78 updated 2026-03-05
/plugin marketplace add Vvkmnn/claude-emporium
/plugin install claude-historian@claude-emporiumWhat search-historian does
Give /search-historian a query and it forwards the text to the claude-historian MCP server, which looks through your old sessions. You get five matches back: the fix you applied, the trade-off you settled on, the file you touched.
Query by the wording of an error, a filename such as package.json, or the feature you were building. Put a phrase in quotes to keep it intact: /search-historian "module not found". The point is recall, not browsing — you already know roughly what happened, you just need the details.
The command holds no index of its own. It calls mcp__claude-historian-mcp__search_conversations(query="<query>", limit=5) and prints whatever comes back. With the claude-historian MCP server disconnected there is nothing to call, so connect it first; the plugin of the same name comes from the claude-emporium marketplace, and the command file sits at .claude/commands/search-historian.md.
What it helps with
- find how you fixed the same error before
- recall why a library was picked
- locate the file you changed in an earlier session
- pick up context on a task started long ago
- skip re-debugging the same failure from scratch
Example prompts for the agent
- /search-historian how did I wire up auth last time
- /search-historian "module not found"
- /search-historian package.json
How to install search-historian
1Plugin marketplace
/plugin marketplace add Vvkmnn/claude-emporium/plugin install claude-historian@claude-emporium2Manually: put the files in place
.claude/commands/search-historian.mdCall it with /search-historian. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/search-historian.mdCall it with /prompts:search-historian. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/search-historian.prompt.mdManually: put the files in place
.gemini/commands/search-historian.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about search-historian
How to install search-historian in Claude Code?
Run /plugin marketplace add Vvkmnn/claude-emporium, then /plugin install claude-historian@claude-emporium.
What does search-historian do?
It searches your previous Claude sessions and returns five matches covering earlier solutions, decisions and file edits.
Does it work without the MCP server?
No. The command only wraps the mcp__claude-historian-mcp__search_conversations tool, so the claude-historian server has to be connected.
Source text
search-historian.md · MIT
--- name: search-historian description: Search your conversation history arguments: query --- # /search-historian Search past Claude sessions for solutions, decisions, and context. ## Usage `/search-historian <query>` ## Examples - `/search-historian auth implementation` - Find auth-related work - `/search-historian "module not found"` - Find error solutions - `/search-historian package.json` - Find file changes ## Action Call `mcp__claude-historian-mcp__search_conversations(query="<query>", limit=5)`
© vvkmnn · MIT · Vvkmnn/claude-emporium