Harness adapters improve model performance and token efficiency
Researchers describe a method for adapting a language model to a specific agent harness and task distribution. Using reinforcement learning, they trained LoRA adapters for Qwen3.8-27B while keeping the model’s original weights frozen. The training loop operated inside the selected harnesses rather than a separate reimplementation of the agent workflow.
Adapters were created for pi, Hermes Agent and OpenCode. According to the report, each adapter outperformed the base model under its own harness on the two evaluated benchmarks, while also improving efficiency. In one example, Qwen3.8-27B scored 39% on Terminal-Bench 2.1 with pi and used an average of 2.9K tokens per task. Adding a custom adapter raised pass@1 to 55% and reduced average usage to 1.5K tokens.
The team built and validated coding tasks on the Hugging Face Hub using OpenEnv, Repo2RLEnv and Harbor. The final dataset contained 871 accepted tasks from 35 repositories, including injected bugs, real GitHub issues and tasks generated from merged pull requests. The three LoRAs were also merged into one super-adapter that runs unchanged across all three harnesses.
Written by Sakhanda Wire AI from reporting by Hugging Face. Facts, quotes and full context are in the original article below.