Who it is forA developer who runs Codex on a repo and wants the same over-defense limits they use with Claude Code.
The problemCodex adds checksums, migration layers and repeated review passes on work that is simple, and it does not have the rules Claude Code has.
The outcomeAGENTS.md carries the SCOPE LIMITS block, and Codex reads it when it starts a task in that repo.
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
- In the project root, run
grep -qi 'scope.limits' AGENTS.mdto see whether the block already exists. (inferred, check the README) - Follow the Quickstart install from README.md, replacing the CLAUDE.md filename with AGENTS.md.
- Open AGENTS.md and check that the block appears once, at the end of the file.
- Give Codex a small task in that repo and check whether it proposes extra hashing or scaffolding.
Prompt for your agent
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.
Caveat. The README lists AGENTS.md as the file for Codex and Antigravity, and the hosts guide has the full placement table, so check it before assuming another filename works.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for wanshuiyin/HERO-Anti-OverDefense and "Add the HERO block to Codex's AGENTS.md"
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