Hugging Face says an RL-trained 'harness adapter' lifts a frozen Qwen3.8-27B from 39% to 55% on Terminal-Bench 2.1 under the pi harness, in its own tests
Hugging Face says one LoRA adapter per coding agent, trained with reinforcement learning, also cut average tokens per task from 2.9K to 1.5K under pi, and it leaves open what the model really learned.

Hugging Face says reinforcement learning inside a specific coding agent can make an open-weights model more accurate and more efficient in that agent. In a blog post published on 20 November 2026, it reports, from its own tests, that Qwen3.8-27B scored 39% on Terminal-Bench 2.1 under the pi harness, using on average 2.9K tokens per task, and that with "those weights" frozen and "a custom RL-trained LoRA adapter" added, it reached "55% pass@1, with average token usage of 1.5K". The post does not say how those averages were measured. The 39% and 55% are the post's headline figures; on the tasks every run graded, its table shows 40.0% and 56.5%.
The post lists ten authors, among them Lewis Tunstall, Nathan Habib and Sergio Paniego.
What a "harness adapter" is
A harness is the agent program that drives the model: here pi, OpenCode and Hermes Agent. Hugging Face argues that models "target general performance", leaving "performance and efficiency on the table". It trained one LoRA adapter per harness with RL "inside the harness itself", leaving the base weights unchanged, then merged the three into a "super adapter". It attributes most of the headline gain to "the model reasoning less, calling less tools, and performing better first time".
The results it reports
Hugging Face warns that "you cannot compare the results across different harnesses". Its main table covers the tasks every run graded (50–51 on SWE-bench Pro, 82–85 on Terminal-Bench 2.1). All six rows, thinking off unless stated; brackets show the change in median tool calls on tasks both models solved, per the model card:
| Harness | Benchmark | Base | Own adapter | Super-adapter | Base, thinking | Super-adapter, thinking |
|---|---|---|---|---|---|---|
| pi | SWE-bench Pro (hard 51) | 40.0% | 64.0% (−60%) | 46.0% (−73%) | 74.0% | 74.0% (−48%) |
| Hermes | SWE-bench Pro (hard 51) | 29.4% | 43.1% (−56%) | 47.1% (−60%) | 45.1% | 60.8% (−36%) |
| OpenCode | SWE-bench Pro (hard 51) | 35.3% | 51.0% (−72%) | 45.1% (−63%) | 47.1% | 66.7% (−31%) |
| pi | Terminal-Bench 2.1 | 40.0% | 56.5% (−56%) | 48.2% (−56%) | 52.9% | 57.6% (−25%) |
| Hermes | Terminal-Bench 2.1 | 44.7% | 58.8% (−70%) | 55.3% (−53%) | 58.8% | 63.5% (−19%) |
| OpenCode | Terminal-Bench 2.1 | 47.6% | 52.4% (−53%) | 52.4% (−68%) | 54.9% | 58.5% (−22%) |
With thinking off, each harness's own adapter leads the super-adapter on four of six pairs; Hugging Face advises: "If you only use one harness and keep thinking off, take its specialist." With thinking on, it says the super-adapter beats the base model on five pairs and ties the sixth, although it was never trained that way.
- Full benchmarks: under pi, SWE-bench Pro "from 39.2% to 64.7%" and Terminal-Bench 2.1 "+16.3 points"; Hermes +14.1 on Terminal-Bench; OpenCode "+6.0 overall, and +13.6 on the 66 tasks that played no part in choosing its checkpoint".
- Merge weights: at full weight, Hermes reached 62.8% on Terminal-Bench 2.1 but pi fell to 40.2% (base 39.1%); weight ½ gave the highest all-harness average of the three weights tested, 52.5%, which Hugging Face calls "the best balance".
- Another harness: the pi adapter under OpenCode went from 44.8% to 54.0% on Terminal-Bench 2.1, against 46.4% to 52.4% for OpenCode's own. Under Hermes Agent it went from 46.3% to 56.1%, against 44.7% to 58.8% for Hermes's own adapter, keeping "about two-thirds of the specialist's gain".
- Outside coding: on 300 tasks of Zapier's AutomationBench, in AutomationBench's own agent loop, the base model scored 23.0%, the pi adapter 27.0%, OpenCode 25.3%, the merged adapter 23.7% and Hermes 17.7%. Hugging Face calls the differences "within noise, except perhaps Hermes". A preprint from a two-author lab says its own reviews confirmed defects in 71% of a 100-task AutomationBench sample.
A comparison of four short training runs on differently filtered tasks sits in an embedded figure we could not open, so we do not report it.
Cleaning the training tasks
Hugging Face says "858 of 1,127 Hub candidates passed" its validation checks, and that wrong-answer controls caught "a Terminal-Bench 2.1 verifier (regex-log) that accepted known-wrong answers". It says most failures were infrastructure problems. Of 442 scored tasks, the base model solved 151 every time and 120 never; it kept the other 171, because all-pass or all-fail tasks give "no learning signal". On 7 November we reported on a paper by researchers at Stanford and Cornell, which says the audit behind Terminal-Bench 2.1 identified issues in roughly 30% of the earlier version.
What was released
The three adapters, their GGUF versions, the super-adapter, a safeagents plugin and the base model are all listed as apache-2.0 in their Hugging Face metadata; the RL task dataset is listed as bsd-3-clause. The Repo2RLEnv and safeagents code on GitHub is Apache-2.0. Evaluation trajectories are public. The super-adapter's model card says its GGUF version "has not been re-evaluated".
Hugging Face's caveats
- The ½ weight was chosen on Terminal-Bench 2.1, "so the Terminal-Bench numbers are slightly optimistic".
- The model card says "most single rows are within noise; the pooled results are not", and that "part of the gain is finishing the work within" a fixed step budget the base model often exhausts.
- Under "Open question: What did the model really learn to do?", Hugging Face says the trained model, with thinking off, writes short text before tool calls, a sort of reasoning leakage that "can sometimes look like reasoning traces". It asks, "Does this invalidate our models? We do not think so", and plans follow-up work.
Why it matters
On our reading, the claim is that an add-on trained inside one agent can raise accuracy and cut tool use without changing the base model, with the recipe, data and adapters published for others to test. Every figure is Hugging Face's own, its coding figures are on benchmarks of 51 and 89 tasks, and the post compares its adapters only with the base Qwen3.8-27B.
Ask Relay — he reads every question himself and replies personally by email.
