Afnio 0.4 + Afnio plugin coming soon join the waitlist
← Back to blog
· Piergiacomo De MarchiResearchAgent HarnessBenchmarks

Train the Context, Not the Weights

Hill Climbing as a Plug-in for Any Agent

Summary

Agents can get dramatically better without new weights. They need a better harness: the prompts, tools and skills around the model. Afnio is a training engine for that harness: from a small set of a team's own tasks, it learns a harness that does better on new tasks in the same environment. It treats an agent as a computational graph, sends feedback backwards to find exactly which piece caused each failure, and rewrites that piece, much like PyTorch trains a neural network. No GPUs, no access to the weights, any model. Afnio is built to plug into the agent you already have. It ships as an open-source SDK, with training on our servers or yours.

These are preliminary results from our first experiments, and four things stood out:

  1. Matches reinforcement learning on the weights. On the same model and benchmark as Surge AI's RL study, training only the context matched the gain of RL on the weights, with no GPUs. It nearly tripled the share of tasks solved. Afnio learned from finance, marketing, operations and support tasks, never sales, yet its gains transferred to sales.
  2. Training the harness lifts every model, even at max reasoning. Every model we tested improved at every reasoning setting. With no reasoning, DeepSeek V4.1 Flash with an Afnio-trained harness matches its own stock harness at max reasoning. Unlike reasoning, a trained harness is paid for once, then reused on every run.
  3. No stronger teacher is needed. When GPT-6 Astra at max reasoning optimizes a harness that also runs Astra at max reasoning, the score still rises by 11 points, from 56 to 67. GPT-5.4 mini likewise improves a harness that runs GPT-5.4 mini.
  4. Afnio beats specialist optimizers. On SearchQA, its gain is larger than those of Microsoft's SkillOpt and Stanford's GEPA.
Training the harness lifts every model, even at max reasoningPass rate on 100 held-out AutomationBench sales tasks (%)
  • Stock harness
  • Gain from the Afnio-trained harness
020406080GPT-5.6 Luna · max reasoning — Stock harness: 27.8%GPT-5.6 Luna · max reasoning — Afnio-trained: 37.8% (+10.0)37.8+10.0DeepSeek V4.1 Flash · max reasoning — Stock harness: 42.3%DeepSeek V4.1 Flash · max reasoning — Afnio-trained: 58.5% (+16.3)58.5+16.3Sonnet 5.5 · max reasoning — Stock harness: 54.0%Sonnet 5.5 · max reasoning — Afnio-trained: 61.0% (+7.0)61.0+7.0GPT-6 Astra · max reasoning — Stock harness: 56.0%GPT-6 Astra · max reasoning — Afnio-trained: 67.0% (+11.0)67.0+11.0GPT-5.6 Lunamax reasoningDeepSeek V4.1 Flashmax reasoningSonnet 5.5max reasoningGPT-6 Astramax reasoning

AutomationBench, 100 sales tasks · max reasoning, all four models

The problem: improving an agent is guesswork

Take an AI agent that handles everyday office work, on a real task from Zapier's AutomationBench: a simulated company of 47 apps and about 500 API endpoints, which the agent has to find on its own. It's asked to send this week's sales pipeline update to the team, in the same format as last week's. It queries Salesforce for open deals, finds five, and emails a total of $572,000. An independent evaluator, which checks the final result, marks it wrong: the right answer is four deals and $522,000.

Which part is to blame? The email is well formatted, and the sum is correct for the deals it found. But one of the five, Sandbox Corp, is an internal test deal, and a note in Salesforce says to exclude it from pipeline reports. The agent never looked at notes. The failure shows up in the last step, but its cause sits much earlier: the agent acted before checking the rules that applied. Fix the email template and the same mistake comes back next week.

Today, finding that root cause is mostly ad hoc: an engineer, or a coding agent, reads long traces, forms a hypothesis and patches the harness: a prompt here, a tool description there. But agent traces are often too long and tangled, even for coding agents. The result is slow iteration and fixes that address symptoms rather than causes.

