Skip to main content
Back

Cyber Monday Deal: Get 20% off all AlphaSignal Pro subscriptions. Subscribe here. Use discount code LAUNCH2026. Ends soon.

How to choose an agent harness for your workload

Your agent harness is an architectural decision that directly dictates task success and API costs. Here is how to match it to your workload.

Paper, Full Access
  • A study of 176 configurations across four models found that the optimal action interface is model-dependent: dedicated file/edit tools raised Nemotron-3 30B's SWE-Bench success from 10.2% to 25.2%, while Nemotron-3 550B performed better with a Bash-only shell that lets it combine operations into fewer calls.
  • Explicit persistent plans primarily help weaker models complete multi-step tasks by tracking remaining steps, while for stronger models they mainly reduce verification turns and cost with slight success-rate decreases.
  • Context management research shows the primary value is preventing context-limit overflows; removing older tool outputs before summarizing outperforms adding a retrieval tool, as models rarely use the retrieval option when it is available.
  • Mechanisms like Action Fusion (combining an edit and follow-up command in one tool request) and deferred large-output delivery (SoL-Pi's ObservationPack) can reduce API costs by roughly 33% with only a small accuracy trade-off on reported benchmarks.
  • The article recommends validating harness candidates on actual task types—including failure attempts and interruptions—tracking cost per successful task rather than average benchmark scores, and recording exact configurations for retesting when the model or workload changes.

An agent stuck in a loop trying to execute a bad shell command will burn through your API budget while accomplishing nothing. When you choose an agent harness, you decide how the model turns a request into actions. You choose which tools it can call, which information it retains when the context window becomes very long, and how it responds when you interrupt it. Those choices affect whether it completes the work and what each attempt costs.

The requirements differ by task. An agent that repairs repository issues overnight must edit files, run tests, and retain enough state to finish without help. A research assistant must preserve access to sources and accept corrections while a lookup runs. A benchmark score alone cannot tell you whether a harness meets those requirements.

Our HarnessTax analysis examines how harness choice changes cost and performance. Recent research examines the mechanisms behind those differences. One study of 176 configurations finds that dedicated tools help one model while a shell interface works better for another. Its results, alongside research on context management and execution, give you specific choices to examine before you shortlist a harness.

Choose an Action Interface Your Model Can Use

A file edit illustrates the first decision. With a dedicated edit tool, the model supplies a path and a replacement. With a shell, it must express the operation as a command or script. The shell offers flexibility, while the dedicated interface can package checks and error messages around a narrower operation.

The aforementioned study tests 176 settings across four models on SWE-Bench Verified and Terminal-Bench 2.1. For Nemotron-3 30B, dedicated tools raise SWE-Bench success from 10.2% to 25.2% versus Bash-only. In the shell condition, the model sometimes emits calls to unavailable tools. Nemotron-3 550B instead benefits from Bash-only and combines operations into fewer calls. These comparisons use a 128k window with plans and staged context management; interface checks also differ.

A call to a nonexistent tool fails before any command reaches the environment. Conversely, an interface that forces each operation into a separate request adds calls when the model can already express the sequence in a script.

For repository repair, prefer explicit file and edit tools if your model struggles to translate operations into shell commands. Consider a smaller shell-centered interface when the model already handles your repository tasks reliably. Tool count alone cannot establish either condition.

A research assistant may need tools for source lookup, document retrieval, and citation extraction. An advantage on terminal tasks gives you little reason to remove those interfaces. Choose tools around the actions your task requires, then examine whether the model uses them correctly.

Decide what an explicit plan needs to accomplish

An explicit plan adds state outside the model's next response. It can record which steps remain, which checks pass, and what must happen before completion.

The harness study finds that its persistent plan helps Nemotron-3 30B reach edits instead of stopping early. For the stronger Nemotron and Mistral models, it mainly reduces verification turns and cost, with small success-rate decreases.

For an automated bug fix, the agent's plan can track three steps: reproduce the bug, apply a patch, and run tests. If the agent stops after diagnosis, the plan shows that the patch is still missing. If it repeats tests that already pass, the recorded result tells it that verification is complete. Test whether the agent uses this record to finish incomplete steps and avoid repeated work.

If your agent skips steps or repeats completed work, choose a harness that lets you inspect its plan and task status. For an interactive assistant, check whether it updates the plan when you change the request or continues to follow the old one.

Choose what survives a long task

A repository agent may need one error message from a long test log. A research assistant may need the exact wording of an earlier source after its question changes. Your context policy determines whether the model can still access those details.

The harness study finds that context management helps mainly because it prevents the conversation from exceeding the model's context limit. In its experiments, the most efficient approach removes older tool outputs before it summarizes the remaining history. A tool to retrieve earlier information adds no average accuracy gain over removal alone. The models rarely use it.

Agentic Context Management, or ACM, gives the agent two tools. manage_context summarizes earlier messages and stores the originals in an archive. query_memory retrieves information from that archive. This reduces the text in the model's active context and preserves access to the full messages.

ACM also trains the model to use these tools. A teacher model reviews the student model's task attempts and identifies when it should manage context or skip an unnecessary memory call. The student learns from the corrected examples. Because ACM includes this extra training, you cannot compare the two studies directly to decide which memory approach works best.

Choose what to retain based on the task. Remove tool output that you can reproduce at little cost. If you use summaries, specify which details they must preserve. If the agent needs to revisit earlier evidence, keep the original content and test whether it can retrieve and use the relevant details.

After an agent fixes a bug, it may no longer need the full build log. It still needs the code changes and final test result. A research assistant may need an exact passage from an earlier source to answer a follow-up question. A summary can omit a condition or exception that changes the answer, so preserve the source text and test whether the agent can retrieve that passage.

Understand what the next model call contributes

Once the model has enough information to act, the harness decides how much work happens before it returns control.

SoL-Pi lets the agent edit a file and run a follow-up command in one tool request. It calls this mechanism Action Fusion. For example, if the agent already knows which test to run after an edit, it can request both steps at once. This removes the model call between them. If the next action depends on the edit's result, the agent must inspect that result first.

SoL-Pi also reduces how often it sends large tool outputs, such as test logs, to the model. It stores the full output and includes it in the next two API requests. After that, it sends a short excerpt and a reference ID that the agent can use to retrieve the original text. SoL-Pi calls this mechanism ObservationPack.

SoL-Pi's full efficiency configuration also compacts context and reduces log output. In its reported EdgeBench comparison with GPT-5.6 Sol, API cost falls from $1,339 to $894, while the average score falls from 44.8 to 42.0.

For a repository task, you can combine a file edit with a test command you already know you need to run. Keep a separate model call between diagnosis and repair so the agent can inspect the diagnostic result before it chooses a fix.

Unreal Agent addresses another execution pattern. Its launch post describes an immediate in-progress event when a tool starts, followed by a final result after background execution completes. It also describes support for user instructions while tools remain active.

Unreal Labs reports up to 40% lower cost than Codex and attributes savings to both asynchronous execution and a smaller harness footprint. Its Terminal-Bench comparison uses a Codex leaderboard baseline, so the result does not isolate the asynchronous mechanism.

Suppose a document lookup takes time and you narrow the question before it returns. The application needs to accept that instruction, decide whether the old lookup remains relevant, and prevent an obsolete answer. Check how the harness passes the correction to the agent before it processes the lookup result.

On cancellation, the interface might stop its response while a tool continues elsewhere. Decide whether you require the underlying operation to stop, or whether it may finish with its result discarded. Test the behavior your application promises.

Turn these choices into a shortlist

Compare each candidate with the model, tools, context policy, permissions, and session behavior you intend to deploy.

The two example workloads require different checks:

DecisionUnattended repository repairInteractive research assistant
Action interfaceReliable file edits and commands with your chosen modelSource lookup, document retrieval, and evidence references
Progress stateTrack repair and verification through completionRevise pending work when the question changes
ContextRetain constraints and current test evidence; compact disposable outputPreserve access to exact source text for later questions
ExecutionCombine known edit/test sequences where supportedAccept new instructions during slow, independent lookups
RecoveryResume without duplicate edits or external actionsRestore the question, sources, and outstanding work

A required model, deployment interface, or permission boundary can eliminate a candidate immediately. If you must write your own recovery layer, count that implementation work alongside the API bill.

Use project documentation to identify candidates with the relevant mechanisms. Mark an undocumented behavior as unresolved. Record which version and configuration supports each required behavior.

Validate the choice on a small set of tasks

Compare two candidates on the same tasks:

  • Define success before you run the tests. For repo repair, use a fresh checkout and independent tests. For research, check whether sources support the claims and citations. Include long tasks and interruptions if your application requires them.
  • Match the conditions. Use the same model settings, permissions, inputs, and run limits where possible. Record any differences. If each harness requires a different model, describe the result as a comparison of complete configurations.
  • Repeat tasks and keep failed attempts. Report success rate, total API spend, elapsed time, and human interventions. Include the cost of failed attempts when you calculate cost per successful task.
  • Inspect where results differ. Review tasks that only one candidate completes. Identify what causes the other to fail before you choose based on an average score.
  • Record the choice and retest after changes. Save the selected configuration and the trade-off you accept. Reserve tasks that you do not use to tune it, and rerun them when the model, harness, or workload changes.