Reproduce “Guardrails Beat Guidance: A Large-Scale Study of Rules, Skills, and Persistent Configuration for Coding Agents” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xing Zhang, Guanghui Wang, Yanwei Cui, Wei Qiu, Ziyuan Li, Bing Zhu, Peiyang He
An empirical study on AI coding agents like Claude Code found that natural-language configuration rules, particularly negative constraints, enhance performance more effectively than positive directives. While the mere presence of rules acts as a "context priming" mechanism, specific "guardrails" improved task success by pruning the action space, whereas "guidance" often led to performance degradation.
Key insights
- Agent performance improves primarily through a "context priming" mechanism, where the presence of structured rules, even random ones, nudges the agent into a more careful problem-solving mode.
- Negative constraints (guardrails) are more beneficial than positive directives (guidance), with negative constraints pruning the action space and preventing deviations.
- Individual rules can cause regressions, but their effects tend to average out in larger ensembles, indicating resilience to individual distortions.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.