This is a credit-assignment problem: given a failure at the end of a long chain of steps, which step should change?

The idea: treat the agent as a graph

Every run of an agent is a graph: model calls, tool calls, skill loads and subagents, each consuming the outputs of the steps before it. In the pipeline report, the email at the end depends on what the agent chose to read at the start.

Neural networks solve credit assignment with backpropagation: the error at the output is sent backwards through the network, and each weight learns how much it contributed. Afnio applies the same idea to text. Every prompt, tool description and skill is a trainable variable. When an evaluator that checks the final result flags a failure, Afnio sends written feedback — a textual gradient — backwards through the graph, and finds which components contributed to the error. Afnio's optimizer then rewrites the components that need to change.

Because the feedback flows along the actual structure of the run, Afnio can tell a symptom from a cause. In the pipeline example, the error shows up in the email, but it starts earlier, at the step that decided what to read before acting. That step is what Afnio rewrites.

Afnio repeats this in a loop: on a training set, it proposes candidates (versions of the harness with one or more parts rewritten), then scores them on a separate validation set and keeps the best one. The model's weights are never touched, so the same approach works for open-weight and closed models alike.

Lessons from past runs are kept in a reasoning bank, so what Afnio learns on one task can carry over to others. For these experiments we used hill climbing, our simplest selection strategy.

Afnio traces a failed run back to its root causeIllustrative agent run with a subagent
root cause: handoff skilleval: “wrong account”LLMload_skillLLMlookupLLMfetchLLMevalsubagentLLMload_skillLLMsearchLLMupdate“two Acmes found”“name, not ID”timeprompttoolskillinput & tool outputs

Illustrative agent run with a subagent · not from our experiments

Training the harness lifts every model, even at max reasoning

Every model we tested improved at every reasoning setting, and for DeepSeek V4.1 Flash, GPT-5.6 Luna and GPT-6 Astra the gain roughly doubled at max reasoning.

We ran our main experiments on AutomationBench, the benchmark behind the pipeline example. Tasks are graded strictly: a task passes only if every check on the final state passes. We trained on 90 tasks from four other departments (finance, marketing, operations and support), selected on 20 validation tasks from the same four, and tested on all 100 tasks of the sales department, a held-out set the optimizer never saw. Training on part of a benchmark isn't standard practice, and we know it. We did it here because the benchmark stands in for a company's own environment, which is where Afnio is meant to train: the agent learns from a small set of the team's own past tasks, then handles new ones. The goal is to specialize an agent to its environment, not to memorize past tasks. To check that the gain isn't tied to AutomationBench, we also ran an ablation.

We kept Zapier's own harness as the baseline and trained it with Afnio twice for each model: once with reasoning at its lowest setting, and once at max. That shows whether a trained harness only makes up for missing reasoning, or adds something on top of it.

ModelReasoningStock harnessAfnio-trained harnessGain
DeepSeek V4.1 Flashnone33.8 ± 3.141.8 ± 4.9+8.0
DeepSeek V4.1 Flashmax42.3 ± 7.458.5 ± 3.7+16.3
GPT-5.6 Lunanone4.8 ± 2.210.0 ± 2.2+5.3
GPT-5.6 Lunamax27.8 ± 2.137.8 ± 1.0+10.0
GPT-6 Astralow43.5†50.0*+6.5
GPT-6 Astramax56.0*67.0*+11.0
Claude Sonnet 5.5low22.0*35.0*+13.0
Claude Sonnet 5.5max54.0†61.0*+7.0

*Single run because of cost. †Mean of two runs.

