cd /news/ai-agents/harness-engineering-through-configur… · home › topics › ai-agents › article
[ARTICLE · art-179523] src=huggingface.co ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Harness Engineering Through Configuration: What VAKRA Taught CUGA

CUGA, an open-source AI agent, raised its multihop task success rate from 19% to 52.8% on IBM's VAKRA benchmark with OpenAI's GPT-OSS-120B model by changing only its harness configuration, not the model, according to the CUGA team's enterprise blog post. The team added three configuration points — native function calling, a separate tool-selection step, and answer grounding — after its first run solved 12% of Tool Selection tasks versus 50.5% for a LangGraph ReAct reference agent on the same model. CUGA now outperforms the LangGraph ReAct agent across all four VAKRA capabilities, and the improvements are released as open-source reusable configuration options with VAKRA-specific integration kept in a separate adapter.

recommendation

Add a dedicated tool-selection step before exposing large, similar-looking API catalogs to the model, and use native function calling so the agent inspects each result before the next call; CUGA's multihop success rose from 19% to 52.8%.

more in playbook: Designing agent systems
by read9 min views5 publishedDec 1, 2026
Harness Engineering Through Configuration: What VAKRA Taught CUGA
Image: Hugging Face Blog

Text Generation • 117B • Updated • 2.21M • 5.59k

#

	Harness Engineering Through Configuration: What VAKRA Taught CUGA

Enterprise Article

TL;DR: How much can we improve an AI agent without changing its model? We tested CUGA, our open-source agent, on the VAKRA benchmark using GPT-OSS-120B. Instead of changing the model, we improved the agent harness: how it selects tools, executes multi-step tasks, and produces answers. These improvements are reusable configuration options, not benchmark-specific fixes. CUGA now outperforms a LangGraph ReAct agent using the same model across all four VAKRA capabilities. On multihop tasks, its success rate increased from 19% to 52.8%. All improvements are open source, with VAKRA-specific integration kept in a separate adapter.

#

	Why the harness matters for open-weight models

An agent is a model and a harness. The harness controls what the model sees, how the agent calls tools, and how it gives its final answer. Frontier models are more forgiving of a weak harness. Open-weight models in the 100B range often cannot, and many enterprises must use open-weight models for cost, privacy or on-premises deployment.

We wanted to know how much of the gap a harness can close when the model stays the same. VAKRA gave us a way to measure it.

#

	The starting point

VAKRA scores enterprise agents on four capabilities: business intelligence (BI) APIs, Tool Selection tasks, multihop tasks, and multihop tasks across many sources under policy. To keep the comparison fair, we compare CUGA with a reference agent that uses the same model: a LangGraph ReAct agent on GPT-OSS-120B.

Our first run used CUGA as it was, with no change. On a sample of tasks, CUGA solved 12% of the Tool Selection tasks and 19% of the multihop tasks. The reference agent solved 50.5% and 25.1%. Each failure that we examined pointed to the harness, not to the model.

#

	What VAKRA taught us

A model cannot select from hundreds of tools that look almost the same. VAKRA gives the agent a large catalog of APIs, and many of them have similar names and schemas. When all of them go into the prompt, the model selects the wrong tool or makes up arguments. Tool selection needs its own step before the model sees the catalog.

Code-first execution commits to a full chain of tool calls before it sees one result. By default, CUGA writes a short Python script that calls several tools in sequence. That works when the steps are independent. In a multihop task, each step needs the output of the step before it, so a script that the model writes in advance often uses wrong values. These tasks need the agent to look at each result before it takes the next step.

Here is a real task from the VAKRA training set: "In the nation where Harvard University is located, what is the percentage of female university students in 2016?" The task requires two sequential tools: one identifies the university's country, and the other retrieves the percentage for that country and year. In code-first mode, CUGA called both tools without inspecting the intermediate result. The first returned {"country_name": "United States of America"}, but CUGA passed the entire record to the second tool instead of extracting the country name. The lookup failed.

The answer must come from data that the model actually saw. Some runs found the correct data and then gave an answer in the wrong format, or an answer that the data did not support. When a run failed in the middle, the agent sometimes returned nothing that could be scored.

#

	Three new configuration points

Each lesson became a setting that any CUGA deployment can use.

1. Native function calling. This is a second execution mode, next to code-first execution. The agent makes one real tool call, examines the result, and then selects the next call. Use it for tasks that are a conversation with an API. This mode broke the ceiling on multihop tasks.

2. A configurable shortlister. The shortlister reduces the tool catalog to a small set of candidate tools before the model selects one. The strategy that it uses is now a setting for each deployment. You can choose one of three built-in strategies, or plug in your own: llm, where the model picks the tools (the default); embedding, a fast similarity search that needs no model call; and hybrid, where the similarity search shortens the list and then the model picks.

3. A final-answer pipeline. One controlled step produces the answer: a strict output format, deterministic cleanup, and retry gates. The agent gives an answer that you can score, also when the run fails before it finishes.


