Skip to content
AddHunt
Agent skills & plugins

claude-smart

Claude Code plugin that turns corrections into rules

Open source

  • Open source
  • Licence: Apache-2.0

In short

claude-smart is an open-source Claude Code plugin, powered by Reflexio, that learns from your corrections and successful tool runs and feeds them back as rules in later sessions. It is for developers who are tired of repeating the same instructions to Claude Code in every new session.

What you get

  • Turns corrections into reusable rules
  • Saves successful tool sequences as recipes
  • Project playbook that persists across sessions
  • Runs entirely on your machine
  • Rules merge and archive themselves

The details

claude-smart focuses on learning rather than memory. Instead of replaying old transcripts or summaries, it distils what happened into instructions Claude Code can act on, such as always passing a particular flag to a test command in one repository, or which script starts the full local stack.

How it works

Everything runs on the developer's machine. Claude Code lifecycle hooks record each user turn, tool call and assistant reply, Reflexio's extractors condense them, and the resulting rules are injected into the system prompt when a new session starts.

Two outputs

  • A user profile with session-level preferences and working style, for example a preferred package manager or a liking for short answers
  • A project playbook of lasting rules for the repository, each noting when and why it applies

The rules maintain themselves: repeating the same correction merges it with the existing rule, and changing your mind archives the old one. They are kept compact, so the playbook stays small as a project grows.

Requirements

The plugin needs Claude Code installed and signed in, plus Node.js 18 or newer, Python 3.12 or newer and uv on the PATH. It is released under the Apache-2.0 license, and the documentation covers installation, commands, a dashboard and configuration.

Alternatives to claude-smart

All alternatives

Questions

How is claude-smart different from a memory plugin?

Memory tools re-inject past transcripts or summaries. claude-smart instead turns corrections and successful paths into rules that change what Claude Code does next time.

Where does the processing happen?

The documentation says it runs entirely on your machine: Claude Code hooks capture each session and Reflexio's extractors turn it into profiles and playbook rules.

What do I need to install it?

Claude Code, installed and signed in, along with Node.js 18 or newer, Python 3.12 or newer and uv on your PATH.

More like this