Instruction Adherence in Coding Agent Configuration Files: A Factorial Study of Four File-Structure Variables
Damon McMillan

TL;DR
This study systematically examined how four structural variables in configuration files affect coding agent adherence, finding no significant impact from these variables but noting compliance declines with longer sessions and varies by task.
Contribution
It provides the first large-scale factorial analysis of configuration file structure effects on agent compliance, revealing minimal influence of structural choices.
Findings
None of the four structural variables significantly affected adherence after correction.
Agent compliance decreases by approximately 5.6% odds per additional generated function within sessions.
Compliance varies systematically across different coding tasks and session sequences.
Abstract
Frontier coding agents read configuration files (CLAUDEmd, AGENTSmd, Cursor Rules) at session start and are expected to follow the conventions inside them. Practitioners assume that structural choices (file size, instruction position, file architecture, contradictions in adjacent files) measurably affect adherence. We report a systematic factorial study of these choices using four manipulated variables, measuring compliance with a trivial target annotation across 1,650 Claude Code CLI sessions (16,050 function-level observations) on two TypeScript codebases, three frontier models (primarily Sonnet 4.6, with Opus 4.6 as a CLI-matched cross-model check and Opus 4.7 reported descriptively under a CLI-version confound), and five coding tasks. We use mixed-effects models with a Bayesian companion. None of the four structural variables or three two-way interactions produces a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
