/claude-memory:recall-conversationsfrom claude-memory
Recalls, searches, continues, or analyzes past conversations across Claude Code sessions. Triggers on recall phrases, retrospective requests, and implicit past-tense references.
Ships in claude-memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Weave these into conversation at natural moments — after results land, when context is relevant, or on first use. One or two per run, not all at once.
Three scripts read the memory database. Run each as python3 ${CLAUDE_PLUGIN_ROOT}/skills/recall-conversations/scripts/<script> <flags>:
recent_chats.py — sessions by recency, optionally windowed with --after/--before. --timeline instead returns a compact, uncapped index (one line per session: date, size, branch, uuid, title) with no message bodies. --session UUID[,UUID] fetches named sessions by uuid or 8+ character prefix, as printed by the timeline and search output.search_conversations.py — keyword search. Terms are OR-joined and BM25-ranked, so each term widens the match and rare terms weigh more. Returns whole sessions; --excerpts returns only the matching passages (up to 3 per session). When JSON meta says retrieval: hybrid, meaning-based matches are fused in, so paraphrases are found too; --lexical forces keywords only.list_projects.py — project names mapped to paths, session counts, and date spans. One name can cover many paths, and --project NAME merges all of them; when the user names a project, run list_projects.py --match NAME first.Full flag catalog and output contracts: references/tool-reference.md.
Each user intent maps to a lens. Recipes default to the current project — the scripts auto-detect from CWD, so no --project flag is needed for the common case.
| User Says | Lens | Recipe |
|---|---|---|
| "where were we", "recap", "continue" | restore-context | recent_chats.py --limit 5 --verbose |
| "what did we decide about X", "when did we fix Y" | specific-lookup | search_conversations.py --query "<terms>" --excerpts, then recent_chats.py --session <id> for the one session whose passage answers it |
| "what I learned", "reflect on what I've learned" | extract-learnings | recent_chats.py --limit 20 |
| "gaps", "where I'm struggling" | find-gaps | search_conversations.py --query "confused stuck struggling unclear" --summary |
| "mentor me", "review my process" | review-process | recent_chats.py --limit 20 --verbose |
| "retro", "retrospective", "look back", "post-mortem" | run-retro | recent_chats.py --limit 20 --verbose --summary |
| "decisions", "CLAUDE.md-worthy rules" | extract-decisions | search_conversations.py --query "decided chose tradeoff rejected" --summary |
| "antipatterns", "bad habits", "mistakes I repeat" | find-antipatterns | search_conversations.py --query "mistake repeated forgot" --summary --all-projects |
Scope overrides: append --project NAME for a different project (e.g. --project pkm), or --all-projects to widen across everything. Multiple specific projects: --project claudest,pkm.
For per-lens questions, follow-ups, and supplementary search patterns, load references/lenses.md.
The recipe gets you the data. The lens tells you what to look for — for instance, run-retro asks "how did the solution evolve, what worked, what was painful". Load references/lenses.md if you need the question for your chosen lens.
--limit (1-50 for both scripts; default 5)references/lenses.md)--all-projects to look across projectsrecent_chats.py --timeline --sort-order asc lists every session; pick the sessions that matter, then pull them with --sessionThe scripts emit full transcripts, so broad/multi-session lenses can flood context. Defend in two tiers — never trigger on session count alone; continuation-restore and specific-lookup lenses stay in-thread regardless of how many sessions match (the answer is small):
--summary — the broad recipes above already pass it; add it to any other --all-projects or multi-week pull. It emits precomputed per-session digests instead of full content (~3× smaller). A large full-content pull sets summary_suggested (JSON meta) or prints an INFO: line on stderr. Leave it off for restore-context and specific lookups — they need exact text, which --excerpts and --session deliver in small pieces.--summary output is still too big: fanout_suggested is true in JSON meta (or the stderr INFO: line recommends fanning out). Spawn one Agent per project (subagent_type: general-purpose, model: sonnet), each running the recipe scoped to its own project and returning a structured digest; then reduce. Shard by project, never by arbitrary session count — count-based splits sever a decision or antipattern thread across agents, and per-project shards preserve cross-session dedup within each mind.Search matches words, not meaning. Use terms that separate the target sessions from the rest: specific nouns, technologies, file and project names, error text. Words found in most sessions ("discuss", "yesterday", "conversation", "because", "insight") add noise. Since terms are OR-joined, put synonyms and alternate spellings in the same query ("auth login oauth signin") instead of running separate searches.
When the request has no such terms ("what were we doing", "do you remember"), use recent_chats.py instead of search. Ask the user only when neither recency nor a keyword can find it.
Shape the answer to the lens. restore-context ends with the concrete next step. Analytical lenses lead with the findings that matter most, each tied to its evidence (date, project, file, or a short quote) and to the action it suggests. Length follows the evidence.
references/lenses.md (opens in a new tab)references/tool-reference.md (opens in a new tab)scripts/list_projects.py (opens in a new tab)scripts/memory_lib/__init__.py (opens in a new tab)scripts/memory_lib/cli_common.py (opens in a new tab)scripts/memory_lib/content.py (opens in a new tab)scripts/memory_lib/db.py (opens in a new tab)scripts/memory_lib/embeddings.py (opens in a new tab)scripts/memory_lib/formatting.py (opens in a new tab)scripts/memory_lib/parsing.py (opens in a new tab)scripts/memory_lib/summarizer.py (opens in a new tab)scripts/recent_chats.py (opens in a new tab)scripts/search_conversations.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gupsammy/claudest --plugin claude-memory3 skills in this plugin
/extract-learningsPersist learnings to memory or maintain existing memories. Triggers on "extract learnings", "save this for next time", "remember this pattern", "consolidate memories", "dream", "clean up memories".
/get-token-insightsUse this skill when the user wants to analyze Claude token usage, understand Claude API spending, check cache hit rates, review Claude Code workflow patterns (skills, agents, hooks), or get cost optimization recommendations.
Other plugins' skills for the same job