by ReflexioAI
A Claude Code plugin that makes Claude Code self-improve — learning from your corrections, not just remembering them (also support codex now)
# Add to your Claude Code skills
git clone https://github.com/ReflexioAI/claude-smartLast scanned: 5/22/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-22T07:44:33.995Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}claude-smart is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ReflexioAI. A Claude Code plugin that makes Claude Code self-improve — learning from your corrections, not just remembering them (also support codex now). It has 732 GitHub stars.
Yes. claude-smart passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/ReflexioAI/claude-smart" and add it to your Claude Code skills directory (see the Installation section above).
claude-smart is primarily written in Python. It is open-source under ReflexioAI on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-smart against similar tools.
No comments yet. Be the first to share your thoughts!
npx claude-smart install
Then restart Claude Code.
Requires Node.js (for npx) to already exist.
Alternatively, install via Claude Code's plugin marketplace:
claude plugin marketplace add ReflexioAI/claude-smart
claude plugin install claude-smart@reflexioai
To uninstall:
npx claude-smart uninstall
Or, if installed via the plugin marketplace:
claude plugin uninstall claude-smart@reflexioai
npx claude-smart install --host codex
Then fully quit and reopen Codex so hooks reload.
Requires the codex CLI on PATH and Node.js (for npx).
To uninstall:
npx claude-smart uninstall --host codex
Restart Codex after uninstalling. The uninstaller stops local claude-smart services and removes plugin/cache/config state; learned data under ~/.reflexio/ and ~/.claude-smart/ is preserved and shared with Claude Code, so you can switch between hosts without losing skills or preferences.
npx claude-smart install --host opencode
Then restart OpenCode in your project so it loads the plugin from opencode.json, the documented project config file. If that project does not already have a root config but does have .opencode/opencode.json or .opencode/opencode.jsonc, the installer updates that existing file instead of creating a second config. If both locations exist, the root config wins. Use --global to install into ~/.config/opencode/opencode.json for all OpenCode projects on this machine. The installer copies the active package to ~/.claude-smart/opencode/claude-smart, prepares that runtime immediately, and writes a file:// plugin entry so OpenCode reloads the same prepared package after restart.
OpenCode support is new and uses OpenCode's plugin loader to inject relevant learned context before each model request. Learning extraction runs opencode run --pure from an isolated temp project, so it uses OpenCode's default model unless you set CLAUDE_SMART_OPENCODE_MODEL=provider/model. Set that env var if your normal project config pins a different provider or model.
To uninstall:
npx claude-smart uninstall --host opencode
Restart OpenCode after uninstalling. The uninstaller removes the claude-smart entry from OpenCode's plugin list and deletes the copied OpenCode package; learned data under ~/.reflexio/ and ~/.claude-smart/ is preserved and shared across hosts.
Developing the plugin itself? See DEVELOPER.md for what the installer does, manual toggles via /plugins, and clone-based development.
Not supported: Claude Code Cowork, claude.ai/code web, or remote Codex environments without local plugin hooks — they run outside your local machine, so the local backend/dashboard and
~/.reflexio/aren't reachable.
Most memory tools just record. Claude remembers what happened, but doesn't change what it does next.
claude-smart focuses on learning instead.
Four things this changes:
💡 Stop repeating the same mistakes: Produces actionable skills Claude can follow next time; memory only records what happened.
Example: a deploy fails after Claude bumps
prismafrom 5.x to 6.0; you tell it to roll back because 6.0 breaks nested writes in your order flow. Memory: “deploy broke after prisma bump; user rolled back” Learning: “treat major-version bumps of ORMs/DB drivers as breaking — verify with integration tests, not just unit tests”
🚀 Start from the optimized path: Records and optimizes the steps that worked so Claude can reuse them, instead of re-exploring each session.
Example: Claude spends several iterations trying to start the local dev environment before discovering that this repo requires
pnpm dev:allinstead of the usualnpm run dev. Memory: “user mentioned thatnpm run devdid not work” Learning: “for this repo, always usepnpm dev:allto start the full local stack —npm run devonly starts the frontend and causes missing service errors”
Instead of re-exploring, Claude Code starts from the proven path—reducing planning steps, latency, and token usage.
🌐 Project-specific and shared skills: Session memory disappears with the conversation. Project-specific skills preserve repo-local rules, while shared skills roll up patterns that should transfer across projects. Preferences stay scoped to the current project so per-repo preferences don't leak across projects.
🪶 Better context without prompt bloat: Distilled, deduplicated skills stay in dozens of tokens—not thousands—even as the project grows.
https://github.com/user-attachments/assets/ed84d73a-d5b7-4a0d-ab2c-f2c060c3f276
e.g. correct the same
npm test --rungotcha twice → consolidated into one rule. New evidence shows it applies tovitesttoo → scope broadened. Switch policy topnpm test→ old rule archived, new one supersedes it.
~/.reflexio/ and ~/.claude-smart/)./claude-smart:learn in Claude Code, or bash ~/.reflexio/plugin-root/scripts/cli.sh learn in Codex, flags the last turn as a correction so the extractor weights it heavily.A web UI for browsing session histories, inspecting preferences, and editing project-specific and shared skills. The dashboard auto-starts alongside the backend, so you can open http://localhost:3001 directly. Or run /claude-smart:dashboard in Claude Code to open it in your browser. In Codex, run bash ~/.reflexio/plugin-root/scripts/dashboard-open.sh.
claude-smart builds three artifacts as you work and injects the relevant ones into Claude Code, Codex, or OpenCode:
--run