Your CLAUDE.md learns automatically from every correction you make.
You correct Claude. It never learns. Next session — same mistake.
claude-evolve fixes that.
Every time you correct Claude Code, it silently extracts the rule and writes it to your CLAUDE.md. Permanently. Zero manual work.
You: "Don't use console.log, use our logger utility"
Claude: [continues working]
claude-evolve: [background, silent]
→ Detected correction
→ Extracted rule: "Use logger utility instead of console.log"
→ Written to CLAUDE.md ✓
Next session. Claude reads CLAUDE.md. Never makes that mistake again.
# Inside Claude Code
/plugin marketplace add yourusername/claude-evolve
/plugin install claude-evolveOr manual:
curl -fsSL https://raw.githubusercontent.com/yourusername/claude-evolve/main/install.sh | bashRequires: ANTHROPIC_API_KEY in your environment.
UserPromptSubmithook fires on every message you send- Pattern matching detects corrections in < 1ms — zero latency
- Confirmed corrections spawn a background process (async — never blocks you)
- Background process calls Claude Haiku API (~$0.001) to extract the rule
- Rule is deduped and appended to your
CLAUDE.md - Next Claude Code session — the rule is in context from the start
| Your correction | Rule added to CLAUDE.md |
|---|---|
| "Don't use any, use proper types" | "Never use TypeScript any — always define proper types" |
| "Stop adding console.logs" | "Do not add console.log statements unless explicitly requested" |
| "Use our API client, not fetch directly" | "Use the internal API client (src/lib/api.ts), not raw fetch" |
| "Always run tests after changes" | "Run the test suite after every significant code change" |
| "Don't commit directly to main" | "Never commit directly to main — always use feature branches" |
- Everything runs locally
- The only external call is to Anthropic API (same as Claude Code itself)
- Rules stay in your
CLAUDE.md— your codebase, your control - Add
<private>tags to exclude sensitive prompts from processing
~$0.001 per correction extracted. Haiku model.
If you make 50 corrections a month — that's $0.05/month.
// ~/.claude-evolve/config.json
{
"enabled": true,
"minConfidence": 60,
"maxRulesPerSession": 10,
"excludePatterns": ["password", "secret", "token"]
}Built by an engineer with 25 years of production scars. Because CLAUDE.md should learn from you — not the other way around.