Hugging Face researchers have trained small LoRA adapters that tune the 27-billion-parameter Qwen3.8 model to three specific coding-agent harnesses, and they report higher benchmark scores alongside a large drop in tool calls. The harnesses are Pi, OpenCode, and Hermes Agent. Hugging Face also published the full recipe, so any team can repeat the exercise on its own model and task mix.

The method is reinforcement learning run inside the harness, with the harness left as it ships. According to the Hugging Face blog post, many RL frameworks train against a rewritten version of the agent loop, which means the model never practices on the software it will meet in production. Here a proxy records the exact tokens the harness produced, and the trainer learns from those. Training used TRL’s AsyncGRPOTrainer on two NVIDIA B200 GPUs per adapter, one serving the model and one running the updates.

The headline example comes from the Pi harness on Terminal-Bench 2.1. The base model scored 39 percent and averaged 2.9K tokens per task. With the adapter attached, Hugging Face reports 55 percent pass@1 at 1.5K tokens. On the 51 hardest SWE-bench Pro tasks, Pi went from 39.2 percent to 64.7 percent. On tasks both the base model and an adapter solved, the adapters made between 56 and 72 percent fewer tool calls on SWE-bench Pro and between 53 and 70 percent fewer on Terminal-Bench 2.1.

Most of the effort went into the training tasks. The team gathered 1,127 candidates from the Hub, ran semantic checks on each one, and kept 858. It then ran the base model against every task several times. GRPO compares attempts against one another, so a task that always passes or always fails produces no signal. The published dataset holds 871 tasks across 35 repositories, and 171 of them sit in the useful middle where the base model sometimes passes and sometimes fails.

The team also merged the three adapters into a single “super-adapter” at half strength each. With thinking mode off, it beat the base model on all six harness and benchmark pairings, lifting mean pass@1 from 39.5 percent to 49.0 percent. Full-strength summing made agents too terse (13 tool calls per task against 49 for the base model), and Pi fell back to base-model accuracy. Hugging Face’s advice is blunt: a team that uses one harness and keeps thinking off should take that harness’s own specialist, because specialists led on four of six pairings.

Several caveats come from the authors themselves. They chose the merge weight using Terminal-Bench 2.1, so those scores run slightly optimistic. They warn against ranking harnesses by these numbers, since Pi compacts context automatically and the other two do not. On 300 AutomationBench tasks, a business-workflow test outside coding, the Pi and OpenCode adapters landed near the 23.0 percent base score (27.0 and 25.3 percent), while the Hermes adapter fell to 17.7 percent. The authors read that as RL inside a harness neither clearly transferring nor breaking the model.

The most interesting admission concerns what the adapters learned. After inspecting trajectories, the authors found that the tuned model, with thinking off, writes short passages of text before each tool call, where the base model mostly jumps straight to the call. They describe it as a kind of reasoning leakage, with the model drifting toward its thinking-mode behavior. They argue the results hold because the comparison used a fixed token budget, and they plan follow-up work on hybrid thinking models. No outside party has yet replicated any of the figures.

For teams paying for thinking tokens on agentic coding, the budgeting question is now concrete: the entry price is a task set built from your own repositories plus two B200s per run, and the payoff Hugging Face claims is thinking-level accuracy at roughly half the tool calls.

Hugging Face blog, “Introducing harness adapters”, published November 7, 2026.