claude-reflect plugin

A Claude Code plugin that catches your corrections in chat and, after review, writes them into CLAUDE.md and AGENTS.md

  • 1,894 ★ on the repository
  • Last commit
  • MIT
Plugin

Extended access

Why this level

  • Python hooks run on every prompt and read session history
  • The plugin edits the agent's instruction files
All reasons and checks
Needs a VPN

bayramannakov/claude-reflect

Install

Works in

In your terminal, with SkillFoxx CLI

npx skillfoxx add plugins/claude-reflect

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Python hooks run on every prompt and read session history
  • The plugin edits the agent's instruction files

This is third-party code. Review the repository files before installing.

What it does

The plugin works in two stages. Hooks on every prompt detect corrections like "no, use X" and positive feedback and queue them. The /reflect command shows the queue and, after you approve, moves rules into global or project CLAUDE.md, CLAUDE.local.md, rule files or the skills themselves. /reflect-skills analyzes session history, finds repeating tasks and proposes turning them into commands. You can scan past sessions, dedupe CLAUDE.md and preview changes without applying them.

Who it is for. For heavy Claude Code users tired of repeating the same corrections to the agent.

Good fit when

  • The agent keeps repeating the same mistake
  • You want to maintain CLAUDE.md without manual editing
  • You want to find repeating tasks worth turning into commands

Not a fit when

  • You do not use Claude Code
  • Your team strictly controls CLAUDE.md through repository review

Example request

/reflect --dry-run

Limitations

Works only in Claude Code, needs Python 3.6+ and a restart after install. Pattern-based detection can miss or misread messages, which is why applying changes requires manual approval. History analysis consumes model tokens.

How to disable. Uninstall with claude plugin uninstall claude-reflect and optionally remove the queue file ~/.claude/learnings-queue.json.

FAQ

Does it edit CLAUDE.md automatically?

No. Hooks only fill a queue; writing happens after /reflect and your approval.

Does it understand non-English corrections?

The README says the model understands corrections in any language during processing.

Discussion

No questions or reviews yet.

Plugins

A marketplace of 17 Claude Code mods: token-spend breakdown, a rollback edit timeline, assumption tracking, a verification board and a live command feed

PluginExtended access1.1KRepository stars

A Claude Code plugin that builds a knowledge system of markdown files from a conversation with you: folder structure, note templates, a processing pipeline and

PluginExtended access3.5KRepository stars

A marketplace of fourteen plugins for Claude Code power users: model council, email, calendar, video digests and routine tasks

PluginBroad access829Repository stars

Claude Skills (Alireza Rezvani)

Claude Code Skills & Plugins

A large library of skills, agents and commands by domain: engineering, marketing, product, compliance, C-level advisors and research

PluginExtended access28.9KRepository stars

A Claude Code plugin that keeps memory across sessions in one local file, with no database, cloud or API keys

PluginExtended access581Repository stars

A set of 13 SKILL.md skills: research, a product doc, decks, articles and audits for any compatible agent

SkillExtended access731Repository stars

README in short

The README describes two features: memory from corrections and discovery of repeating workflows in history. Install via the Claude Code plugin marketplace and restart afterward. It lists all commands and flags, the hooks and their triggers, hybrid detection via regex and the model, and the files where rules are written. macOS, Linux and Windows are supported. MIT licensed.

README badge

Original SKILL.md

---
name: claude-reflect
description: Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md. Use when discussing learnings, corrections, or when the user mentions remembering something for future sessions.
---

# Claude Reflect - Self-Learning System

A two-stage system that helps Claude Code learn from user corrections.

## How It Works

**Stage 1: Capture (Automatic)**
Hooks detect correction patterns ("no, use X", "actually...", "use X not Y") and queue them to `~/.claude/learnings-queue.json`.

**Stage 2: Process (Manual)**
User runs `/reflect` to review and apply queued learnings to CLAUDE.md files.

## Available Commands

| Command | Purpose |
|---------|---------|
| `/reflect` | Process queued learnings with human review |
| `/reflect --scan-history` | Scan past sessions for missed learnings |
| `/reflect --dry-run` | Preview changes without applying |
| `/reflect-skills` | Discover skill candidates from repeating patterns |
| `/skip-reflect` | Discard all queued learnings |
| `/view-queue` | View pending learnings without processing |

## When to Remind Users

Remind users about `/reflect` when:
- They complete a feature or meaningful work unit
- They make corrections you should remember for future sessions
- They explicitly say "remember this" or similar
- Context is about to compact and queue has items

## Correction Detection Patterns

High-confidence corrections:
- Tool rejections (user stops an action with guidance)
- "no, use X" / "don't use Y"
- "actually..." / "I meant..."
- "use X not Y" / "X instead of Y"
- "remember:" (explicit marker)

Report a problem

Foxx AIclaude-reflect
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.