Three things stand out. First, for DeepSeek, Luna and Astra the gains grow with reasoning (DeepSeek from +8.0 to +16.3, Luna from +5.3 to +10.0, Astra from +6.5 to +11.0): a better harness makes extra reasoning pay off more, not less. Second, on DeepSeek V4.1 Flash, an open-weight model, the trained harness with no reasoning (41.8) essentially matches the stock harness at max reasoning (42.3). Third, at max reasoning, DeepSeek V4.1 Flash with an Afnio-trained harness (58.5) beats the frontier models GPT-6 Astra (56.0) and Claude Sonnet 5.5 (54.0) on the stock harness, at a fraction of the per-token price. With no reasoning, our smallest model, GPT-5.6 Luna, is simply not strong enough for most of these tasks, though its pass rate still doubles, from 4.8% to 10.0%. And Afnio clearly improves how it works: its partial credit, the share of each task's checks it completes, rises from 26.4% to 38.0% (see the Appendix).

This matters because reasoning effort is an expensive dial. Recent work by Sun et al. (2026) shows that raising it multiplies cost on every call and does not reliably help on individual tasks. Training the harness is a different lever: it is paid for once and then reused on every run. We leave a full cost analysis out of scope for this post.

Training the harness lifts every model at both reasoning settingsPass rate on 100 held-out AutomationBench sales tasks (%)
  • Stock harness
  • Gain from the Afnio-trained harness
  • Stock harness at max reasoning
020406080GPT-5.6 Luna · none reasoning — Stock harness: 4.8%GPT-5.6 Luna · none reasoning — Afnio-trained: 10.0% (+5.3)+5.3noneGPT-5.6 Luna · max reasoning — Stock harness: 27.8%GPT-5.6 Luna · max reasoning — Afnio-trained: 37.8% (+10.0)+10.0maxDeepSeek V4.1 Flash · none reasoning — Stock harness: 33.8%DeepSeek V4.1 Flash · none reasoning — Afnio-trained: 41.8% (+8.0)+8.0noneDeepSeek V4.1 Flash · max reasoning — Stock harness: 42.3%DeepSeek V4.1 Flash · max reasoning — Afnio-trained: 58.5% (+16.3)+16.3maxSonnet 5.5 · low reasoning — Stock harness: 22.0%Sonnet 5.5 · low reasoning — Afnio-trained: 35.0% (+13.0)+13.0lowSonnet 5.5 · max reasoning — Stock harness: 54.0%Sonnet 5.5 · max reasoning — Afnio-trained: 61.0% (+7.0)+7.0maxGPT-6 Astra · low reasoning — Stock harness: 43.5%GPT-6 Astra · low reasoning — Afnio-trained: 50.0% (+6.5)+6.5lowGPT-6 Astra · max reasoning — Stock harness: 56.0%GPT-6 Astra · max reasoning — Afnio-trained: 67.0% (+11.0)+11.0maxGPT-5.6 LunaDeepSeek V4.1 FlashSonnet 5.5GPT-6 Astra

AutomationBench, 100 sales tasks · both reasoning settings, all four models

Setup: pass rates on the 100 sales tasks, mean ± standard deviation over 4 runs per setup unless marked.

No stronger teacher needed

When the optimizer and the agent are the same model, at the same max reasoning setting, the trained harness still scores 11 points higher.

In all our AutomationBench experiments, Afnio's optimizer runs on GPT-6 Astra at max reasoning. When it trains a harness for a smaller model like GPT-5.6 Luna or DeepSeek V4.1 Flash, part of the gain could come from a stronger model passing on what it knows. That is a fair objection, and this experiment is designed to answer it.

Here the agent itself is GPT-6 Astra at max reasoning, the strongest setup we tested. There is no stronger model in the loop.

The gain on Astra cannot come from a stronger teacher. It comes from finding and fixing what the stock harness gets wrong. Even at max reasoning, the frontier model was held back by that harness, not by its weights. The same holds beyond Astra: GPT-5.4 mini improved a harness that runs GPT-5.4 mini on SearchQA. A stronger optimizer may add more on top; we haven't compared the two on the same agent yet.

