"Correct once, never again."
Transform your AI assistant into a continuously improving partner. The reflect skill analyzes conversations for corrections and successful patterns, permanently encoding learnings into agent definitions.
- Signal Detection: Automatically identifies corrections with confidence levels (HIGH/MEDIUM/LOW)
- Category Classification: Routes learnings to appropriate agent files (Code Style, Architecture, Process, Domain, Tools)
- Skill Generation: Creates new skills from non-trivial debugging discoveries
- Metrics Tracking: Quantifies improvement with acceptance rates and statistics
- Human-in-the-Loop: All changes require explicit approval
- Git Integration: Full version control with easy rollback
clawdhub install reflectCopy the reflect/ folder to your skills directory:
- Claude Code:
~/.claude/skills/reflect/ - Clawdbot:
~/.clawdbot/skills/reflect/
Just say "reflect" or "review session" to trigger analysis:
User: reflect
Agent: [Analyzes conversation, presents learnings for approval]
User: reflect on
Agent: Auto-reflection enabled. Will analyze before context compaction.
User: reflect off
Agent: Auto-reflection disabled.
User: reflect status
Agent:
Sessions analyzed: 42
Signals detected: 156
Changes accepted: 89 (78%)
Skills created: 5
User: reflect review
Agent: [Shows low-confidence learnings awaiting validation]
- Scan: Analyzes conversation for correction signals
- Classify: Maps signals to categories and target files
- Propose: Generates diffs for agent updates or new skills
- Review: Presents changes for user approval
- Apply: Commits approved changes with descriptive messages
| Confidence | Triggers | Examples |
|---|---|---|
| HIGH | Explicit corrections | "never", "always", "wrong", "stop" |
| MEDIUM | Approved approaches | "perfect", "exactly", "that's right" |
| LOW | Observations | Patterns that worked, not validated |
Set custom state directory:
export REFLECT_STATE_DIR=/path/to/stateDefault locations:
~/.reflect/(portable)~/.claude/session/(Claude Code)
MIT
Claude Code Toolkit