Hugging Face says it has improved a coding model not by replacing its underlying weights, but by teaching small add-on modules to work inside the software agents that deploy it. The company’s results suggest that an AI model’s performance depends not only on the model itself, but also on the tools and control loop surrounding it.

The company trained low-rank adaptation modules, or LoRA adapters, for Qwen3.8-27B using reinforcement learning inside three coding-agent harnesses: Pi, OpenCode and Hermes Agent. A harness is the software that organizes an agent’s interaction with tools—sending model outputs to a terminal or code editor, receiving results and deciding what happens next.

Hugging Face reports that each specialist adapter beat the base model on two coding benchmarks when tested in the harness it was trained for. On the 51 hardest SWE-bench Pro tasks, its Pi adapter rose from 39.2% to 64.7% pass@1; on Terminal-Bench 2.1, it rose from 39.5% to 55.8%. The company says the adapters also made substantially fewer tool calls on tasks both versions solved.

The harness is part of the system

That matters because agent training often uses a re-created version of an agent loop rather than the exact software people will use at deployment. Hugging Face says its method runs the chosen harness as shipped and records the model’s interaction through a proxy. The team trained adapters with task-specific reinforcement learning and verifiable software-engineering tasks, then evaluated them in the corresponding harness.

The reported gains are not a general-purpose measure of coding ability. The evaluations covered 89 Terminal-Bench 2.1 tasks and the hardest 51 SWE-bench Pro tasks, with a 100-step limit; they were performed inside the same agent environments used for training. Hugging Face’s own report says performance on a separate out-of-distribution evaluation stayed near the base model, rather than showing clear transfer to a very different setting.

There is also a revealing caveat in the company’s account. Although the adapters were trained with the model’s “thinking” mode off, Hugging Face says inspection of their evaluation traces showed some models producing short bits of text before tool calls—behavior the authors describe as possible “reasoning leakage.” That does not erase the reported pass rates under their fixed evaluation conditions, but it complicates the simple story that the adapters merely learned to call tools more economically.

Efficiency is not the same as reliability

The work points toward a practical route for tailoring open models to particular agent workflows: keep the base model fixed, train a comparatively small adapter for the target harness, and measure outcomes with task verifiers. It also makes the benchmark boundary unusually important. Better scores inside one harness do not establish that an agent will be safer, more reliable or more capable across other tools and real-world tasks.

Hugging Face published the work on November 20, 2026. Its reported experiments and the associated model cards are primary sources for the claims here; this article has not independently rerun the evaluations. The results are best read as evidence that adapting a model to its operating environment can help on selected coding benchmarks—not as proof that a more efficient agent has learned how to reason better in general.

Sources: Hugging Face’s training and evaluation report; Pi adapter model card; Hermes Agent adapter model card.