No. 107 Lower the entropy
Anti-Over-Engineering
Use when the code works but the structure is harder than the behavior
- Claude Code
- Codex
- Cursor
- Lower the entropy
# Anti-Over-Engineering Only change what was asked. Simplest solution first. When unsure, ask. Do not modify unrequested code, add abstractions without a concrete need, import unnecessary dependencies, rewrite entire files for small changes, or add error handling for impossible scenarios. Before delivery: verify you only changed requested code, check for simpler approaches, confirm no unrequested files were touched.
When to use
“Anti-Over-Engineering” fits when the code works but the structure is harder than the behavior, because it says “Anti-Over-Engineering”, and it is written to stay in force on later turns rather than to finish one task.
With “Anti-Over-Engineering” loaded, the user message can be as small as “fix the empty-cart total in src/cart.js and do not touch the test runner”, because “Anti-Over-Engineering” is already in force.
When not to use
Leave “Anti-Over-Engineering” unused when the change is a one-line typo or a red build you have not read, because “Anti-Over-Engineering” points the other way
How to run it
Claude Code
Claude Code loads “Anti-Over-Engineering” from .claude/rules on later sessions, so “Anti-Over-Engineering” survives a new chat, which a one-off paste does not.
Codex
Codex keeps “Anti-Over-Engineering” only if you put “Anti-Over-Engineering” in AGENTS.md, or in AGENTS.override.md beside the directory that should inherit it. A paste that is not saved is gone next thread.
Cursor
Cursor keeps “Anti-Over-Engineering” by saving “Anti-Over-Engineering” as .cursor/rules. The chat transcript alone will not reload it tomorrow.
Comparison
Without “Anti-Over-Engineering”, both price and qty fell back to 0 inside one for-of loop. With “Anti-Over-Engineering”, the model printed a shorter index loop and left a missing qty unguarded, so that product can still become NaN.
Related
- Stage: Lower the entropy
- Same stage: Clean Code Guidelines
来源:PatrickJS awesome-cursorrules · https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/anti-overengineering.mdc · CC0-1.0 · 2026-12-01