Who it is forA solo developer using Claude Code on a small project who keeps getting checksums, feature flags and compat layers for features that will never need them.
The problemThe agent answers a simple feature request with defensive scaffolding and extra verification loops, and the feature is delayed or never finished.
The outcomeCLAUDE.md contains the SCOPE LIMITS block, so the agent loads the rules at the start of every session and proposes only fixes that are in scope.
What you need first
- A coding agent that loads a config file automatically, such as CLAUDE.md, AGENTS.md, .github/copilot-instructions.md or .cursorrules
- A terminal with curl, awk and grep to run the one-line install, or a text editor to paste the block by hand
- A project where you can edit the agent config file
Steps
- Open the terminal in your project root, where CLAUDE.md lives or should live.
- Run
grep -qi 'scope.limits' CLAUDE.mdto check whether the block is already there. Exit status 0 means it is. - If it is not there, run the install command from the Quickstart section of README.md, with CLAUDE.md as the target file.
- Open CLAUDE.md and confirm that a section starting with
=== SCOPE LIMITSappears once at the end. - Start a new Claude Code session and ask for a small feature to see whether the agent keeps to the rules.
Prompt for your agent
Read RULES.md in the HERO-Anti-OverDefense repo and confirm that the SCOPE LIMITS block is present in <project>/CLAUDE.md, appended once and nothing else changed. Then implement <small feature> and report which of rules 1 to 9 you applied, and confirm that no hashes, feature flags or wrappers were added unless the feature needed them.
Caveat. The install command only appends the block, so a stale block from an earlier paste will not be replaced and must be deleted by hand before running it again.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for wanshuiyin/HERO-Anti-OverDefense and "Stop Claude Code from over-hardening a small feature"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer