Skip to main content
command CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add Vvkmnn/claude-emporium
/plugin install claude-historian@claude-emporium
Open on GitHub

What 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-emporium

2Manually: put the files in place

.claude/commands/search-historian.md

Call it with /search-historian. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set20

The whole set →
save-vigil save-vigil creates a named snapshot of selected or recently modified files before risky changes. It helps preserve code state for quick recovery later. CX Codex +1 ★ 78repo stars restore-vigil restore-vigil is a Claude Code command that lists saved checkpoints and restores files from a selected one. It supports returning a project to an earlier saved state. CX Codex +1 ★ 78repo stars reprompt-orator reprompt-orator rewrites a prompt with Anthropic techniques: scores it on seven dimensions, picks the fitting ones and hands back a restructured version. CX Codex +1 ★ 78repo stars search-oracle search-oracle searches across 17 sources for skills, plugins, and MCP servers. Useful when you need to discover and install new tooling directly inside Claude Code. CX Codex +1 ★ 78repo stars restore-praetorian restore-praetorian is a Claude Code command that retrieves past work from praetorian memory. It helps resume tasks by finding recent summaries or searching saved session context. CX Codex +1 ★ 78repo stars compact-praetorian compact-praetorian — a Claude Code command that writes the current session context into praetorian memory so it persists across sessions. Trigger it after research, exploration, or any decision worth keeping. CX Codex +1 ★ 78repo stars review-gladiator review-gladiator processes recorded observations across sessions, clusters recurring patterns, and suggests actionable workflow rules. CX Codex +1 ★ 78repo stars claude-oracle claude-oracle searches 17 sources for relevant skills, plugins, and MCP servers. It runs before planning and after Bash errors. CX Codex +1 ★ 78repo stars

Project sponsors

Companies that keep this analytics open