Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost
Summary of an article by Hugging Face blog — AI Made
Hugging Face describes a method called harness adapters, in which a small LoRA adapter is trained with reinforcement learning on top of a frozen model so that it fits a specific agent harness and task distribution. The team reports that Qwen3.8-27B in the Pi harness scores 39% on Terminal-Bench 2.1 and uses about 2.9K tokens per task. With the adapter it reaches 55% pass@1 at roughly 1.5K tokens, mainly because it reasons less, calls fewer tools and succeeds more often on the first attempt. The work extends to harder software engineering tasks and covers three harnesses: Pi, OpenCode and Hermes Agent. Each harness runs as shipped inside prebuilt Docker images, while a proxy records the exact tokens the trainer learns from.
The training data comes from two Hub sources plus tasks generated with Tasksmith in Repo2RLEnv. Of 1,127 Hub candidates, 858 passed openenv validate. Qwen3.8-27B then attempted 442 scored tasks several times each, and the 171 it solved only on some attempts formed the qualified set, since GRPO learns nothing from tasks that always pass or always fail. Training used TRL's AsyncGRPOTrainer with LoRA, a verifier reward plus a 0.1 tool-efficiency bonus, and a learning rate of 5e-5, which worked best in a small sweep.
Publishers: to have your site removed from our sources, write to info@weare1801.com.
Read the original at Hugging Face blog →