Deep Dive · Model Training

Harness Adapters: 24 Points for Free, If You Read the Fine Print

Hugging Face trained small LoRA adapters that lift Qwen3.8-27B from 40% to 64% on the hardest SWE-bench Pro tasks under one harness — with less than half the tokens. The recipe is open and reproducible on two GPUs. The part nobody headlines: with thinking switched on, one benchmark gain disappears entirely.

Harness adapters — video thumbnail
Video: Sam Witteveen 16:23 23 November 2026
Harness adapters Qwen3.8-27B LoRA GRPO Hugging Face

🧩 The gap this fills 0:00

"These frontier labs are not just shipping a model. They're shipping a model and a harness together."
You haveYou get
Closed model plus its own harnessA system tuned end to end, by the people who made both halves
Open model plus open harnessTwo good components that have never met, and a hope
The premise is right and it is testable, not rhetorical. Hugging Face's own earlier work found the same weights scoring 62% under one harness and 33% under another — a spread larger than most model releases chase. If scaffolding can move a score by 29 points, then nobody running an open stack has any idea where they actually sit until they measure it.

🧬 What a harness adapter is 7:50

PropertyDetail
It is a LoRAA small set of extra weights sitting on top of a frozen model
Trained with reinforcement learningNot supervised fine-tuning on transcripts — RL inside one specific harness
Three of themOne each for Pi, Hermes Agent and OpenCode, on Qwen3.8-27B
PublishedReleased on 16 November 2026 under a harness-hub organisation, with the blog post following on 20 November
The important structural point is what is frozen. The base weights never change: you get an adapter you can attach, detach and combine, and the same checkpoint keeps working without it. That makes adoption cheap to test and cheap to abandon — a much lower-stakes decision than fine-tuning a model, which is why this is likely to spread.

🔬 Training inside the real harness 8:50

StepWhat happens
1The harness runs exactly as it ships, in a Docker container — no modifications
2A proxy sits between the harness and the inference server
3The proxy records the exact tokens the model produced
4The trainer learns from those recorded tokens
"A lot of RL frameworks, when they're doing RL training for agentic tasks, tend to reimplement a generic agent loop. What Hugging Face has done here is run each of these in the real harness."
This is the actual contribution, and it is bigger than the benchmark numbers. Training a model against a reimplementation of a harness teaches it your reimplementation's quirks; every divergence between your loop and the shipped one becomes a silent domain gap at deployment. Recording tokens through a proxy means the policy being optimised is the one that will run in production, including its tool names, its system prompt and its context handling — and the three harnesses differ on all three.
The stack underneath, for anyone reproducing it: tasks in harbor format (the one Terminal-Bench 2.1 uses), training orchestrated through OpenEnv, and TRL's AsyncGRPOTrainer doing the optimisation — one GPU running vLLM for generation, one training. That combination is what makes "RL inside a real harness" a weekend project rather than a research programme.

🗂 The task distribution 9:56

SourceWhat it contributes
SWE-smithInjected bugs in real Python and Go repositories — volume
SWE-Gym, packaged as harbor tasksReal GitHub issues with their merged fixes — realism
TasksmithTasks generated from merged pull requests, with an agent writing the instruction and the tests
The filtering is the lesson worth copying. A Hub search returned roughly 59,000 candidate tasks, which had to be reduced to training-grade material: duplicates, evaluation sets and tasks marked not-for-training all removed. Then the base model attempted each surviving task several times, and anything it always solved or never solved was thrown out.
That second filter is not tidiness, it is arithmetic. Group-relative policy optimisation learns from the spread of outcomes within a group of attempts. If every attempt scores identically — all correct or all wrong — the advantage is zero and the sample teaches nothing. Curating for tasks the model sometimes solves is what makes the gradient exist at all. Anyone pointing this recipe at their own tasks will get silent no-op training if they skip it.

🎯 Reward and compute 11:02

