Manuscript Offprint

arXiv:2610.22289

Improving Environment-Agnostic Coding Agents: The Role of Scaffolding

Sergey Rodionov

Abstract

Stronger language models may increasingly construct useful procedures for themselves, reducing the advantage of developer-supplied scaffolding. We investigate why this advantage persists and whether an environment-agnostic agent can be improved without environment-specific engineering. We evaluate a Codex-based agent in two nearly identical prompt variants on ARC-AGI-3, AGI Maze, and Terminal-Bench. Each variant is deployed with unchanged code, prompts, and general-purpose tools across environments, receiving environment-specific information as input. Changing only an instruction to encourage reporting difficulties and returning control for automatic continuation improves mean scores on both ARC-AGI-3 and AGI Maze, while Terminal-Bench shows small, mixed changes. Yet the general agent remains below an ARC-AGI-3-specific reference, including with GPT-5.6-sol. The reference prescribes organization and control rather than supplying new game rules or solutions. To investigate this gap, we transfer reset decisions to a scripted controller that follows a convention already given to the agent. This small change recovers part of the specialized agent's advantage. A complementary AGI Maze experiment shows that additional tutorial experience can reduce performance. Together, these findings highlight the distinction between having information and tools available and using them effectively. Supplied procedures still matter for the models tested here. The performance gains also come with higher token-based cost. The experiments do not separate better use of information and procedures from additional or differently allocated inference. We provide the EnvTraverse framework and an evaluated baseline agent for testing whether further environment-independent changes improve performance in some environments without degrading it in others.

1 Introduction

An LLM-based agent combines a language model with a harness: the prompts, tools, memory mechanisms, and control logic that support its interaction with an environment [1]. For this study, we distinguish three components: the backbone LLM; environment-independent scaffolding, such as shell access, a file system, and generic context management; and environment-specific scaffolding, such as controllers and observation layouts designed for a particular environment family. These components interact. A capable agent may depend heavily on its harness without requiring that harness to be environment-specific.

Existing research shows that agent performance depends on how models are prompted and connected to tools. CodeAct investigates executable code as an action representation, while SWE-agent examines how agent-computer interface design affects performance [2, 3]. AgentBench and AgentGym provide multi-environment evaluation and learning frameworks, and Exgentic compares general-purpose agent architectures across heterogeneous benchmarks without per-environment task-solving customization [1, 4, 5]. Research on iterative self-refinement and test-time computation further motivates distinguishing the model from the procedures and inference used to apply it [6, 7]. We build on these lines of work by asking which benefits of scaffolding can be retained through mechanisms that remain unchanged across environments.

Our earlier ARC-AGI-3 studies motivate this question. The first combined executable world modeling, prompted simplification, and replay verification in a Codex-based agent [8]. The second compared textual and executable-model variants, finding that gains from model capability and reasoning effort often exceeded differences among those variants [9]. These findings are consistent with the hypothesis that stronger models may increasingly construct useful task-specific procedures themselves, reducing the advantage of developer-supplied scaffolding. This possibility is related to Sutton's emphasis on general methods that exploit increasing computation [10]. However, all variants in our earlier studies retained ARC-AGI-3-specific organization and control, leaving the contribution of that scaffolding unclear.

We therefore ask two related questions. First, can an environment-agnostic agent be improved on some environments without material regressions on others? Second, with the underlying model fixed, why can changes in guidance and control improve performance without supplying new task facts or general-purpose tools?

We investigate these questions using one Codex-based agent in two nearly identical prompt variants, each deployed unchanged across ARC-AGI-3, AGI Maze, and Terminal-Bench. A short instruction encouraging the agent to stop and report difficulties improves mean scores on ARC-AGI-3 and AGI Maze, while Terminal-Bench shows small changes with no consistent direction. The focus is on demonstrating and studying a concrete cross-environment improvement, rather than optimizing the agent for the highest possible benchmark scores. ARC-AGI-3-specific control provides further gains, including with GPT-5.6-sol, showing that supplied procedures still matter for the models tested here. A complementary AGI Maze experiment examines whether the agent benefits from tutorial experience. Together, these experiments connect a practical improvement to a broader problem: an agent can have useful information and tools available without reliably using them effectively.

