mlsanityData to 14 Oct 2026

Guardrails Beat Guidance: A Large-Scale Study of Rules, Skills, and Persistent Configuration for Coding Agents

arXiv 2604.11088 ↗First posted 13 Apr 2026cs.AI cs.CLcited by 3

On the map: LLM agents and tool use → Software engineering coding agents

also in 1 more
Abstract (arXiv)

Random rules improve a coding agent's task performance as much as expert-curated ones (both +13.8pp on a discriminative subset of SWE-bench Verified), and in our data every individually beneficial rule is a negative constraint ("do not refactor unrelated code"), while every individually harmful one is a positive directive ("follow code style"). We arrive at these findings through the first large-scale controlled study of agent rule files (textttCLAUDE.md, texttt.cursorrules, and the broader family of agent skills, plugin manifests, and persona definitions): we scrape 679 rule files (25,532 rules) from GitHub and conduct over 5,000 agent runs of Claude Code with Claude Opus 4.6 on SWE-bench Verified. Three patterns emerge. (i) Rule polarity cleanly separates beneficial from harmful rules; we read this through the lens of potential-based reward shaping (PBRS). (ii) Performance gains are largely content-independent: random, shuffled, mismatched-domain, and unconverted-format rule files all match curated rules, pointing to a context priming mechanism. (iii) Individual rules often appear harmful in isolation yet do not visibly accumulate damage in ensemble: pass rates remain stable across rule counts from 0 to 50. These findings expose a hidden reliability risk in the rapidly growing ecosystem of community-authored rules and skills, and they yield a clear principle for safer agent configuration: constrain what agents must not do, rather than prescribing what they should.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 44 references that are in the map. First posted on arXiv 13 Apr 2026.

Builds on

13 of 44 references.

Closest ancestors · 2

Same direction, newest first

  1. 2026Composer 2 Technical Report25 Mar
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 11

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  3. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  4. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  5. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
  6. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 606
  7. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
  8. 2025EvolveR: Self-Evolving LLM Agents through an Experience-Driven Lifecyclecited by 137
  9. 2026A Subgoal-driven Framework for Improving Long-Horizon LLM Agentscited by 11
  10. 2025Enhancing Agentic RL with Progressive Reward Shaping and Value-based Sampling Policy Optimizationcited by 9
  11. 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories
  2. 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure
  3. 2026Harness-IF: Evaluating Instruction Following Across Instruction Surfaces in Coding Agents
  4. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding
  5. 2026Latent Programming Horizons in Coding Agents
  6. 2026Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models
  7. 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents
  8. 2026Cross-Benchmark Transfer from RL on Agentic Coding Tasks