Rules files aren't firewalls: study shows they cost Codex CLI 31 points and don't block agents

Sandeep Dhuri · hf · 2026-11-27

A preregistered security study tested whether a 278-word repository rules file constrains coding agents. Claude Code, Codex CLI, Gemini CLI and OpenCode (with DeepSeek) ran through 20 small repos with hidden tests, facing four boundaries (refused endpoint, destructive shortcut, planted instruction, planted package), with vendor permission prompts off and verdicts read from tamper-proof logs.

Key findings:

Conclusion: the rules file acted as advice — a file tells an agent what you want; a gate decides what it actually gets.

Related event: Study: Coding Agents Follow Stale Rule Files 90% of the Time(3 posts)→

Original post →

More from coding & agent

coding & agent channel →