Hidden in Plain Sight: an Empirical Study about The Instruction Stacks of Coding Agents
Felipe de Sant'Anna Paix\~ao, Dhyego Tavares, Eduardo Almeida, Iftekhar Ahmed
Key points
From the paper's conclusion- The findings motivate documenting captured instruction stacks alongside agent releases, models, and user prompts, and preserving the rationale behind their revisions.
Abstract
Coding agents send their models more than the user's prompt: they add instructions, tool definitions, and environmental context that form an instruction stack. This stack guides execution and changes across releases, yet remains largely unexposed to users and insufficiently characterized in research. We present a longitudinal, cross-agent study of the instruction stacks captured in the first model requests of 1,886 releases of Claude Code, Codex, Gemini CLI, Qwen Code, and OpenCode. Under controlled conditions, we analyze their composition and evolution and trace changes in the four open-source agents to documented motivations. Our findings show why examining the system prompt or reporting the model alone provides an incomplete account of agent inputs. Tool definitions dominate three agents' latest requests, while occasional concentrated revisions alter instructions governing tool use, attribution, and coding style. Such revisions can complicate how researchers identify agent-authored contributions and interpret generated code. We also found that only 48% of examined change units directly explain the motivation for stack revisions. Across agents, shared capabilities emerge despite increasingly distinct wording. These findings expose an evolving, incompletely documented layer of agent design. The findings motivate documenting captured instruction stacks alongside agent releases, models, and user prompts, and preserving the rationale behind their revisions.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.mdarXiv · 2026
- On the Maintenance and Co-evolution of Agent Plugins: An Empirical Study of Claude Code Plugin MarketplacesarXiv · 2026
- Toward Evidence-Based Agentic Software EngineeringarXiv · 2026
- Agent ATO: Visualizing Agent Interaction Timelines from LogsarXiv · 2026
- Agentic Much? Adoption of Coding Agents on GitHubACM Transactions on Software Engineering and Methodology · 2026
- Interpreting Coding Agents Through Their Behavioral TrajectoriesarXiv · 2026