ComponentValue
CorrectnessThe verifier's verdict: task solved or not
Efficiency bonusA small added reward for using fewer tool calls — weight 0.1, chosen from earlier experiments
Thinking during rolloutsOff, for training efficiency; final adapters evaluated both with and without
Learning rateSwept on 50 steps; 2e-5 settled on after longer runs showed instability at 5e-5
ComputeTwo B200s per adapter — one for the vLLM server, one for training
The efficiency bonus answers the obvious objection. If you reward only correctness, RL has no reason to prefer a five-tool solution over a forty-tool one that also passes. Adding 0.1 for tool economy is what turns "solve it" into "solve it cheaply" — and it is the single line of the recipe most worth stealing for your own tasks, because it directly targets the cost line rather than the leaderboard.
Two B200s is the honest number, and it cuts both ways. Against a frontier lab's post-training budget this is trivial. Against a small team's budget it is a real purchase — and it does not include the cost of building tasks, verifiers and infrastructure, which is where the actual effort sits. The GPU line is the smallest part of the bill.

📊 The results, exactly 12:04

HarnessBenchmarkBaseSpecialist adapterSuper adapter
PiSWE-bench Pro (hard, 51 tasks)40.0%64.0%46.0%
HermesSWE-bench Pro (hard, 51)29.4%43.1%47.1%
OpenCodeSWE-bench Pro (hard, 51)35.3%51.0%45.1%
PiTerminal-Bench 2.140.0%56.5%48.2%
HermesTerminal-Bench 2.144.7%58.8%55.3%
OpenCodeTerminal-Bench 2.147.6%52.4%52.4%
Read the specialist column as the headline and the super column as the tax. Each specialist adapter beats its base under its own harness on both benchmarks — that claim survives checking. The super adapter, which is the one actually useful if you run a harness nobody trained for, averages 39.5% → 49.0% across the six combinations: a real gain, but half the size of the specialist's.
Note how small the evaluation sets are. Fifty to fifty-one SWE-bench Pro tasks and 82 to 85 Terminal-Bench 2.1 tasks, one attempt each. A single task flipping is worth two points. The gains are far larger than that noise floor, so the direction is safe — but a two-point difference between the super adapter and a specialist is not a finding.

✏️ A mislabelled number 12:49

What the video saysWhat the source says
"Adapters used somewhere between 53 and 72% fewer tool calls"The 53–72% range is the token efficiency gain versus the base model, printed in the results table
Tool usage also fellCorrect, but by a different amount: roughly 45% fewer, and 49.2 → 25.9 tool calls per task in the merge experiment
The two claims are both true and they are not the same claim. Tokens per task fell 53–72% depending on the combination; tool calls per task roughly halved. The distinction matters because they cost different things: tokens are your inference bill and latency, tool calls are your tool quota, your API rate limit and — often — the wall-clock time a human waits. If you are budgeting for a local 40-token-per-second setup, the tool-call reduction is the number you should quote.

🔀 Merging is not free 11:35

The video describes the super adapter as the three adapters "stacked and applied like a merge". The blog is more interesting: they tried three weights and the naive one broke a harness.

Merge weightPiHermesOpenCodeTool calls/taskVerdict
Base model39.1%46.0%44.8%49.2—
⅓ (average)49.4%51.2%47.1%35.6Dilutes each update
½48.8%53.5%55.2%25.9Best balance — the one shipped
1 (plain sum)40.2%62.8%47.1%13.4Over-applies: agents get absurdly short
The plain sum is the cautionary tale. Applied at full strength, the combined update pushed one harness to a strong 62.8% while collapsing Pi back to its base level, and cut tool calls per task from 49 to 13 — agents that stop working and start guessing. Merging LoRAs is arithmetic on weight deltas, and nothing in that arithmetic knows which harness a given direction was learned for.

↔️ Cross-harness transfer 13:43

