analyze
CommandAnalyze user corrections and log them into the error notebook
Generate a reflection diary entry from the current conversation.
Generate a reflection diary entry from the current conversation.
1. **Review this conversation**: List the user's main requests, problems solved, and files modified 2. **Write a diary entry**: Save to `~/.claude/sessions/diary/` with date-based filename 3. **Format**:
# Diary {YYYY-MM-DD}
## What I did today
- {List main work items}
## What I learned
- {Pitfalls, discoveries, user preferences}
## Patterns I noticed
- {User's work patterns, recurring needs}
## Notes for next time
- {Reminders for future sessions}4. **Report**: Briefly say "Diary written, noted X key points"
Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Analyze user corrections and log them into the error notebook
Pause the SessionEnd auto-commit hook when refactoring core engine files.
Help decide when to use `/compact` based on the current conversation state.
Review the error notebook — flip through past corrections before working
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.