[advanced_features]
cuga_lite_execution_mode = "function_calling"    # default: "codeact" (code-first)
cuga_lite_step_discipline = "one_tool_per_step"  # default: "off"

[shortlister]
strategy = "embedding"  # default: "llm"; also "hybrid", or your own class
top_k = 128             # how many tools the similarity search keeps

[final_answer]
instructions = "Answer with the value only."  # how the model should write the answer
function = "my_package.clean_answer"          # your function that cleans the answer text

Which change helped most? We estimate about 45% of the gain from function calling, 30% from the shortlister, 20% from the final-answer pipeline, and 5% from smaller changes.

#

	Why this matters for enterprise automation

CUGA is a harness for enterprise automation, where an agent does work across business systems. VAKRA is useful to us because its tasks have the same shape as that work. Each configuration point maps to a problem that enterprise teams have:

What VAKRA tests The problem in enterprise automation The CUGA setting
Hundreds of APIs with similar names and schemas Enterprise systems expose large API catalogs, with many versions of one operation. Configurable shortlister
Multihop tasks, where each step uses the output of the step before A business process reads a record, makes a decision on it, and then writes to the next system. Native function calling
An answer that a scorer must read A downstream system or a person must accept the output with no manual cleanup. Final-answer pipeline
Multihop tasks across many sources, under policy Automation must obey written rules on data and actions. All three, together

Capability 4 is the closest to real enterprise work: many sources, many steps, and a policy to obey. It is also the capability where CUGA on GPT-OSS-120B scores higher than GPT-5.5 with a ReAct agent, 33.4% against 28.8%. All scores on capability 4 are low, so this capability is not solved.

As each fix is a setting, an enterprise team does not have to write a new harness for each workflow. A team can select code-first execution for independent steps and function calling for a chain of dependent steps, in the same deployment.

#

	Results

These are the final results on the VAKRA test set. CUGA and the reference agent both use GPT-OSS-120B.

Capability CUGA, first run Reference agent CUGA, now
1 · BI APIs ~20% * 41.9% 47.2%
2 · Tool Selection 12% 50.4% 67.9%
3 · Multihop 19% 27.9% 52.8%
4 · Multihop, many sources, with policy ~16% * 18.7% 33.4%
  • The first-run scores for capabilities 1 and 4 are estimates.

Relative to the LangGraph ReAct reference agent, the largest gains are on multihop tasks (+24.9 percentage points), followed by Tool Selection (+17.5 points) and multihop under policy (+14.7 points). On BI APIs, the gain is the smallest (+5.3 points).

Figure 1. VAKRA task success by capability. Hatched bars are estimates.

#

	What the numbers do not show

The results come from one benchmark and one model, and they have limits.

A frontier model still does better on most capabilities. GPT-5.5 with a ReAct agent scores 50.3%, 72.2% and 54.7% on capabilities 1 to 3. CUGA on GPT-OSS-120B scores higher only on capability 4, with 33.4% against 28.8%. A better harness made the gap to the frontier model smaller on an open-weight model. It did not remove the gap.

Some numbers are estimates. The first-run scores for capabilities 1 and 4 are estimates, so the gain on those two is approximate. The split of the gain between the three configuration points is also an estimate, because we did not test each one alone.

How VAKRA scores a task: VAKRA runs the agent's tool calls again and checks two things. First, the answer must be correct: either the tool calls returned all the data that the reference solution uses, or a judge model (GPT-OSS-120B at temperature 0) decides that the answer matches the expected answer. Second, the answer must be grounded: the judge model checks that the data from the tools supports the answer. On capability 4, a rule-based check also fails a dialogue in which the agent broke a tool-use policy. Each score in this post is from a single run.

#

	Configuration, not benchmark code

The core of CUGA contains no code that is specific to VAKRA. All of the work is merged into cuga-agent and cuga-eval. The changes to CUGA are merged into cuga-agent, in 15 pull requests. The three configuration points are #777 (function calling), #664 (shortlister) and #707 (final answer). The parts that are specific to VAKRA are in an open adapter in cuga-eval.

This is the reason that we call the work harness engineering through configuration. The next benchmark, or the next deployment, starts with these settings, and it does not need a new harness. Each new benchmark still needs setup work, but for CUGA it is now a repeatable sequence: study the tasks, connect the tools, configure the agent, adapt what does not fit, and iterate.

To keep the gains, pull requests to CUGA run against regression splits of the benchmarks. A change that makes the agent worse on VAKRA fails before it merges.

#

	Related reading

	On CUGA

	On VAKRA

#

	Acknowledgements

The CUGA team designed and built the configuration changes in this post. The VAKRA team helped them understand the nature of the tasks and evaluated the intermediate results during the work.

── more in #ai-agents 4 stories · sorted by recency
── more on @cuga 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/harness-engineering-…] indexed:0 read:9min 2026-12-01 · —