SetupBaseResult
Pi adapter run under OpenCode44.8%54.0% — against OpenCode's own specialist at 46.4% → 52.4%
Pi adapter under Hermes46.3%56.1% — keeps about two-thirds of the specialist's gain
Tool calls—A similar roughly 45% cut in both cases
This is the most surprising result in the paper and the most practically useful: an adapter trained for a completely different harness matched, and slightly beat, the one trained for the target harness. The most plausible reading is the one the video arrives at from the training curves — much of what was learned is not harness-specific syntax but a general disposition to reason less and act sooner. That disposition travels.

🧠 The thinking-mode twist 14:52

The video mentions that results change when thinking is on rather than off. The table shows how much, and one row is decisive.

Harness / benchmarkBase, thinking onSuper adapter, thinking onChange
Pi / SWE-bench Pro74.0%74.0%Zero
Hermes / SWE-bench Pro45.1%60.8%+15.7
OpenCode / SWE-bench Pro47.1%66.7%+19.6
Pi / Terminal-Bench 2.152.9%57.6%+4.7
"A big chunk of the gain isn't the model learning the harness. It's the model learning to just stop overthinking and stop over-calling tools."
His own diagnosis is the right one, and the table proves it: on Pi's hardest benchmark with thinking enabled, the base model already reaches 74% and the adapter adds nothing at all. If the adapter's value were harness knowledge, it would still help when the model is allowed to think. That it helps most precisely where thinking is off — and vanishes where thinking is on — says the adapter is largely a substitute for test-time compute, not a complement to it.
Which reframes the economics completely. The honest comparison is not adapter versus base; it is adapter-plus-no-thinking versus base-plus-thinking. If a cheap LoRA recovers most of what extended reasoning buys, the interesting question becomes whether you are paying for output tokens that a 40 MB adapter replaced. That is the experiment the paper leaves open — and the one to run before adopting.

🌍 Out of distribution: nothing transfers 0:00

ModelAutomationBench pass@1vs base
Base23.0%—
Pi adapter27.0%+4.0
OpenCode adapter25.3%+2.3
Super adapter23.7%+0.7
Hermes adapter17.7%−5.3
Three hundred business-automation tasks, run in AutomationBench's own loop rather than any of the three coding harnesses. The authors' own conclusion: the differences are within noise, except perhaps Hermes, so RL inside a harness neither transfers clearly to a very different setting nor breaks the model on it. The video does not cover this section, and it is the one that bounds the whole result — the gains are real, and they live inside the environment they were trained in.
The Hermes row is a reminder that a small negative is still a negative. A specialist adapter that was trained for coding harnesses and lands five points below base on business workflows is not a bug; it is what narrow optimisation looks like when pointed at the wrong distribution. If you train an adapter for your own harness, you have bought accuracy inside your harness and possibly nothing — or worse — outside it.

🛡 The safety gate in the loop 0:00

The video never mentions it, and the blog leads it as a subsection: safeagents was in the training loop. The team's own policy layer sat between the agent and its tools during rollouts, and the number of blocked tool calls fell consistently across training for every adapter. Their reading is that the model gets safer with each optimisation step.
Read that result carefully before repeating it. A falling block rate means the trained policy produced fewer calls the gate rejected — which is consistent with the model learning the environment's rules, and equally consistent with the model learning to route around a fixed gate. The paper's framing is the charitable one, and it is probably right, because the RL reward never mentioned the gate. But it is a measurement of conformance to a specific checker, not a measurement of safety, and any deployment should re-verify with a gate the model was not trained against.

🛠 What you should do with this 15:30

