The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior

Xiangzhe Xu, Hamidreza Saghir, Qianhui Wu, Marc-Alexandre Côté, Tong Wang, Kiran Lakkaraju, Kexin Pei, Xiangyu ZhangCOLM 2026

TL;DR

This paper introduces the concept of tool architecture—how an agent's capabilities are organized and exposed—as a distinct design dimension from tool capability. Through 11,700 experimental trajectories, the authors demonstrate that changing the interface alone can improve agent consistency by up to 4.7×, increase repository exploration by 11%, and slash token usage by over 50%.

What Problem Does This Paper Address?

In the world of LLM-based agents, most research focuses on what an agent can do—adding new tools like program analyzers or vector databases. However, the authors argue that how these tools are presented to the model (the "interface") is just as critical.

They draw a clever analogy to classical software engineering: just as software architecture is complementary to functionality and shapes non-functional properties like robustness and efficiency, "tool architecture" shapes how an agent behaves. The gap they address is the lack of systematic study on how different interface designs affect an agent's consistency, exploration, and efficiency when the underlying capabilities remain constant.

Figure 1: Analogy between software engineering (SE) and agent tool design. In SE, software architecture is complementary to functionality and shapes non-functional properties such as robustness (Randell, 1975; Parnas, 1972; Williams & Smith, 1998). Our study focuses on the analogous question in agent tool design. We find that, for tools with similar capabilities, different tool architectures, that is, different ways of organizing and exposing information and actions to the model, can affect consistency, exploration, and efficiency.

Methods

The researchers conducted controlled experiments using three state-of-the-art "actor" models: Qwen3Coder-30B, Kimi K2.5, and Claude Sonnet 4.5. To isolate the effect of architecture, they implemented six different setups that provide nearly identical underlying capabilities but vary in their interface:

  1. BashOnly (Baseline): A raw shell interface.
  2. Atomic: Augments bash with structured tools for specific tasks (e.g., view, edit, search).
  3. NLSearch: A natural-language search interface implemented via a sub-agent.
  4. Python: A "CodeAct" style interface where the agent writes executable Python blocks instead of shell commands.
  5. HypoTrack: A cognitive scaffold for recording and updating debugging hypotheses.
  6. Scratchpad: A tool for recording free-form intermediate reasoning.
Table 1: A taxonomy of the tool architectures studied in this work and representative coding agents with corresponding tool designs.

Datasets

The primary evaluation was performed on a subset of SWE-bench Live (65 problem instances). To ensure the findings generalize, they also tested on:

  • SWE-bench Verified (issue resolving)
  • SWE-bench Pro (feature implementation)
  • A custom debugging split of SWE-bench containing full stack traces.

Key Insights and Ideas

  • The "Atomic" Consistency Boost: Providing structured tools (Atomic) instead of raw bash significantly reduces "interaction errors"—like malformed sed commands or broken edits. This is especially helpful for smaller models (like Qwen3Coder), which are more prone to these low-level mistakes.
  • NLSearch as an Exploration Engine: Natural-language interfaces encourage models to issue more diverse early search queries. This leads to higher recall of relevant files (an 11% increase), even though it sometimes introduces more noise (lower precision).
  • Python for Efficiency: The Python interface allows agents to bundle multiple operations into a single execution block. This "compound interaction" drastically shortens trajectories. Because LLM API costs are often dominated by the cumulative input of the conversation history, fewer steps lead to massive savings.
  • The Speculative Revision Trap: In the BashOnly setup, models like Sonnet 4.5 often perform "speculative full-file rewrites"—repeatedly editing a file without running it to see if it works. The Python interface naturally couples editing and execution, breaking this wasteful cycle.
  • Scaffolding Limits: Lightweight text-based tools like Scratchpad had almost no effect. The models simply "projected" the reasoning they would have written in the thought block anyway into the tool, without changing their underlying logic.
Figure 3: Effect of tool architecture on exploration and final-solution diversity. Bars show the difference from BashOnly for each actor–setup pair. The top row reports read diversity, measured by pairwise Jaccard distance over files read across repeated attempts of the same problem instance. The bottom row reports solution diversity, measured by pairwise CodeBLEU distance between generated patches. NLSearch is the only setup that consistently increases read diversity across all three actors, whereas effects on solution diversity are smaller and less uniform.

Key Results

  • Consistency: The Atomic architecture improved pass^k (consistency across repeated attempts) by up to 4.7× for weaker models.
  • Exploration: NLSearch increased the diversity of files read across all models, improving recall of high-relevance files by >11%.
  • Efficiency: The Python interface achieved similar task performance to BashOnly but used 41.6% fewer steps and 56.3% fewer tokens.
  • Task Performance: Interestingly, the overall "resolve rate" (success) remained broadly similar across architectures, confirming that the study successfully isolated non-functional behavioral changes from raw capability.

Limitations and Future Work

  • Lightweight Scaffolding: The authors note that their cognitive scaffolding tools (Scratchpad/HypoTrack) were very simple. More complex scaffolding that includes memory management or enforced reasoning policies might yield different results.
  • Coding Focus: The study is specific to coding agents. While the principles of "compound interaction" and "structured primitives" likely apply elsewhere, the specific gains might vary in other domains like web navigation or creative writing.
  • Sub-agent Overhead: The NLSearch tool used a sub-agent, which adds its own complexity. Future work could explore if native model capabilities (like long-context retrieval) change these dynamics.

Summary updated

BibTeX
@inproceedings{xu2026devil,
  author = {Xiangzhe Xu and Hamidreza Saghir and Qianhui Wu and Marc-Alexandre Côté and Tong Wang and Kiran Lakkaraju and Kexin Pei and Xiangyu Zhang},
  title = {{The Devil Is in the Interface: Evaluating How Tool Architecture Shapes Coding Agent Behavior}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=vIoq8tzUOy},
}
Figure