remember
InfrastructureStrategic cross-session memory persistence with category-based routing.
Overview
Remember persists important information across Claude Code sessions. It automatically categorizes memories and routes them to appropriate files for future sessions.
Invocation
/remember # Interactive memory capture
/remember "Always use prisma singleton"
/remember --category=architecture "Decision: Use step-graph pattern"
/remember --active-work "Blocked on API integration"Memory Categories
| Category | File | Priority | Detection Patterns |
|---|---|---|---|
| moat | moat-definition.md | Critical | moat, competitive advantage, network effect |
| architecture | architecture-decisions.md | Critical | architecture, design decision, DAG, gate |
| agents | agent-patterns.md | Important | agent, bounty agent, skill agent |
| skills | skill-patterns.md | Important | skill, /skill, skill design |
| active-work | active-work.md | Operational | pending, blocker, TODO, in progress |
Active Work Tracking
The active-work category is special - it tracks pending items that carry forward between sessions:
Carry Forward
- • Items persist until resolved
- • Recurring items highlighted
- • Auto-close after 14 days
Completion Signals
- • DONE, COMPLETE, RESOLVED
- • FIXED, SHIPPED, CLOSED
- • Removes from active work
Configuration
config.json (excerpt)
"categories": {
"moat": {
"file": "moat-definition.md",
"priority": "critical",
"detection_patterns": [
"moat", "competitive advantage", "network effect"
]
},
"active-work": {
"file": "active-work.md",
"priority": "operational",
"max_age_days": 7,
"carry_forward": {
"enabled": true,
"auto_close_after_days": 14
}
}
}Gates
| Gate | Mode | Description |
|---|---|---|
| memory_update_approval | STRICT | Critical files require validation |
| category_classification | PERMISSIVE | Auto-approve above trust 80 |
Patterns Demonstrated
- Category-Based Routing - Pattern detection for auto-categorization
- Cross-Session Persistence - ~/.claude/memory/ directory
- Priority Levels - Critical, important, operational
- Carry Forward - Active work tracking with auto-close