StepWhat it takes
Use theirs firstDownload the adapter, attach, and measure your own tasks before training anything
Build the verifier before the dataA reward that cannot grade your task correctly makes everything downstream worthless
Filter for varianceKeep only tasks the base sometimes solves; always-solved and never-solved teach a group-relative learner nothing
Reward economy, not just correctnessThe 0.1 tool-efficiency bonus is where the cost win comes from
Compare against the cheap alternativeThinking-cap style fine-tunes aimed at shorter reasoning may capture much of the same gain
Do not expect generalisationThe out-of-distribution results say the gain stays in its harness
The strategic point the video makes at the top is the one to keep: frontier labs ship a model and a harness together, and this is the first open, reproducible recipe for closing that gap on your own terms. The numbers will be beaten within weeks. The recipe — real harness in a sandbox, proxy in the middle, verifiable rewards, variance-filtered tasks, economy bonus — will still be the shape of the work in a year.

✅ Claims checked

ClaimVerdictEvidence
Hugging Face trained LoRA adapters for Qwen3.8-27B for three harnessesCorrectBlog published 20 November 2026; adapters released 16 November under harness-hub
The same weights scored 62% under one harness and 33% under anotherCorrect — from their earlier work, not this paperCited as prior multi-harness results
An adapter is a LoRA trained with RL inside one harnessCorrectAdapters attached with the all-linear flag over frozen weights
The real harness runs unmodified in a Docker container, with a proxy recording tokensCorrectAnd the trainer learns from those exact tokens
Built on harbor, OpenEnv and TRL's AsyncGRPOTrainerCorrectharbor is the Terminal-Bench task format
Tasks come from injected bugs, real issues and generated merge-request tasksCorrectSWE-smith, SWE-Gym via TaskTrove, Tasksmith
Roughly 59,000 candidate tasks were filtered downCorrect — 59,000 from the Hub searchDuplicates, evaluation sets and not-for-training tasks removed
Always-solved and never-solved tasks were discardedCorrectNecessary for group-relative learning to have any signal
Reward = verifier correctness + small tool-efficiency bonusCorrect; the bonus weight is 0.1Chosen from earlier experiments
Each adapter trained on two B200sCorrectOne GPU for vLLM, one for training
Pi on SWE-bench Pro went 40% → 64%Correct40.0% to 64.0%, 51 hard tasks
Pi on Terminal-Bench 2.1 went from 39% / 2.9K tokens to 55% / 1.5KCorrect as the blog's intro states itThe results table gives 40.0% → 56.5% on a slightly different task subset; both appear in the source
Hermes 29 → 43 and 45 → 59; OpenCode 35 → 51 and 48 → 52Correct29.4→43.1, 44.7→58.8, 35.3→51.0, 47.6→52.4
The super adapter averages 39.5% → 49%Correct — 39.48 to 49.02 across six combinationsComputed from the results table
Adapters used 53–72% fewer tool callsMislabel: that range is the token-efficiency gainTool calls fell roughly 45%; 49.2 → 25.9 per task in the merge comparison
The three adapters were merged into one super adapterCorrect, at merge weight ½A plain sum collapsed Pi to base level; the average diluted every harness
The Pi adapter under OpenCode scored 54% against a base of 44.8% and OpenCode's own 52.4%CorrectOpenCode's specialist was 46.4% → 52.4% on that task subset
Results change with thinking on versus offCorrect, and sharper than statedOn Pi's SWE-bench Pro with thinking, base 74.0% and super adapter 74.0% — no gain at all
Training curves show correctness roughly flat while rollouts shortenConsistent with the reported learning-rate sweepTurns per rollout collapsed at an aggressive learning rate; final runs at 2e-5
Out-of-distribution behaviourNot covered by the videoOn 300 AutomationBench tasks: 23.0% base, Pi 27.0%, OpenCode 25.3%, merged 23.7%, Hermes 17.7%
safeagents was part of the training setupNot covered by the videoBlocked tool calls fell over training; the authors read it as the model getting safer

