Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost

AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.

Why it matters

Teams running AI coding agents can train a LoRA adapter on their own harness and tasks, gaining large accuracy and token-cost gains without touching base model weights.

Read this as

Hugging Face researchers trained small add-on modules, called LoRA adapters, on top of the Qwen3.8-27B AI model so it works better inside specific coding agent tools like Pi and OpenCode. The adapted model scored 55% instead of 39% on the Terminal-Bench 2.1 test while using half the tokens per task. The recipe, tasks, and adapters are free to download and reuse on your own setup.

Teams using AI coding agents pay twice: in accuracy and in tokens. Hugging Face shows freezing Qwen3.8-27B and adding an RL-trained adapter per harness lifted Terminal-Bench 2.1 pass@1 from 39% to 55% while cutting average token use from 2.9K to 1.5K per task. All adapters, GGUFs, tasks and training code are public, so the approach is reproducible now, though it requires RL training infrastructure like 2xB200 GPUs.

Hugging Face trained per-harness LoRA adapters (all-linear) on Qwen3.8-27B with TRL's AsyncGRPOTrainer, running the real harnesses (Pi 1.5.2, OpenCode 2.2.7, Hermes Agent v0.22.6) via OpenEnv/Harbor, with a proxy recording exact tokens for the trainer. Tasks came from SWE-smith, SWE-Gym and Tasksmith, filtered by openenv validate and a difficulty check keeping only tasks the base model solves sometimes (171 of 442). Terminal-Bench 2.1 with pi harness: 39%→55% pass@1, 2.9K→1.5K tokens. Three adapters also merge into one 'super adapter' working across all three harnesses; final LR was 2e-5 after instability at higher rates.

Questions this answers

The article above answers these:

  • How much better can a LoRA adapter make Qwen3.8-27B on Terminal-Bench 2.1?
  • How do I build and validate RL tasks for agentic coding with OpenEnv and Tasksmith?
  • Can LoRA adapters trained on different agent harnesses be merged into one?

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Qwen3.8-27B Terminal-Bench 2.1 SWE-bench Pro TRL OpenEnv Harbor Tasksmith

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading