What do you want to do?
4 use cases
-
Stop Claude Code from over-hardening a small feature
Append the HERO scope block to CLAUDE.md so Claude Code stops adding unneeded hashes, flags and wrappers.
View prompt
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.
-
Add the HERO block to Codex's AGENTS.md
Put the same contract in AGENTS.md so Codex follows the scope limits on each run.
- HERO Anti Over Defense
- Codex
- Software and DevOps
- Intermediate
View prompt
Confirm that the HERO SCOPE LIMITS block from RULES.md is appended once to <project>/AGENTS.md. Then complete <task> and report whether any change was made under rules 2, 3 or 4 that the task did not require.
-
Quote a HERO case ID when an agent defends its extra checks
Point the agent to a named catalogue case when it insists a hash or extra review is needed.
View prompt
Read cases/README.md in the HERO-Anti-OverDefense repo. Find the case that matches <behaviour you observed>, quote its ID and its proportionate example, and answer in one paragraph whether the check you are about to run would detect a failure that changes what happens next.
-
Keep the HERO block active on overnight agent runs
Put the block in an always-loaded file so long unattended runs keep the scope limits.
View prompt
Check that the HERO SCOPE LIMITS block is in the always-loaded config for this project. Then run <long task> and, at each checkpoint, list any hashing, extra review or scaffolding step and state which rule it falls under.
How to use HERO Anti Over Defense
- Check you have what it needs: 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.
- Open wanshuiyin/HERO-Anti-OverDefense on GitHub and read the README and license.
- 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.
These steps come from our top use case, Stop Claude Code from over-hardening a small feature, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeHERO Anti Over Defense alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers and teams who use AI coding agents such as Claude Code, Codex or Cursor and find the agent building hardening, checksums and scaffolding instead of the feature they asked for.
- Why it is hot
- LanguageMarkdown
- Sourcegithub.com/wanshuiyin/HERO-Anti-OverDefense · Back to Hot repos
Requirements
- 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
Maintain HERO Anti Over Defense? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/wanshuiyin-hero-anti-overdefense/?ref=badge)
Questions about HERO Anti Over Defense
What is HERO Anti Over Defense?
HERO is a short block of rules, pasted into a coding agent's config file, that stops the agent from over-defending: adding hashes, edge-case handling, review loops and extra scaffolding that the actual work does not need. It is an open-source project on GitHub: https://github.com/wanshuiyin/HERO-Anti-OverDefense.
Who is HERO Anti Over Defense for?
Developers and teams who use AI coding agents such as Claude Code, Codex or Cursor and find the agent building hardening, checksums and scaffolding instead of the feature they asked for.
What can I do with HERO Anti Over Defense?
4 use cases so far, for example: Stop Claude Code from over-hardening a small feature; Add the HERO block to Codex's AGENTS.md; Quote a HERO case ID when an agent defends its extra checks. Each has steps and a copy-paste agent prompt.
What do I need to run HERO Anti Over Defense?
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.
What are alternatives to HERO Anti Over Defense?
Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.
Is HERO Anti Over Defense safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.