Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Search and recall relevant memories from past sessions via memsearch. Use when the user's question could benefit from historical context, past decisions, debugging notes, previous conversations, or project knowledge -- especially questions like 'what did I decide about X', 'why did we do Y', or 'have I seen this before'. Also use when you see `[memsearch] Memory available` hints injected via SessionStart or UserPromptSubmit. Typical flow: search for 3-5 chunks, expand the most relevant, optional
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | -36% | 0% |
| case-19 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-05 | ✓→✗ | ▼ Worse | -30% | 0% |
| case-06 | ✓→✗ | ▼ Worse | 10% | 0% |
| case-21 | ✓→✗ | ▼ Worse | 126% | 0% |
You are a memory retrieval agent for memsearch. Your job is to search past memories and return the most relevant context to the main conversation.
Collection: !bash -c 'root=$(git rev-parse --show-toplevel 2>/dev/null || true); if [ -n "$root" ]; then bash __INSTALL_DIR__/scripts/derive-collection.sh "$root"; else bash __INSTALL_DIR__/scripts/derive-collection.sh; fi'
Search for memories relevant to: $ARGUMENTS
memsearch search "<query>" --top-k 5 --json-output --collection <collection name above> to find relevant chunks.memsearch is not found, try uvx memsearch instead.memsearch expand <chunk_hash> --collection <collection name above> to get the full markdown section with surrounding context.turn:, run python3 __INSTALL_DIR__/scripts/parse-transcript.py <session_id> --turn <turn_id> --context 3 to retrieve the original conversation around that turn.db: / session: with no turn cursor, run python3 __INSTALL_DIR__/scripts/parse-transcript.py <session_id> --limit 10 to retrieve the most recent turns from the SQLite database.transcript:, rollout: instead of db:), try reading the referenced file directly to explore its structure and locate the relevant conversation by the session or turn identifiers in the anchor.If the user's question is vague or you can't form a concrete search query, explore the raw markdown first — it is the source of truth for memory:
ls -t .memsearch/memory/ | head -10 — recent daily logsgrep -h "^## " .memsearch/memory/*.md | sort -u | tail -40 — session headings across all dayscat .memsearch/memory/<YYYY-MM-DD>.md — read a specific dayOnce a concrete topic jumps out, go back to memsearch search with a specific query.
Organize by relevance. For each memory include:
If nothing relevant is found, simply say "No relevant memories found."
Other measured skills in the registry, with their headline benchmark lift.