Hugging Face introduced harness adapters on 20 November 2026, a way to tune an open model for the coding agent it runs in. The team froze the weights of Qwen3.8-27B and trained only LoRA adapters with reinforcement learning inside three coding agents. In one test the adapted model scored 55 percent, up from 39 percent, while using half the tokens.

What is a harness adapter?

A harness adapter is a small LoRA adapter trained for one model inside one agent harness. A harness is the runtime environment of a coding agent, its tools, its prompts and its control flow. Every harness behaves differently, so a model that works well in one harness can be weaker in another. The adapter learns the habits of its own harness while the base model stays unchanged. The team built one adapter each for Pi, OpenCode and Hermes Agent, all on top of Qwen3.8-27B. The adapters are small and can be swapped at runtime, so a team can use the same base model server for several agents. A team that uses only one agent loads the adapter trained for that agent.

How were the adapters trained?

Training happened inside the harness itself, not inside a copy of the agent loop. Hugging Face used Docker images with the harnesses already installed, Pi version 1.5.2, OpenCode version 2.2.7 and Hermes Agent version 0.22.6. A proxy between the harness and vLLM recorded the exact tokens the trainer should learn from. Tasks came from three sources. SWE-smith injects bugs into real Python and Go repositories. SWE-Gym turns real GitHub issues and their merged fixes into tasks. Tasksmith generates tasks from merged pull requests. Every task passed a check with openenv validate, and only tasks the base model solves sometimes, but not always, entered training. Training used TRLs AsyncGRPOTrainer with GRPO, which scores attempts against each other, plus a small bonus for efficient tool use. In total training ran for 598 steps with 78,114 samples and 167 million trained tokens. The safeagents tool checked 1.3 million tool calls during training and blocked 647 of them.

What do the tests show?

All three adapters beat the base model under their own harness, on both benchmarks and on performance and efficiency. With the Pi harness, Qwen3.8-27B rose on Terminal-Bench 2.1 from 39 percent to 55 percent, while average token use fell from 2,900 to 1,500 tokens per task. On the hard SWE-bench Pro subset of 51 tasks, the Pi adapter rose from 39.2 percent to 64.7 percent. The Hermes adapter rose from 29.4 percent to 43.1 percent, and the OpenCode adapter rose from 35.3 percent to 51.0 percent. The adapters also solve tasks with far fewer tool calls. On SWE-bench Pro they needed 56 to 72 percent fewer calls per task than the base model, and on Terminal-Bench 2.1 the cut was 53 to 70 percent. The numbers come from Hugging Face's own evaluations with one attempt per task and thinking mode off. The team warns that results from different harnesses cannot be compared directly, because each harness uses its own settings.

What does the super adapter add?

Beside the three specialists, Hugging Face merged the adapters into a single super adapter. The three LoRA adapters were joined along the rank dimension, so the merged adapter has rank 96, three times 32. Each update was applied at weight one half, because that value gave the best balance in tests. The super adapter improves on the base model in all six harness benchmark pairs. Mean pass@1 rose from 39.5 percent to 49.0 percent. It newly solves 71 tasks and loses 34, a clear statistical difference. With thinking mode on, it beats the base model on five of six pairs and ties the sixth. A team that uses one harness and works with thinking off does better with the specialist. A team that uses several harnesses can load one super adapter for all three.

What does it mean for developers?

For teams that run local coding agents, the approach is practical. They keep their base model and load a small adapter tuned for their agent. That lowers the cost per task, because fewer tokens and fewer tool calls are needed, and it lifts the success rate on real coding work. The recipe is open. Datasets, training code, tasks and adapters sit on the Hub, and a team can apply the method to its own tasks and harnesses. Reproducing a run needs several graphics cards though. The authors used two B200 cards per adapter, one for the vLLM server and one for training.

What happens next

Hugging Face plans to apply the recipe to more models and to study training strategies for thinking models more closely. The team found that the adapters sometimes produce short text before a tool call when thinking mode is off, a kind of reasoning leak it wants to explore further. The adapters, the GGUF versions, the tasks and the training data are already on the Hub. Teams can try them now and build their own harness adapters for their code base. Whether the method also works outside coding tasks is open. On AutomationBench, a benchmark for business automation, the adapters stayed close to the base model, which shows the gains are tied to the trained harnesses and the trained tasks.