Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories
Prakhar Khatri
Abstract
Persistent context files (AGENTS.md, CLAUDE.md) are standard practice for guiding AI coding agents, yet evidence for their effectiveness is contradictory. We present a controlled ablation of context-injection strategy across two frontier agents (Claude Code and Codex), 17 real tasks from 3 repositories (15 shared + 2 Codex-only), and 288 evaluated runs with gold-test evaluation. Context strategy does not measurably move correctness on either agent (bounded to <=10-15pp via equivalence testing). A failure-mode triage reveals why: agents fail on implementation skill---feature design, pattern selection, exact wiring---not missing repository knowledge that a context file could supply; a manipulation probe confirms the real AGENTS.md never converts a near-miss to a pass on either agent. We further show that borderline task difficulty is agent-specific (Spearman rho=0.75), offering a candidate explanation for prior contradictions: single-agent studies draw tasks from different agents' informative bands. We release all code, data, and analysis.
Create a lesson
Related papers
CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents
Shared title terminology · Zhongming Yu, Hengjia Yu, Boqin Yuan et al.
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminology · Haoran Yu, Lifei Liu, Danping Zhang
Repository-Grounded Rubrics for Execution-Free Evaluation of Coding Agents
Shared title terminology · Matej Gerek, Danylo Zahorulko, Samuel Budai et al.
When and How Context Rot Appears in Coding Agents: A White-Box Study of Agent Skills in Code Auditing
Shared title terminology · Yue Xue
Change2Task: From Repository Changes to Executable Coding Agent Tasks and Environments
Shared title terminology · Haomin Qi, Xingliang Wang, Xuanqi Gao et al.