Enable automatic reflection on session end. Stop hook will analyze session and extract learnings automatically. Activates for reflect on, enable reflect, auto reflect, automatic learning.
Enable automatic session analysis that extracts learnings from corrections and approvals when conversations end. Use this to continuously build your memory files without manual reflection.
/plugin marketplace add anton-abyzov/specweave/plugin install sw@specweaveEnable automatic reflection when sessions end.
/sw:reflect-on
Enables automatic session analysis via the stop hook:
1. Session starts
↓
2. You work with Claude (corrections, approvals, patterns)
↓
3. Session ends (all tasks done / user closes)
↓
4. Stop hook triggers
↓
5. Reflect automatically analyzes transcript
↓
6. Learnings extracted and saved to MEMORY.md files
↓
7. Git commit (if configured)
↓
8. "🧠 Learned from session" notification shown
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 REFLECT: Automatic Mode Enabled
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Auto-reflection is now ENABLED
When enabled:
• Stop hook analyzes session on exit
• Corrections and approvals are extracted
• Learnings saved to skill MEMORY.md files
• Git commit created (if configured)
Configuration:
• Confidence threshold: medium
• Max learnings per session: 10
• Git commit: enabled
• Git push: disabled
To disable: /sw:reflect-off
To check status: /sw:reflect-status
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
When enabled, creates/updates .specweave/state/reflect-config.json:
{
"enabled": true,
"autoReflect": true,
"enabledAt": "2026-01-05T10:30:00Z",
"confidenceThreshold": "medium",
"maxLearningsPerSession": 10,
"gitCommit": true,
"gitPush": false
}
| Command | Purpose |
|---|---|
/sw:reflect-off | Disable automatic reflection |
/sw:reflect-status | Show current configuration |
/sw:reflect | Manual reflection (works anytime) |
When this command is invoked:
.specweave/state/reflect-config.json with autoReflect: true