{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "wanshuiyin-hero-anti-overdefense--paste-scope-limits-into-claude-md",
 "repo": "wanshuiyin/HERO-Anti-OverDefense",
 "repo_url": "https://github.com/wanshuiyin/HERO-Anti-OverDefense",
 "repo_slug": "wanshuiyin-hero-anti-overdefense",
 "title": "Stop Claude Code from over-hardening a small feature",
 "page_title": "How to stop Claude Code from over-hardening a small feature with HERO Anti Over Defense",
 "summary": "Append the HERO scope block to CLAUDE.md so Claude Code stops adding unneeded hashes, flags and wrappers.",
 "who": "A 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.",
 "problem": "The agent answers a simple feature request with defensive scaffolding and extra verification loops, and the feature is delayed or never finished.",
 "outcome": "CLAUDE.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.",
 "steps": [
  "Open the terminal in your project root, where CLAUDE.md lives or should live.",
  "Run `grep -qi 'scope.limits' CLAUDE.md` to 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 LIMITS` appears 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."
 ],
 "agent_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.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "markdown",
 "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/wanshuiyin-hero-anti-overdefense/paste-scope-limits-into-claude-md/",
 "md": "https://dedupedai.com/use-cases/wanshuiyin-hero-anti-overdefense/paste-scope-limits-into-claude-md/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/wanshuiyin-hero-anti-overdefense--paste-scope-limits-into-claude-md.json",
 "api_version": "v1"
}
