A self-learning system for Claude Code that captures corrections, positive feedback, and preferences โ then syncs them to CLAUDE.md and AGENTS.md. What it does When you correct Claude Code during a session ("no, use gpt-5.1 not gpt-5", "use database for caching"), these corrections are captured and can be added to your CLAUDE.md files so Claude remembers them in future sessions. โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ You correct โ โโโบ โ Hook captures โ โโโบ โ /reflect adds โ โ Claude Code โ โ to queue โ โ to CLAUDE.md โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ (automatic) (automatic) (manual review) Installation # Add the marketplace claude plugin marketplace add bayramannakov/claude-reflect # Install the plugin claude plugin install claude-reflect@claude-reflect-marketplace # IMPORTANT: Restart Claude Code to activate the plugin After installation, restart Claude Code (exit and reopen). Then hooks auto-configure and commands are ready. First run? When you run /reflect for the first time, you'll be prompted to scan your past sessions for learnings. Prerequisites Claude Code CLI installed jq for JSON processing ( brew install jq on macOS) for JSON processing ( on macOS) python3 (included on most systems) Commands Command Description /reflect Process queued learnings with human review /reflect --scan-history Scan ALL past sessions for missed learnings /reflect --dry-run Preview changes without applying /reflect --targets Show detected config files (CLAUDE.md, AGENTS.md) /reflect --review Show queue with confidence scores and decay status /reflect --dedupe Find and consolidate similar entries in CLAUDE.md /skip-reflect Discard all queued learnings /view-queue View pending learnings without processing How It Works Two-Stage Process Stage 1: Capture (Automatic) Hooks run automatically to detect and queue corrections: Hook Trigger Purpose capture-learning.sh Every prompt Detects correction patterns and queues them check-learnings.s...
First seen: 2026-01-04 07:20
Last seen: 2026-01-04 15:20