claude-reflectBLOCK
A self-learning system for Claude Code that captures corrections, positive feedback, and preferences — then syncs them to CLAUDE.md and AGENTS.md.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/BayramAnnakov/claude-reflect/stargazers) [](https://github.com/BayramAnnakov/claude-reflect/releases) [](https://opensource.org/licenses/MIT) [](https://github.com/BayramAnnakov/claude-reflect/actions) [](https://github.com/BayramAnnakov/claude-reflect#platform-support)
A self-learning system for Claude Code that captures corrections and discovers workflow patterns — turning them into permanent memory and reusable skills.
Two ways to run it:
Pick one. Install the plugin or the mod.
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
e628ea61f89dOBSERVED · 2026-10-13Install
Commands as the repository documents them. They are shown, not run.
claude plugin install claude-reflect@claude-reflect-marketplace
claude plugin install reflect-mod@claude-reflect-marketplace
claude plugin install claude-reflect@claude-reflect-marketplace
claude plugin install reflect-mod@claude-reflect-marketplace
Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned | |
| codex | mentioned | |
| cursor | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
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)
## Learning Destinations
- `~/.claude/CLAUDE.md` - Global learnings (model names, general patterns)
- `./CLAUDE.md` - Project-specific learnings (conventions, tools, structure)
- `./CLAUDE.local.md` - Personal learnings (machine-specific, gitignored)
- `./.claude/rules/*.md` - Modular rules with optional path-scoping
- `~/.claude/rules/*.md` - Global modular rules
- `~/.claude/projects/<project>/memory/*.md` - Auto memory (low-confidence, exploratory)
- `commands/*.md` - Skill improvements (corrections during skill execution)
## Example Interaction
```
User: no, use gpt-5.1 not gpt-5 for reasoning tasks
Claude: Got it, I'll use gpt-5.1 for reasoning tasks.
[Hook captures this correction to queue]
User: /reflect
Claude: Found 1 learning queued. "Use gpt-5.1 for reasoning tasks"
Scope: global
Apply to ~/.claude/CLAUDE.md? [y/n]
```Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | FAIL |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (4)
- Environment undefined → Load .env file first
→ Proposed: "Load .env file before accessing environment variables"
self.assertIsNotNone(self._t("/etc/hosts is wrong, use 127.0.0.1 not localhost"))"# Python\nSee [Style](../../docs/style.md)\n"
Gates applied: no_behavioural_pass.
e628ea61f89dfull audit observations/trust-audit/skill/bayramannakov__claude-reflect.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-13 | e628ea61f89d | BLOCK | D | 69 | first audit |
Questions
What does the claude-reflect skill do?
A self-learning system for Claude Code that captures corrections, positive feedback, and preferences — then syncs them to CLAUDE.md and AGENTS.md.
Is claude-reflect safe to install?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What can claude-reflect access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does claude-reflect work with?
Its documentation mentions claude-code, codex and cursor. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (e628ea61f89d), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.