Who it is forA researcher or engineer who starts an agent on a long unattended task, such as a multi-hour experiment or refactor, and comes back to a pile of defensive work.
The problemOver a long run the block can fade from the agent's working context, and an invoked copy is absent when nobody is there to invoke it.
The outcomeThe block sits in the agent's always-loaded config, and the hosts guide is used to pick a placement that survives long sessions.
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
- Confirm that the block is in the always-loaded file for your host, using the hosts guide in the hosts/ folder.
- Run
grep -qi 'scope.limits' CLAUDE.mdin the project root, or use the filename for your host, to confirm it is present. - Start the unattended run and check the output at the first checkpoint for over-defensive steps.
- If the block seems to have faded in a long session, follow the hook route described in hosts/README.md.
Prompt for your agent
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.
Caveat. The README says the block can fade on long runs and that the fix depends on the cause, so checking at checkpoints is needed, and the hook route is described only in hosts/README.md.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for wanshuiyin/HERO-Anti-OverDefense and "Keep the HERO block active on overnight agent runs"
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