StackMap
Subscribe
Explore / claude-reflect
BayramAnnakov

claude-reflect

Claude Code plugin that learns from your corrections — hooks capture them in-session, /reflect syncs approved learnings to CLAUDE.md/AGENTS.md, /reflect-skills mines history into reusable commands.

1,258 109 Python MITupdated 4 months ago
Curator's take

Install claude-reflect the third time you catch yourself typing the same correction into Claude Code. It's the pragmatic take on agent memory: no vector DB, no service — hooks queue corrections, you review, markdown files get smarter, and the AGENTS.md sync means Codex/Cursor/Aider benefit too. The /reflect-skills pattern-mining is the sleeper feature: 15 similar requests become one command. When NOT: if you expect actual memory infrastructure (semantic recall, knowledge graphs) — this is disciplined note-taking with AI triage, personal-scale by design. Everything lands via human review, which is a feature, not friction.

Mapped by ShipWithAI editors · links verified
README.md

claude-reflect

GitHub stars Version License: MIT Tests Platform

A self-learning system for Claude Code that captures corrections and discovers workflow patterns — turning them into permanent memory and reusable skills.

What it does

1. Learn from Corrections

When you correct Claude ("no, use gpt-5.1 not gpt-5"), it remembers forever.

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  You correct    │ ──► │  Hook captures  │ ──► │  /reflect adds  │
│  Claude Code    │     │  to queue       │     │  to CLAUDE.md   │
└─────────────────┘     └─────────────────┘     └─────────────────┘
      (automatic)            (automatic)            (manual review)

2. Discover Workflow Patterns (NEW in v2)

Analyzes your session history to find repeating tasks that could become reusable commands.

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  Your past      │ ──► │ /reflect-skills │ ──► │   Generates     │
│  sessions       │     │ finds patterns  │     │   /commands     │
└─────────────────┘     └─────────────────┘     └─────────────────┘
    (68 sessions)         (AI-powered)            (you approve)

Example: You've asked "review my productivity" 12 times → suggests creating /daily-review

Key Features

Feature What it does
Permanent Memory Corrections sync to CLAUDE.md — Claude remembers across sessions
Skill Discovery Finds repeating patterns in your history → generates commands
Multi-language AI understands corrections in any language
Skill Improvement Corrections during /deploy improve the deploy skill itself

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
  • Python 3.6+ (included on most systems)

Platform Support

  • macOS: Fully supported
  • Linux: Fully supported
  • Windows: Fully supported (native Python, no WSL required)

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
/reflect --include-tool-errors Include tool execution errors in scan
/reflect-skills Discover skill candidates from repeating patterns
/reflect-skills --days N Analyze last N days (default: 14)
/reflect-skills --project <path> Analyze specific project
/reflect-skills --all-projects Scan all projects for cross-project patterns

Continue your stack

What teams reach for next — and why each earns a place beside claude-reflect. Ranked by curator confidence.