| name | recall |
| description | Use when you need to retrieve a past decision, preference, or convention that was saved with /remember. |
| user-invocable | true |
| argument-hint | [topic or 'all'] |
| allowed-tools | Read |
/recall - Query Session Memory
Recall decisions, preferences, and lessons from previous sessions.
Query: $ARGUMENTS
Workflow
Step 1: Load Memory
const memoryFile = '.claude/session-memory.json';
if (!exists(memoryFile)) {
return "No session memory found. Use /remember to save memories.";
}
const memory = JSON.parse(read(memoryFile));
Step 2: Process Query
If "all" or empty:
Show full memory summary.
If specific topic:
Search in:
- decisions[].topic
- preferences keys
- patterns.avoided
- patterns.preferred
- lessons[].issue
Step 3: Format Output
Output Formats
Full Memory (/recall all)
══════════════════════════════════════════════
📝 PROJECT MEMORY
══════════════════════════════════════════════
Project: [name]
Last updated: [date]
──────────────────────────────────────────────
DECISIONS (N)
──────────────────────────────────────────────
• [Topic]: [Decision]
Reason: [Why]
Date: [When]
• [Topic]: [Decision]
Reason: [Why]
Date: [When]
──────────────────────────────────────────────
PREFERENCES
──────────────────────────────────────────────
Code Style:
• Quotes: [value]
• Indent: [value]
• Semicolons: [value]
Naming:
• Components: [convention]
• Files: [convention]
──────────────────────────────────────────────
PATTERNS
──────────────────────────────────────────────
✓ Preferred:
• [pattern]
• [pattern]
✗ Avoided:
• [pattern]
• [pattern]
──────────────────────────────────────────────
LESSONS LEARNED (N)
──────────────────────────────────────────────
• Issue: [what happened]
Solution: [how to fix]
Prevention: [rule]
══════════════════════════════════════════════
Specific Topic (/recall state management)
──── /recall: state management ────
Found 2 related memories:
📌 Decision: State Management
Use Zustand instead of Redux
Reason: Simpler API, less boilerplate
Decided: 2024-01-15
📌 Pattern (Avoid): Redux
We avoid Redux in this project
Related:
• See also: "React Query" decision
No Results
──── /recall: [topic] ────
No memories found for "[topic]".
Suggestions:
• Try /recall all to see all memories
• Use /remember to add new memories
Query Examples
/recall
/recall all
/recall state management
/recall testing
/recall decisions
/recall preferences
/recall patterns
/recall lessons
Rules
- Fuzzy match - "state" matches "State Management"
- Show context - Include reason and date
- Suggest related - Link to similar memories
- Handle empty - Graceful message if no memory