Basis note. Built from the full 16:23 video and checked line by line against the Hugging Face blog post and the published model cards. Every benchmark number in this article comes from the source tables rather than the narration, which is how the token-versus-tool-call mislabel was found. The thinking-mode comparison, the merge-weight experiments, the out-of-distribution results and the safeagents detail are all in the source and absent or understated in the video; the interpretation that the adapter largely substitutes for test-time compute is this article's, built from the authors' own numbers.

🔑 Key takeaways

  • Closed labs ship a model and a harness together. This is the first open, reproducible recipe for closing that gap yourself.
  • The adapter is a LoRA over frozen weights — attach, measure, detach. Cheap to try, cheap to abandon.
  • The real contribution is training inside the shipped harness, through a proxy, so no domain gap is introduced by a reimplementation.
  • Discard always-solved and never-solved tasks, or group-relative RL has zero advantage and trains on nothing.
  • A 0.1 economy bonus is where the cost win comes from — correctness alone never rewards a shorter path.
  • Two B200s per adapter is the smallest part of the bill; tasks and verifiers are the work.
  • Specialist adapters beat base on both benchmarks: up to 40.0% → 64.0%, at roughly half the tokens.
  • The 53–72% figure is tokens, not tool calls. Tool calls fell about 45%.
  • Merging is arithmetic that knows nothing about harnesses: a plain sum pushed one harness up and collapsed another to baseline.
  • Cross-harness transfer beats expectation — a Pi adapter matched OpenCode's own specialist.
  • With thinking on, one benchmark gain is zero. The adapter substitutes for test-time compute more than it adds to it.
  • The gain does not generalise outside the trained setting, and one adapter loses five points there.
  • A safety gate was in the loop and block rates fell. That measures conformance to that gate, not safety.

🔗 Resources

Basis note. Sam Witteveen discloses no sponsorship for this video and links the primary sources throughout. The channel also promotes its own agent-building form and second channel; that is not a conflict here but is noted. All figures were re-read from the paper's tables rather than taken from the narration.

⏱ Timestamp index

0:00Labs build models around harnesses
0:21Anthropic with Claude Code, OpenAI with Codex
0:31Model and harness shipped together
0:46Non-coding users and office work
0:54DeepSeek doing the same
1:08What if you use an open harness
1:19The project from Hugging Face
1:3262% versus 33% with the same weights
1:50Drop the model into any harness and hope
2:17A small adapter per harness
2:3140% to 64% on SWE-bench Pro
2:44Why fit a model to a harness
3:00A generalist model
3:23Different tool names and context handling
3:37Pi discards early reasoning turns
3:5839% and 2,900 tokens becomes 55% and 1,500
4:13Half the tokens, more tasks solved
4:21Where the gains come from
4:34Reasoning less
4:50Calling fewer tools
4:59Getting it right first time
5:38The subscribe interlude
5:58Open models in production
6:21Evals, so you can decide when to swap models
6:58Overthinking and the shorter-reasoning fine-tunes
7:50What a harness adapter is
8:04Three adapters for one model
8:20The sentence from the paper
8:29The task distribution is the unlock
8:50Running the real harness in Docker
9:07The proxy records the tokens
9:15harbor, OpenEnv, TRL
9:35The async GRPO trainer
9:56Which tasks they chose
10:25Throwing out always-solved tasks
10:44Why identical scores teach nothing
11:02The reward: solved plus fewer tool calls
11:21Two B200s per adapter
11:35The super adapter
12:04The results
12:16Terminal-Bench 40 to 56
12:33Different starting settings — compare like for like
12:49The efficiency range
13:00Local token throughput and per-call pricing
13:15Super adapter: 39.5 to 49
13:43Pi adapter under OpenCode
14:09An adapter for a different harness matches the specialist
14:22Correctness flat, rollouts shorter
14:38The model learned to stop overthinking
14:52Caveat: thinking on versus off
15:09An open, reproducible version of the closed edge
15:40Plans for a full walkthrough on the second channel
15:58Community-built adapters for niche tasks
☰ View all