Scope and approach. We use environment-agnostic to describe an unchanged agent implementation, not a guarantee of success in every environment. For a given variant and model-effort configuration, its code, prompts, and initial agent-owned tools remain fixed across environments, with no developer-authored environment-specific control logic. Each environment supplies an environment description and optional files, then accepts JSON actions and returns observation files through a common interaction contract. These environment specifications are held fixed in agent comparisons. The agent may construct specialized tools or strategies during a run; the developer does not supply a different scaffold for each environment.

Our environment-agnostic Baseline is a simplified version of the ARC-AGI-3-specific textual agent from our earlier study. A small scripted controller and an environment-agnostic client provide access to the task, while Codex performs the reasoning, computation, and action selection. Stop-and-report changes only one instruction, included in both the initial and continuation prompts. It encourages Codex to return control when it encounters difficulty or uncertainty. The controller resumes the same conversation with a reminder of the goal and a suggestion to reread the environment description when needed, but supplies no human feedback or task-specific advice. Both variants have access to the same reminder; the modified instruction changes when Codex is encouraged to return.

We evaluate GPT-5.5 at high and xhigh reasoning effort and GPT-5.6-sol at xhigh and max. The environments span visual rule discovery in ARC-AGI-3, stateful labyrinths in AGI Maze, and practical command-line tasks in Terminal-Bench 2.1 [11–14]. AGI Maze is evaluated both as independent labyrinths and as sequences of seven tutorials followed by a target labyrinth.

Findings and contribution. Stop-and-report increases mean ARC-AGI-3 Relative Human Action Efficiency (RHAE) by 1.37–7.29 percentage points across the four configurations. It also improves mean AGI Maze RHAE70 by 0.37–4.95 points, both with and without tutorials. RHAE70 measures completion and action efficiency against a chosen fraction of the benchmark's reference action budget; higher is better. Terminal-Bench shows small, mixed changes. The game-score gains come with higher token-based cost. They establish improvements under the tested execution policies, not superior performance at matched inference cost.

To investigate the remaining specialization gap, we use the textual agent from our earlier ARC-AGI-3 study as a reference, updated to twma_v1.61. Its level-and-attempt organization, reset management, and textual-model instructions prescribe ways of using information already available to the general agent, rather than supplying additional game rules or solutions. We choose it instead of the verification variant to avoid the additional predefined interfaces and programs supplied by that variant. Because twma_v1.61 still differs in several respects, we also perform a targeted comparison: adding scripted RESET management to Stop-and-report recovers approximately 34–60% of the observed gap. Codex is instructed not to call RESET, and the controller issues it at GAME_OVER. This tests whether a convention already available in the environment description becomes more useful when implemented explicitly in the controller. Section 6 describes the two ARC-AGI-3-specific agents.

The AGI Maze tutorial experiment provides complementary evidence about the value of prior experience. Tutorials reduce RHAE70 for both GPT-5.5-based variants at both effort settings. With GPT-5.6-sol they help both variants at xhigh, while their effects are smaller and mixed at max.

Together, the prompt comparison, ARC-AGI-3 diagnostics, and tutorial experiment highlight the distinction between having useful information and tools available and using them effectively. The performance gains may reflect more effective information use, more reliable control, or additional or differently allocated inference. These effects may act together; the experiments do not separate them.

We introduce EnvTraverse, an experimental framework for running and evaluating agents across interactive environments, together with the Baseline agent evaluated in this study. These are intended to support further research on improving environment-agnostic agents through better procedures or additional general capabilities. New agent variants can be compared with Baseline across environments to assess performance gains, possible regressions, and inference cost.

Code and data availability. Source code and documentation are available through the EnvTraverse project page at https://github.com/astroseger/envtraverse. The complete results and run artifacts are available through the same page.

References (24)