A coding model can look good on generic benchmarks and still waste turns inside the agent your team runs. Tool names, prompt format, context handling and when the runtime returns control all shape the task. Hugging Face’s recent experiment makes those runtime details a training target: keep the base model, tune a small adapter for a specific harness and task mix. The idea is promising, but its reported gains are narrower than a general model upgrade.

Train inside the tool loop

On November 20, Hugging Face published a recipe for adapting Qwen3.8-27B to three coding harnesses: Pi, OpenCode and Hermes Agent. It trained separate low-rank adapters—small additional weight sets—while each harness ran in its shipped form. A proxy recorded the model’s actual output tokens for reinforcement learning; reward combined task-verifier correctness with a smaller tool-efficiency bonus. The design avoids teaching a model in a re-created agent loop that differs from deployment. S1

That changes the engineering question. Instead of asking only which model performs best, teams can ask whether their agent loop is part of the problem. If one system wastes attempts on tool formatting or retries, specialization may help—but only if the tasks and verifiers match the work the team cares about. That is an inference from this method, not proof that adapters beat better prompting or a different harness.

Treat the benchmark as a local result

In Hugging Face’s paired Pi evaluation, Terminal-Bench 2.1 pass@1 rose from 39.5% to 55.8% across 86 tasks, with thinking off. On a 68-task subset not used to select the checkpoint, the score rose from 39.7% to 55.9%. These were one-attempt comparisons under the same Pi setup; they are the publisher’s results, not an independent replication. The checkpoint had been selected using SWE-bench Pro and an 18-task Terminal-Bench subset, which makes the separate 68-task result more informative about selection effects. S2

The authors also tried 300 AutomationBench tasks under a different agent loop: results ranged from 17.7% to 27%, against a 23% base score. Hugging Face described the differences as within noise except perhaps Hermes. That is little evidence of transfer beyond coding tasks and their harness. S1

A practical adoption test

For teams considering the idea, start with held-out tasks drawn from real work. Pin model and harness versions, then compare base and adapted versions with identical prompts, permissions, timeouts and tool policies. Report success rate and paired wins and failures; measure tool calls, generated tokens, latency and cost separately. Re-run after meaningful model or harness updates.

Lower token use is not automatically a cost win if success falls, retries rise or review grows. Keep the base model as a fallback until the adapter passes your own release checks. The broader lesson is simple: train against the environment where a model must work, then test whether the gain survives beyond it.

Sources and editorial method

This AI-assisted report synthesizes the sources below. Automated source checking is not independent human verification; follow the original reporting for context and updates.

Common questions

What is a harness adapter?

A small set of additional model weights trained for a particular agent harness and task distribution.

How should a team evaluate one?

Compare it with the base model on held-out tasks under identical harness settings, and track success, tool use, tokens, latency and cost.