This project adds a 'reflection system' to Claude Code, an AI coding assistant. After each time Claude edits code, the tool automatically checks for syntax errors and compares the changes against a database of past mistakes. When it finds a match, it warns itself before repeating the error. The system also learns from repeated corrections—mistakes you catch twice get remembered automatically, while lessons you don't need anymore gradually fade away. It's designed to make Claude Code improve over time by remembering what went wrong before, rather than requiring you to correct the same mistake repeatedly.
How It Works
You notice Claude Code keeps making the same error it made last week—wrong property names, same typos. You have to correct it every single time.
You discover a tool that helps Claude Code remember its mistakes so it won't repeat them.
You add a small hook to your Claude Code settings and create a simple list of mistakes you've caught before.
Now every time Claude edits code, it automatically checks against your mistake list and warns itself before repeating an error.
Python syntax, JSON format, and shell commands are checked automatically after every edit
You write custom checks for mistakes specific to your project—like checking that UI component names are correct
When you catch a mistake twice, the system automatically adds it to the permanent memory. Mistakes you don't make anymore slowly fade away.
Claude Code stops making the same mistakes it made before. The more you use it, the smarter it becomes about your project's quirks.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.