Astra at max optimizing a harness that runs Astra at max still gains 11 pointsGPT-6 Astra at max reasoning, pass rate on 100 held-out sales tasks (%)
Stock harnessStock harness: 56.0% of 100 sales tasks passed56.0Afnio-trained harnessAfnio-trained harness: 67.0% of 100 sales tasks passed, a gain of 11.0 points67.0+11.0

Optimizer and agent are the same model at the same setting.

AutomationBench, 100 sales tasks · GPT-6 Astra, max reasoning, single runs

Context versus weights

On the same model and benchmark, training the context matched the gain of reinforcement learning on the weights.

In a recent paper from Surge AI, Mehta and Chen (2026) trained NVIDIA's Nemotron 3.5 Super with reinforcement learning on Tinker, using a LoRA adapter and their own expert-built tool-use dataset. On AutomationBench's sales department, the pass rate rose from 7.0% to 22.0%, a gain of +15.0 points (95% interval +7 to +23). Notably, they found the trained model learned to look before acting: to check the inbox, Slack and spreadsheets for the task's data and rules before changing anything.

We ran Afnio on the same model, Nemotron 3.5 Super, on the same 100 sales tasks, training its prompts, tool descriptions and skills. Surge reported a single evaluation run for each model. To account for run-to-run noise, we evaluated both our baseline and Afnio's best checkpoint three times each and report the mean and standard deviation. Our baseline scored 6.7 ± 1.2 (runs of 8, 6 and 6), close to Surge's 7.0. Afnio scored 18.7 ± 3.5 (runs of 15, 19 and 22), a gain of +12.0 points (95% interval +7 to +18), with no fine-tuning.

Our best run reached 22.0, the same score as Surge's single run of the RL-trained model. Taking that best of our three runs alone, one run against one run, the gain is +15.3 points (95% interval +8 to +23), in line with Surge's +15.0 points (95% interval +7 to +23).

ApproachTraining dataSales: baselineSales: trainedGain [95% CI]
RL on the weights
(Surge AI)
Private expert-built tool-use tasks7.022.0
(single run)
+15.0 [+7, +23]
Afnio on the context90 AutomationBench tasks from finance, marketing, operations and support6.7 ± 1.2
(runs: 8, 6, 6)
18.7 ± 3.5
(runs: 15, 19, 22)
+12.0 [+7, +18]

The two setups are not identical, and we don't want to overstate the comparison. Both are transfer results: neither method saw a single sales task during training. Surge trained on their own tool-use dataset and tested on AutomationBench; we trained on the other departments of AutomationBench and tested on sales. What the comparison does show is that training the context matches the gain of RL on the weights, while Afnio learns from just 90 tasks (the kind a team already has) and needs no GPUs, no access to the weights and no RL infrastructure, and works just as well on closed models that can't be fine-tuned at all.

The two approaches aren't mutually exclusive, though: context training can run on top of an RL-tuned model, and the gains may stack. We haven't tested that yet. Training the context is also far more sample-efficient: Agrawal et al. (2025) found that learning from written feedback can beat RL with up to 35 times fewer rollouts.

Afnio's gain on Nemotron is on par with RL on the weightsGain in pass rate on 100 AutomationBench sales tasks (points), with 95% intervals
0+5+10+15+20+25points gainedRL on the weights (Surge AI)single runRL on the weights (Surge AI): +15.0 points, 95% interval +7 to +23+15.0 [+7, +23]Afnio on the contextmean of 3 runsAfnio on the context: +12.0 points, 95% interval +7 to +18+12.0 [+7, +18]Afnio, best runbest of 3 runsAfnio, best run: +15.3 points, 95% interval +8 to +23+15.3 [+8, +23]

Nemotron 3.5 Super, max reasoning · paired task bootstrap, 10,000 resamples · Surge AI figures from Mehta and Chen (2026)

How Afnio compares with existing optimizers

On SearchQA, Afnio's gain is larger than those of two specialist optimizers, Microsoft's SkillOpt and Stanford's GEPA.

Each targets one part of an agent. SkillOpt (Yang et al., 2026) rewrites an agent's skills, and GEPA (Agrawal et al., 2025), part of DSPy, evolves prompts. We compared them on SearchQA, a question-answering benchmark from the SkillOpt paper.

