Agents

NVIDIA Labs Introduces SoL-Pi for Coding Agent Efficiency

NVIDIA Labs released SoL-Pi, an open-source extension for the Pi coding agent harness that reduces token usage and operational costs via recursive research.

A
AIDeveloper44 Team
September 11, 2026·4 min read
NVIDIA Labs Introduces SoL-Pi for Coding Agent Efficiency

SoL-Pi implements four token-efficiency mechanisms discovered through automated recursive self-improvement loops.

TL;DR
  • NVIDIA Labs has released SoL-Pi, an open-source extension designed to optimize token efficiency for the Pi coding agent harness.
  • The extension packages four mechanisms discovered via recursive self-improvement (RSI) auto-research loops: Action Fusion, ObservationPack, Evidence-Preserving Reducer, and Online Context Compact.
  • Benchmarks demonstrate cost reductions between $8.75 and $13.50 per hour compared to native Codex and Claude Code harnesses.
  • All four mechanisms are modular, opt-in by default, and operate via public APIs without patching upstream codebase files.

Addressing the Token Cost of Autonomous Coding Agents

As autonomous software engineering agents shift from isolated code completion to long-horizon repository management, token consumption and runtime expenses increase significantly. Modern agent frameworks are capable of executing multi-turn workflows over days without human intervention, but long execution trajectories routinely accumulate redundant actions, replayed contexts, and verbose diagnostic logs that degrade both speed and budget predictability.

To tackle these systemic inefficiencies, NVIDIA Labs introduced SoL-Pi, a specialized extension built on top of the open-source Pi coding-agent harness. The initiative investigates whether recursive self-improvement (RSI)—typically explored for capability expansion—can be deployed under constrained efficiency objectives to optimize the software scaffolding that surrounds large language models.

The Auto-Research Search Pipeline

Developing SoL-Pi involved treating harness optimization as an empirical auto-research process. The research team generated a proposal pool of 152 distinct mechanism ideas designed to reduce model turns, inference work, and context overhead. Agents systematically generated rollout environments from publicly available software repositories, observed behavioral patterns across trajectories, and evaluated interventions under a strict capability-preservation rule: cost and token count had to decrease without compromising task success rates or dropping critical verification steps.

Out of the 152 evaluated proposals, four mechanisms met all validation criteria and were packaged into the final SoL-Pi release:

  • Action Fusion: Combines predictable follow-up validation routines with preceding file write or edit operations inside a single tool call, eliminating intermediate turns.
  • ObservationPack: Converts large, repetitive tool outputs into persistent handles with paged retrieval capabilities, preventing identical data blobs from repeatedly inflating the context window.
  • Evidence-Preserving Reducer: Condenses multi-megabyte diagnostic and build logs into compact summaries, enforcing a contract where retained quotations must strictly match archived raw outputs before reaching the prompt.
  • Online Context Compact: Uses completed subtask boundaries to trigger context compaction runs, guided by economic criteria and context window pressure metrics.

Architecture and Safety Controls

SoL-Pi operates strictly as an extension rather than a customized fork. It relies entirely on Pi’s public extension interfaces and does not vendor or alter Pi’s core codebase. To maintain reproducibility and security, the system enforces several architectural invariants across all integrated tools:

  • Explicit Opt-In Configuration: All four mechanisms are disabled by default. Enabling features requires explicit declarative configuration inside a local sol-pi.json file.
  • Local Evidence Retention: Raw command outputs and full diagnostic logs are archived in dedicated session directories (<session-directory>/sol-pi/<session-id>/). If an automated log reducer fails verification, the uncompressed source output remains unmodified.
  • Native Runtime Management: Upstream Pi routines retain sole authority over model selection, authentication tokens, API endpoints, and host shell executions.

Empirical Results and Availability

Evaluations conducted across EdgeBench—a benchmark consisting of 51 long-horizon software engineering tasks—indicate that SoL-Pi delivers substantial operational savings. Under official API-equivalent pricing across supported model backends, the harness saves between $8.75 and $13.50 per hour compared to native Codex and Claude Code harnesses, and between $4.36 and $5.71 per hour compared to standard unextended Pi environments.

The SoL-Pi repository has been published under the MIT license on GitHub. Running the package requires Node.js version 22.19 or later alongside @earendil-works/pi-coding-agent version 0.84.2. NVIDIA Labs stated that external contributions aimed at token efficiency benchmarks will be evaluated on regular testing cycles.

Diagram: Architecture and workflow of NVIDIA Labs' SoL-Pi extension for the Pi harness, leveraging recursive research to optimize token usage.

Enjoyed this?

Get more posts like this delivered to your inbox.