Usage
/distill # Distill episodes at current scope
/distill show # Show current memory
/distill episodes # Show pending episodes
How It Works
- Extract patterns from
.context/EPISODES.mdlearnings - Classify as pattern, pitfall, preference, or approach
- Match against existing
.context/MEMORY.mdpatterns - Reinforce matches (increases confidence), add new, decay old, prune low
CLI
python3 ~/.claude/plugins/agent-swarm/context/memory.py distill . # Distill
python3 ~/.claude/plugins/agent-swarm/context/memory.py show . # Show
python3 ~/.claude/plugins/agent-swarm/context/memory.py episodes . # Pending
Confidence
- Reinforcement: each observation increases confidence
- Decay: patterns not seen in 30+ days lose confidence
- Pruning: below 0.2 removed
Logging
Agents log learnings with: LEARNING: [description]
Captured by post-task hooks -> EPISODES.md.