SearchQA is close to its ceiling at this level, as the SkillOpt authors note, so even a few points are hard to win. On SearchQA, the SkillOpt and GEPA results are taken from the SkillOpt paper, which used the same agent model, gpt-5.4-mini. We used the same train and test split as the SkillOpt paper, and all three SearchQA gains are measured against its baseline of 75.9. Unlike the specialists, Afnio does not need to be told which part to optimize: it decides from the feedback which prompts, tools or skills to change.

Afnio gains more than the specialist optimizers on SearchQAPoints gained over the same baseline, gpt-5.4-mini agent
SearchQAGEPAGEPA: 75.9 → 79.4, a gain of 3.5 points+3.5SkillOptSkillOpt: 75.9 → 80.2, a gain of 4.3 points+4.3AfnioAfnio: 75.9 → 82.7 ± 0.3, a gain of 6.8 points+6.8

SearchQA · all gains measured from the same 75.9 baseline · SkillOpt and GEPA from Yang et al. (2026) · full scores in the Appendix

Setup: the agent runs gpt-5.4-mini at medium reasoning effort, and the optimizer is gpt-5.4-mini itself. Metric: exact match. Afnio: mean ± standard deviation over three runs; GEPA and SkillOpt: as published. Details in the Appendix.

What the optimizer actually changed

To see what changed, we compared runs of the same model, DeepSeek V4.1 Flash with no reasoning, on the same 100 sales tasks, once with the stock harness and once with the harness Afnio trained. We didn't isolate each lesson's effect, so each example shows the lesson that best matches the fix, though several may work together. For a check that these are general habits, see "Habits, not benchmark details" in the Discussion.

Here are three examples: in the first, the lesson was added to the system prompt; in the other two, to the description of a tool.

Back to the pipeline report

The task. Send this week's sales pipeline update, the example from the start.

What went wrong. The stock agent reported five deals and $572,000 instead of four and $522,000, because it never read the Salesforce note excluding Sandbox Corp.

What changed. The trained agent read accounts, tasks and notes before writing anything, and stopped on the suspicious deal:

"'Sandbox Corp - Test Integration' looks like a test record. Let me check for more context — accounts and any policy about what to include/exclude."

It found the note, dropped the test deal, and reported $522,000 across four deals.

What Afnio added to the system prompt.

"…form a set of unique qualifying source IDs for each pattern after applying that pattern's exclusions and the workflow's global conditions. Log that filtered set, calculate its count, and only then compare it with the configured escalation threshold. […] Thresholds and exclusion tags come from the current workflow."

Afnio learned this from a training task outside sales, where the agent had to escalate recurring issues once they reached a threshold. A note said to leave test conversations out of the count; the agent counted one anyway and opened an issue it shouldn't have. The lesson turns that into a general rule: find the exclusions in the company's own records, apply them, and only then count. In the pipeline task, that is what sent the agent looking for a policy, and it found the note excluding Sandbox Corp. Many other lessons push the same habit of reading before acting, which is why it shows up across the whole test set (see below).

A value written into the wrong field

The task. Monitor LinkedIn for buying signals from target accounts, and update each account's priority to reflect them.

What went wrong. The stock agent wrote the priority as a sentence into the account's free-text description. The API returned an empty, successful-looking response, but the account's Priority field never changed.

PATCH Account  {"Description": "Account priority: High. Buying signals detected…"}
  -> {}

What changed. The trained agent looked up the account's fields first, set Priority from Low to High, and read the record back to confirm. The task went from 4 of its 7 checks to a full pass.

GET   Account  -> {"Name": "SignalCorp", "Priority": "Low"}
PATCH Account  {"Priority": "High"}  -> {}
GET   Account  -> {"Name": "SignalCorp", "Priority": "High"}

What Afnio added to the description of the fetch tool.

