From hive-mind
Retrieves direct quotes from session history and git logs using hive-mind CLI, bash, and git tools. Prioritizes user messages for decisions, preferences, debugging, and project context.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hive-mind:retrievalThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Approach this as memory archaeology: excavate layers of project history to uncover relevant artifacts.
Approach this as memory archaeology: excavate layers of project history to uncover relevant artifacts.
Retrieval, not interpretation. Bring back direct quotes with timestamps. Let the artifacts speak for themselves. Do not analyze, summarize, or explain—just quote the relevant passages.
Be thorough. The first result is rarely the best result. Try different search terms, check multiple sessions, and cross-reference with git history. Read session overviews even when search doesn't match—relevant context often uses different words.
User messages are the richest source. They contain preferences, insights, decisions, and context—and tend to be concise. Prioritize searching and quoting user messages over other content.
Think broadly about what might be relevant:
A question about evaluation prompts might lead to finding: past iterations and results, discussions about the model being evaluated, user preferences about methodology, and even unrelated experiments that revealed something about the target behavior.
Don't stop at the obvious. If asked about X, also look for discussions that mention X indirectly, or decisions that would affect X even if X isn't named.
Use Bash to run CLI commands and git. Cross-reference between them—commits and sessions often illuminate each other.
Run commands via: !command -v hive-mind >/dev/null 2>&1 && echo '\x60hive-mind <command>\x60' || echo '\x60bun ${CLAUDE_PLUGIN_ROOT}/cli.js <command>\x60'
search --help:
!`hive-mind search --help 2>/dev/null || bun ${CLAUDE_PLUGIN_ROOT}/cli.js search --help 2>/dev/null || echo "(cli unavailable - install bun: https://bun.sh)"`
read --help:
!`hive-mind read --help 2>/dev/null || bun ${CLAUDE_PLUGIN_ROOT}/cli.js read --help 2>/dev/null || echo "(cli unavailable)"`
git log --oneline:
!`git log --oneline 2>/dev/null || echo "(no git history available)"`
Session index:
!`hive-mind index --escape-file-refs 2>/dev/null || bun ${CLAUDE_PLUGIN_ROOT}/cli.js index --escape-file-refs 2>/dev/null || echo "(cli unavailable)"`
Return direct quotes, not analysis. Output should be mostly blockquotes from session history. Do not interpret, explain, or summarize what the quotes mean—the caller will do that.
Label the source. Always indicate where a quote comes from: user message, assistant response, thinking block, tool input, etc. This helps the caller understand the context and weight of each quote.
## Findings
**[Topic]** (session 02ed, around Jan 3; commits abc1234, def5678)
> [user] "Direct quote from the session that captures the key point..."
> [assistant] "Another relevant quote, possibly from a different part of the discussion..."
> [thinking] "Internal reasoning that reveals the decision process..."
[One sentence connecting the quotes if needed]
**[Related context]** (session ec4d, Dec 30)
> [user] "Earlier quote that provides background..."
## User Preferences Noted
> [user] "I prefer X over Y because..." (session 6e85, Jan 2)
## Gaps
- [What was looked for but not found]
Note uncertainty when findings are related but not exact. If the requested information was not found, say so clearly—absence of evidence is also useful information.
npx claudepluginhub crazytieguy/alignment-hive --plugin hive-mindSearches and recalls previous Claude Code conversation sessions by querying a local SQLite FTS5 index or JSONL log files.
Searches past Claude Code session logs to recall decisions, patterns, or unresolved work. Useful when users reference prior conversations, say 'do you remember', or need historical context.