A team of researchers has demonstrated that refining the execution harness—the framework that controls how an AI agent selects tools and processes tasks—can dramatically boost performance without altering the underlying model. Their open-source agent, CUGA, achieved a 52.8% success rate on multihop tasks in the VAKRA benchmark, up from just 19%, using the same GPT-OSS-120B model. The improvements came from three configurable settings: native function calling, a shortlister to narrow tool options, and a final-answer pipeline to standardize outputs.
"A model cannot select from hundreds of tools that look almost the same." — IBM Research team, describing the challenge of tool selection in enterprise automation.
The Harness: The Hidden Engine of AI Agent Performance
An AI agent is only as good as its harness—the system that governs how the model interacts with tools, processes data, and delivers answers. While frontier models like GPT-5.5 can tolerate weaker harnesses, open-weight models in the 100B range often struggle without fine-tuned execution frameworks. The IBM Research team set out to measure how much of the performance gap could be closed by refining the harness alone.
Their testbed was VAKRA, a benchmark that mirrors real enterprise workflows: agents must navigate complex API catalogs, chain multiple tool calls, and produce answers that downstream systems can process. To isolate the harness’s impact, they compared CUGA—a lightweight, open-source agent—against a LangGraph ReAct agent, both using the same GPT-OSS-120B model.
The initial results were sobering. On a sample of tasks, CUGA solved only 12% of tool selection challenges and 19% of multihop tasks, while the reference agent achieved 50.5% and 25.1%, respectively. A deep dive into the failures revealed a clear pattern: the model’s limitations were secondary to the harness’s flaws.
Three Configurations That Unlocked Breakthrough Gains
The team identified three critical weaknesses in the original harness and transformed them into configurable settings that any CUGA deployment can now leverage.
1. Native function calling
The default "code-first" execution mode in CUGA writes a Python script that calls multiple tools in sequence. While efficient for independent steps, this approach fails in multihop tasks where each step depends on the output of the previous one. The solution? Native function calling, which forces the agent to execute one tool call at a time, inspect the result, and then select the next tool. This mode alone accounted for nearly half of the performance gains.
2. A configurable shortlister
Enterprise systems often expose hundreds of APIs with similar names and schemas, overwhelming the model’s prompt context. The shortlister reduces this catalog to a manageable subset before the model makes its selection. Teams can choose from three built-in strategies:
- llm: The model picks the tools (default).
- embedding: A fast similarity search that requires no model call.
- hybrid: Combines embedding with model-based selection.
3. A final-answer pipeline
Inconsistent answer formats and unsupported claims plagued early runs. The final-answer pipeline enforces a strict output format, cleans the text deterministically, and includes retry mechanisms to ensure scorable results—even when the run fails mid-process. This setting alone contributed roughly 20% of the total gains.
From Benchmark to Boardroom: Why Harness Matters for Enterprises
The lessons from VAKRA translate directly to real-world enterprise automation, where agents must navigate sprawling API ecosystems, chain dependent tasks, and deliver outputs that machines—or humans—can trust. The three configuration points address universal pain points:
| VAKRA Challenge | Enterprise Pain Point | CUGA Solution |
|---|---|---|
| Hundreds of similar APIs | Overwhelmed models selecting the wrong tool | Configurable shortlister |
| Multihop tasks with dependencies | Business processes requiring sequential decisions | Native function calling |
| Inconsistent answer formats | Downstream systems rejecting unstructured outputs | Final-answer pipeline |
| Policy-compliant multihop tasks | Automation must adhere to data and action rules | All three settings, combined |
The most striking result came in VAKRA’s fourth capability, which tests multihop tasks across many sources under policy constraints—the closest proxy to real enterprise work. Here, CUGA achieved a 33.4% success rate, surpassing a GPT-5.5-powered LangGraph ReAct agent (28.8%), despite using the same underlying model. While the absolute scores remain modest, the relative improvement underscores the harness’s potential to bridge the gap between open-weight models and enterprise-grade performance.
Open Source, Reusable, and Ready for Deployment
All improvements are available as open-source configuration options in CUGA, allowing enterprises to mix and match settings based on their workflows. A team could, for example, use code-first execution for independent steps and switch to function calling for dependent tasks—all within the same deployment. The settings are defined in a simple TOML file, making them easy to customize without rewriting the harness for each new project.
The full results on the VAKRA test set highlight the harness’s transformative impact:
| Capability | CUGA (Initial) | Reference Agent | CUGA (Improved) |
|---|---|---|---|
| 1 · Business Intelligence APIs | ~20% | 41.9% | 47.2% |
| 2 · Tool Selection | 12% | 50.4% | 67.9% |
| 3 · Multihop Tasks | 19% | 27.9% | 52.8% |
| 4 · Multihop, Many Sources, with Policy | ~16% | 18.7% | 33.4% |
The largest gains were in multihop tasks (+24.9 percentage points) and tool selection (+17.5 points), demonstrating that harness refinements can unlock capabilities previously thought to require model upgrades. For enterprises constrained by cost, privacy, or on-premises deployment, this approach offers a path to higher performance without sacrificing control over their AI stack.