Reflect on Diary Entries
Analyze recent diary entries and identify patterns worth adding to AGENTS.md.
When to Use
Invoke /reflect periodically when:
- •Multiple diary entries have accumulated (3-5+)
- •You notice repeated patterns across sessions
- •Before starting a major new feature
Process
- •Read all diary entries from
.ai/memory/diary/ - •Read current AGENTS.md content
- •Identify recurring patterns (2+ occurrences = pattern)
- •Propose specific additions grouped by AGENTS.md section
- •Show diff preview and wait for user confirmation
- •Apply changes only after approval
What to Extract
Add to AGENTS.md:
- •Recurring architectural patterns
- •Non-obvious conventions discovered through experience
- •Common pitfalls and solutions
- •Testing strategies that work well
Keep in Diary Only:
- •One-off implementation details
- •Session-specific context
- •Temporary workarounds
After Reflection
Optionally archive processed entries to .ai/memory/diary/archive/ (create directory if needed)