File-based history search for Claude Code. Find which sessions edited specific files and retrieve conversation context.
https://github.com/gentritbiba/history-context.git
File-based history search for Claude Code. Find which sessions edited specific files and retrieve conversation context.
Unlike semantic search (episodic-memory), this plugin uses Claude Code's native file-history tracking to know exactly which sessions edited which files. No git commits needed, works immediately.
# Add the marketplace
/plugins marketplace add gentritbiba/history-context
# Install the plugin
/plugins install history-context
On first session start, the plugin automatically:
~/.claude/commands/~/.claude/commands/claude-history.py index --rebuild
The file-history skill triggers automatically when you:
/file-history src/components/AuthForm.tsx
Use Task tool with subagent_type="history-context"
Prompt: "Find context for [file/feature]"
# Find sessions that edited a file
~/.claude/commands/claude-history.py file "AuthForm.tsx"
# Search conversations for a topic
~/.claude/commands/claude-history.py search "authentication"
# Get session details
~/.claude/commands/claude-history.py session <id> --read
# Rebuild index
~/.claude/commands/claude-history.py index --rebuild --stats
~/.claude/file-history/ to build fileβsession mapping (cached for speed)~/.claude/projects/.jsonl files~/.claude/file-session-index.json| Aspect | history-context | episodic-memory |
|---|---|---|
| Query type | File-specific | Semantic/conceptual |
| Accuracy | Exact (file tracking) | Fuzzy (embedding search) |
| Speed | Indexed | Full search |
| Best for | "What sessions touched this file?" | "How did we handle auth patterns?" |
MIT