Hugging Face trains small adapters that lift an AI model's coding scores
Tuning a model to the software harness it runs in lifted one benchmark score from 39% to 55% while using about half the tokens per task, the researchers report.
EDITOR | Friday 20 November 2026 | World

Hugging Face researchers have published a method they call harness adapters. A harness is the software wrapper that lets a model use tools and run tasks. The team trains a small LoRA adapter, a light add-on to a fixed model, using reinforcement learning inside the harness it will run in. The post, dated 20 November 2026, says "Models are not fully optimized for all harnesses and the tasks you're doing."
On Terminal-Bench 2.1 with the Pi harness, the base Qwen3.8-27B model scored 39% pass@1 using about 2.9K tokens per task. With the trained adapter it reached 55% at about 1.5K tokens per task. On SWE-bench Pro, Pi went from 39.2% to 64.7%, Hermes from 29.4% to 43.1% and OpenCode from 35.3% to 51.0%.
The team also merged the three adapters into one. With thinking off, its mean pass@1 rose from 39.5% to 49.0% across six harness and benchmark pairs.
On AutomationBench, a task set outside the training data, the post says differences were within noise, except possibly for Hermes, which scored 17.7% against 23.0% for the base model. The authors note the tuned model often writes short text before tool calls and plan follow-up work.