When Does Restricting a Coding Agent to execute_code Help? A Regime
× Agent-Design Ablation
This paper ablates the tool surface of coding agents, comparing a baseline (all tools) against bash-only and code-only (single execute_code MCP tool) variants. Across two agents (Claude Code, OpenAI Codex CLI) and two task regimes (synthetic computation, SWE-bench Mini modification), restricting to code-only is cheaper than or statistically tied with the cheapest tool-rich variant in three of four (regime, agent) cells, with pass rates tied within each cell. The exception is SWE-bench/Claude, where code-only is directionally costlier due to failure-cost on doomed trajectories. The cheapest tool surface depends jointly on task regime and agent design.