"Verify each requested field under its actual header against its intended value before reporting completion. Do not use […] an echoed payload, or the presence of the desired string somewhere in the row as a substitute for checking the correct field."

This lesson came from training tasks where a value landed in the wrong spreadsheet column. Here it carried over to a CRM record. So it is not only the system prompt that learns: the tool descriptions do too.

The policy with a second tab

The task. Research a prospect on LinkedIn and post a summary to the right Slack channel, following the company's routing policy. The policy is a spreadsheet with two tabs. The first sends companies with 500 or more employees to the enterprise channel and smaller ones to the SMB channel. The second sends strategic accounts to their own channel, whatever their size. This prospect has 501–1,000 employees and is a strategic account, so the second tab wins.

What went wrong. The stock agent read the spreadsheet without naming a tab and got back only the first one. It posted to the enterprise channel, even though it had seen the strategic-accounts channel, and it ruled that channel out:

"Notably, strategic-accounts is not in the routing policy."

What changed. The trained agent first asked the spreadsheet which tabs it had, read both, and posted to the strategic-accounts channel. This task still missed one of its eight checks, but it shows the habit at work.

What Afnio added to the description of the fetch tool.

"For data joins, confirm each worksheet's workbook membership through metadata and verify the returned schema before calculation or mutation."

This lesson came from a training task where the API silently returned the wrong worksheet, with no error.

Across all 100 tasks

Single tasks are noisy, so these examples illustrate the changes rather than prove them. The evidence is that the same behaviors shift across the whole test set:

BehaviorBetter ifStock harnessAfnio-trained harness
Wrote before reading the inbox or Slacklower29%7%
Checked a spreadsheet's tabs before reading its cellshigher64%91%
Read a record back after changing ithigher37%54%

Surge AI found that RL taught Nemotron a similar habit: look before acting. Here the habit is written into the harness, where you can read it.

Setup: one stock and one trained run of DeepSeek V4.1 Flash with no reasoning, compared task by task. The first and third rows count the 97 tasks where both versions wrote to a system; the second row counts the 47 where both read a spreadsheet. All three changes are statistically significant (McNemar test on the tasks that changed behavior, p < 0.01).

Discussion

These are preliminary results, and we want to be clear about their limits.

  • Small test set. We tested on the 100 tasks of AutomationBench's sales department. Next, we plan to evaluate on all of its departments.
  • Few runs. Most results average three to four evaluation runs; for the most expensive models, we could afford only one. The SearchQA comparison uses SkillOpt's published numbers.
  • One benchmark for the agent results. All agent experiments use AutomationBench. Next, we plan to run Afnio on other agent benchmarks, including coding agents.
  • Habits, not benchmark details. Afnio is built to specialize an agent to the environment and tasks it runs on, so we ran an ablation to check that the gain comes from general habits rather than from details of AutomationBench. For DeepSeek V4.1 Flash with no reasoning, we reviewed every lesson Afnio wrote and made it even more general wherever it looked too tied to the benchmark. We also made sure no value from the grader's checks or from the expected solutions remained in the lessons. On the 100 sales tasks, the ablated harness scored 41.3 ± 3.2 over three runs, against 41.8 ± 4.9 for the Afnio-trained harness and 33.8 ± 3.1 for the stock harness, keeping about 95% of the gain. Partial credit held too: 75.3 ± 2.0, against 74.1 ± 2.6 for the Afnio-trained harness.
  • Simplest selector. We used the simplest selection strategy, keeping the best candidate on the validation set. We expect stronger strategies to do better, but haven't tested them here.

Still, the direction is consistent across every model and benchmark we tried: much of what holds an agent back sits in its context, and it can be found and fixed automatically.

Acknowledgments

Thanks to Gian Segato (Anthropic), Federico Bianchi (Together AI), Andrius Kirilovas (Meta), Emanuele Fabbiani (Università Cattolica), Vincenzo Dentamaro (University of Bari), Davide Bonapersona (Anthropic) and Leonardo Ubbiali (Visum Labs) for feedback on an early draft. All reviewed in a personal capacity.

