AI工具Score B (57)

Harness Engineering Through Configuration: What VAKRA Taught CUGA

24 小时前9 viewsSource: HuggingFace Blog

Harness Engineering Through Configuration: What VAKRA Taught CUGA

Enterprise Article
Published December 1, 2026

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"    
cuga_lite_step_discipline = "one_tool_per_step"  

[shortlister]
strategy = "embedding"  
top_k = 128             

[final_answer]
instructions = "Answer with the value only."  
function = "my_package.clean_answer"          

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).

vakra-results

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 exp

Read the full original article:

HuggingFace Blog