Four Harness Changes Cut Coding Agent Token Use by Nearly Half
Neutral Coding agents By What The Future Newsroom · September 26, 2026 · 4 min read

Four Harness Changes Cut Coding Agent Token Use by Nearly Half

Nvidia researchers developed SoL-Pi to optimize the control layer that guides coding agents. On EdgeBench, its most efficient version used 49 percent fewer tokens while achieving 93.7 percent of Pi's score, though results varied across other benchmarks.

Coding agents can spend heavily on long sequences of model reasoning, tool calls and feedback. Nvidia researchers describe SoL-Pi, a system that searches for ways to make those sequences more efficient by changing the agent's harness: the control layer that manages what the model sees, the actions it takes and how it handles results.

“The story describes a routine efficiency improvement for coding agents, with no clear dominant lean toward AI control or human decline.”Why it scores Neutral

Searching the agent's control layer

Many efforts to reduce AI costs focus on the model or the infrastructure serving it. SoL-Pi targets a different source of expense: the instructions and processes that coordinate an agent's work. That layer handles tool use, context, verification and decisions about when to stop.

Those pieces affect one another. A change that saves tokens during one step might cause a mistake or require extra work later. The usual approach is for people to inspect execution traces and turn repeated problems into code. SoL-Pi automates parts of that process: a research agent reviews another agent's traces, proposes harness changes and tests them in prepared environments. Checks for capability and efficiency determine which candidates continue.

The researchers say the system explored 152 directions across 535 executable environments. The work included 495 tasks based on GitHub issue-pull-request pairs and 40 synthetic test cases, with more than 3,000 runs and over 60,000 agent-environment interactions.

A broad search can still overfit to its training tasks. To check performance on tasks outside that search, the researchers kept EdgeBench separate. They used 11 of its 51 public tasks to validate finished candidates once, reserving the other 40 for final evaluation without feeding those results back into the search.

Four ways SoL-Pi tries to save work

The search produced four mechanisms aimed at avoiding repeated calls or unnecessary context:

  • Action Fusion combines consecutive actions, such as editing code and then running a test, into one step, avoiding a language model call.
  • Online Context Compact trims accumulated context after planning steps when it can do so without losing important information.
  • ObservationPack archives lengthy tool outputs and supplies a short summary in later steps instead of sending the full output again.
  • Evidence-Preserving Reducer sends large error and test logs to a cheaper model for summarization, then checks automatically for important clues that may have been missed.

The mechanisms address different sources of repeated work. Together, they can reduce the amount of material passed through an agent's process, though the results depend on which mechanisms are enabled and how the system is evaluated.

Lower token use, with performance trade-offs

On EdgeBench's 51 public tasks, the researchers report that SoL-Pi performed about as well as the original Pi harness. The version combining all four mechanisms used 49 percent fewer tokens and achieved 93.7 percent of Pi's score. Another configuration, using the strongest single mechanism, scored 5.3 percent above Pi while still saving tokens. Across these variants, token use fell by 44.7 to 49 percent.

The researchers estimate hourly savings of $8.75 to $13.50 compared with native Codex and Claude Code harnesses, and $4.36 to $5.71 compared with Pi, based on current API prices. These figures are estimates tied to the study's comparisons and pricing basis.

SoL-Pi was built using GPT-5.6 Sol and then applied to Opus 5 without changes. In that setting, it retained 94.3 percent of Pi's performance with similar savings. The mechanisms activated less often and less aggressively, which the researchers attribute to optimizing the harness only on GPT-5.6 Sol trajectories.

Results outside EdgeBench were less uniform. On 63 CPU tasks from Terminal-Bench 4, SoL-Pi solved 15, while Codex and Pi each solved 18; its total costs were about a quarter lower than Pi's. On formally verified Lean 4 tasks from the 2026 Math Olympiad (IMO 2026), it solved three of six problems at the lowest cost per solved problem. In a kernel optimization experiment, a swarm of 20 SoL-Pi workers reduced costs by 26.8 percent compared with a comparable Pi swarm.

Efficiency depends on what gets compressed

Reducing context can also reduce prompt cache reuse. Even so, in one test run, total costs fell from $1,339 to $894. The researchers suggest that future work could pretrain a harness across many tasks and use an already efficient harness to make searches for a successor cheaper. They present this as a vision, rather than a result established by the current study.

The wider motivation is that an agent's control layer can affect costs even when the underlying model stays the same. An August test by tooling company Composio ran Deepseek V4 Flash across four agent frameworks, including Claude Code and the Pi-based Oh My Pi; cost per solved task varied by nearly 3x. But compression has potential costs of its own: the source article cites a study finding that it preserves only 17 percent of user instructions on average.

SoL-Pi's results point to the harness as a place where efficiency can be improved, while also showing why token savings need to be weighed against task performance and context retention. Its strongest gains appeared in particular configurations and evaluations, and performance shifted across benchmarks and models.

Artificial intelligenceCoding agentsNvidiaAI efficiency
← Back to the wire

Read next