An early version of these results was presented at the Machine Intelligence Summit in Zurich on November 10, 2026.

Appendix: experimental setup

Benchmark. AutomationBench v1.0.6 (Zapier), run with Zapier's own harness and tools, with the harness's default limit of 50 agent turns. A task passes only if every assertion on the final state passes.

Data split.

SetTasksSource
Training90Finance 22, marketing 22, operations 23, support 23
Validation20Finance, marketing, operations and support, 5 each, held out from training
Test100The full sales department, never seen during optimization

The exact task IDs for each set are available on request.

How far is the test set from training? No sales task appears in training, and most use different apps: Salesforce is in 93 of the 100 sales tasks but only 2 of the 110 training and validation tasks, and LinkedIn and ChatGPT never appear in training. Only 34% of the sales checks are of a kind seen in training. What stays the same is how the agent works: it searches for the endpoint it needs, calls it, and is graded on the final state of the apps. So the test set is out of distribution in domain and apps, but stays within the same environment, AutomationBench's simulated company. Adapting an agent to its environment is exactly what Afnio is built for.

Optimization. The optimizer is GPT-6 Astra at max reasoning in every AutomationBench experiment. Afnio proposes changes to prompts, tool descriptions and skills on the training set, scores each candidate on the validation set, and keeps the best one (hill-climbing selection). The test set is used only once the final harness is chosen.

Evaluation. Each baseline and each final harness is evaluated on the 100 test tasks three to four times, or once for the most expensive models because of cost, with the same model, reasoning setting, temperature and turn limit. We report the mean pass rate.

Uncertainty. For the Nemotron comparison, we use the same paired task bootstrap as Surge AI (Mehta and Chen, 2026): for each task we average its runs and take Afnio minus baseline, then resample the 100 tasks with replacement 10,000 times and report the 2.5th and 97.5th percentiles as the 95% interval of the gain.

Partial credit. Pass rate counts a task only if every check passes. Partial credit is the share of a task's checks that the final state satisfies, averaged over the 100 sales tasks. It rises for every model at every setting.

ModelReasoningStock harnessAfnio-trained harnessGain
DeepSeek V4.1 Flashnone71.1 ± 0.774.1 ± 2.6+3.0
DeepSeek V4.1 Flashmax67.6 ± 2.584.0 ± 2.1+16.4
GPT-5.6 Lunanone26.4 ± 1.438.0 ± 2.9+11.6
GPT-5.6 Lunamax63.6 ± 2.472.1 ± 1.3+8.5
GPT-6 Astralow72.5†74.7*+2.1
GPT-6 Astramax83.8*88.6*+4.8
Claude Sonnet 5.5low45.6*64.1*+18.5
Claude Sonnet 5.5max81.8†85.8*+3.9
Nemotron 3.5 Supermax32.3 ± 1.751.6 ± 1.9+19.3

Mean ± standard deviation over 4 runs (3 for Nemotron), in percent. *Single run because of cost. †Mean of two runs.

Specialist comparisons. SkillOpt and GEPA on SearchQA: taken from the SkillOpt paper (gpt-5.4-mini, no-skill baseline 75.9), each measured against that baseline. Afnio used the same train and test split, and its SearchQA gain is also reported against 75.9; our own baseline averaged 76.6 ± 0.2 over three runs, a gain of +6.1 measured against it. Afnio used gpt-5.4-mini at medium effort as both agent and optimizer, scored by exact match.

SearchQA

MethodBaselineScoreGain
GEPA (from the SkillOpt paper)75.979.4+3.5
SkillOpt (from the SkillOpt paper)75.980.2+4.3
Afnio75.982.7 ± 0.3+6.8

Nemotron comparison. Nemotron 3.5 Super was served through OpenRouter in bf16, at max reasoning, temperature 1.0 and 50 agent turns. This matches the setup reported by Surge AI, who served the model in bf16 on Tinker.