reflect

reflect is a command for Claude Code from ccplugins/awesome-claude-code-plugins. It costs 15 tokens per session (7,358 once invoked), scanned B, original, Apache-2.0.

A command that reviews corrections and learnings from coding sessions, then proposes updates to CLAUDE.md and, when present, AGENTS.md guidance files.

In plain words
What is it for?
Use it to scan recent or past sessions, preview changes, review outdated entries, remove duplicates, and sync guidance across supported files.
Why use it?
It helps preserve useful lessons so future coding sessions can follow them instead of repeating the same mistakes.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/bob/code/myapp.

Part of the claude-reflect plugin — 1 skill, 3 commands shipped together

Good fit Use it to scan recent or past sessions, preview changes, review outdated entries, remove duplicates, and sync guidance across supported files.

Compare 6 commands from other repositories ↓
About the project

Awesome Claude Code Plugins is a curated directory of extensions for Claude Code, including slash commands, specialized subagents, MCP servers, and hooks. Developers use the collection to find reusable workflows, integrations, and behavior changes for tasks such as coding, testing, DevOps, documentation, and project management. The catalogue entries are the listed Claude Code plugins and related components.

ccplugins/awesome-claude-code-plugins · 1,026 stars · on GitHub · claudecodeplugins.dev

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ccplugins/awesome-claude-code-plugins
Claude Code
/plugin install claude-reflect

Made for: Claude Code.

Or install claude-reflect, the plugin that ships this one along with the rest of its 1 skill, 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reflect

README.md
[![agentmods](https://agentmods.dev/badge/commands/ccplugins/awesome-claude-code-plugins/reflect/github.svg)](https://agentmods.dev/commands/ccplugins/awesome-claude-code-plugins/reflect)
Your own site
<a href="https://agentmods.dev/commands/ccplugins/awesome-claude-code-plugins/reflect"><img src="https://agentmods.dev/badge/commands/ccplugins/awesome-claude-code-plugins/reflect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reflect

Your own site · 80×15
<a href="https://agentmods.dev/commands/ccplugins/awesome-claude-code-plugins/reflect"><img src="https://agentmods.dev/badge/commands/ccplugins/awesome-claude-code-plugins/reflect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.07358
Opus 5.5 $0.00006 $0.02943
Sonnet 5.5 $0.00003 $0.01472
Haiku 4.5 $0.00002 $0.00736

Measured 3mo ago against content hash 3b38439aa611, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

reflect scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Learnings queue: !`cat ~/.claude/learnings-queue.json 2>/dev/null || echo "[]"`
plugins/claude-reflect/commands/reflect.md · 809 lines

How it starts

The opening of the file, as written. The whole thing — 809 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Arguments

  • --dry-run: Preview all changes without prompting or writing.
  • --scan-history: Scan ALL past sessions for corrections (useful for first-time setup or cold start).
  • --days N: Limit history scan to last N days (default: 30). Only used with --scan-history.
  • --targets: Show detected AI assistant config files and exit.
  • --review: Show learnings with stale/decayed entries for review.
  • --dedupe: Scan CLAUDE.md for similar entries and propose consolidations.

Context

  • Project CLAUDE.md: @CLAUDE.md
  • Global CLAUDE.md: @~/.claude/CLAUDE.md
  • Learnings queue: !cat ~/.claude/learnings-queue.json 2>/dev/null || echo "[]"
  • Current project: !pwd

Multi-Target Export

Claude-reflect syncs learnings to CLAUDE.md and AGENTS.md (the emerging cross-tool standard).

Supported Targets:

Target File Path Format Notes
Claude Code ~/.claude/CLAUDE.md, ./CLAUDE.md Markdown Always enabled
AGENTS.md ./AGENTS.md Markdown Industry standard (Codex, Cursor, Aider, Jules, Zed, Factory)

Detection Logic:

# Always enabled
~/.claude/CLAUDE.md
./CLAUDE.md (if exists)

# Only if file exists
test -f AGENTS.md && echo "AGENTS.md"

Note on Confidence & Decay:

  • Confidence scores help prioritize learnings during /reflect review
  • Decay applies to queue items only — if a learning sits unprocessed for too long, it's flagged as stale
  • Once applied to CLAUDE.md, entries are permanent (edit manually to remove)

Your Task

Handle --targets Argument

If user passed --targets:

Detect and display all AI assistant config files in the current project:

echo "=== Detected AI Assistant Configs ==="
echo ""
echo "✓ ~/.claude/CLAUDE.md (Claude Code - always enabled)"
test -f CLAUDE.md && echo "✓ ./CLAUDE.md (Project)" || echo "✗ ./CLAUDE.md (not found)"
test -f AGENTS.md && echo "✓ AGENTS.md (Codex, Cursor, Aider, Jules, Zed)" || echo "✗ AGENTS.md (not found)"

Read the full file on GitHub · 809 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 809 lines · 15 tokens per session scan B 3b38439aa611

Subscribe to this mod's changes

reflect is a command published in the GitHub repository ccplugins/awesome-claude-code-plugins (1,026 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 7,358 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

reflect compared with commands from other repositories

reflect next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reflectccplugins/awesome-claude-code-pluginsCommand1.0k3mo agoApache-2.0B15Claude Code
create-pull-requestxbim08/awesome-claude-code-pluginsCommand102mo agoApache-2.0A27Claude Code
pr-issue-resolvexbim08/awesome-claude-code-pluginsCommand102mo agoApache-2.0A14Claude Code
openapi-expertxbim08/awesome-claude-code-pluginsCommand102mo agoApache-2.0A61Claude Code
pr-reviewxbim08/awesome-claude-code-pluginsCommand102mo agoApache-2.0A23Claude Code
create-prxbim08/awesome-claude-code-pluginsCommand102mo agoApache-2.0A0Claude Code
huskyxbim08/awesome-claude-code-pluginsCommand102mo agoApache-2.0A33Claude Code