CUGA Agent Framework: Improving Performance via Harness Configuration
Harness Engineering as a Performance Driver
AI agent performance is determined by both the underlying model and the harness—the system that manages tool selection, task execution, and response formatting. By focusing on harness configuration instead of model modification, the CUGA project achieved substantial performance gains on the VAKRA benchmark using the GPT-OSS-120B model. These improvements are reusable, configuration-based settings that allow open-weight models to perform more effectively in complex, multi-step enterprise environments.
The Performance Gap and VAKRA
To measure the impact of harness engineering, researchers compared CUGA against a standard LangGraph ReAct agent using the same GPT-OSS-120B model. Initial testing revealed that CUGA underperformed on key metrics, solving only 12% of Tool Selection tasks and 19% of multihop tasks. Analysis indicated that these failures were rooted in the harness's inability to handle large tool catalogs and sequential task dependencies, rather than limitations of the model itself.
Key Configuration Improvements
Based on insights from the VAKRA benchmark, the team implemented three primary configuration points to address common failure modes:
- Native Function Calling: This mode replaces "code-first" execution, which often failed to inspect intermediate results in multi-step tasks. By enabling the agent to execute one tool call, evaluate the output, and then decide the next step, the success rate for multihop tasks improved from 19% to 52.8%.
- Configurable Shortlister: To prevent models from struggling with large catalogs of similar APIs, the shortlister reduces the tool set before the model makes a selection. Users can choose between LLM-based selection, fast embedding-based similarity search, or a hybrid approach.
- Final-Answer Pipeline: This component enforces strict output formatting, deterministic cleanup, and retry logic, ensuring that the agent provides a scorable, grounded answer even if specific execution steps encounter issues.
Implications for Enterprise Automation
These configuration points directly address common enterprise challenges, such as navigating large API catalogs, managing dependent business processes, and ensuring output quality for downstream systems. While frontier models still generally outperform open-weight models, these harness optimizations significantly narrow the performance gap. Notably, on VAKRA's most complex capability—multihop tasks across many sources under policy—CUGA on GPT-OSS-120B achieved a 33.4% success rate, outperforming a GPT-5.5 ReAct agent at 28.8%.
Methodology and Reproducibility
All improvements are integrated into the open-source CUGA framework as reusable settings rather than benchmark-specific patches. The team maintains these gains by running regression tests against benchmark splits, ensuring that new updates do not degrade performance. The VAKRA-specific integration is maintained in a separate, open adapter, keeping the core CUGA framework modular and applicable to diverse deployment scenarios.