A coding agent is two things working together: a model that decides what to do, and a harness that hands it tools, manages its context and decides when a session ends. Open models are usually trained to cope with any harness. Hugging Face has been testing what happens when you train a small add-on for one harness in particular.

Its first write-up came out on 6 November 2026 and covered early work on smaller models. A larger follow-up on 20 November moved to Qwen3.8-27B and brought adapters for three agents: Pi, Hermes Agent and OpenCode. A fourth "super-adapter" merges all three. Each adapter's model card carries an Apache 2.0 licence, as does Qwen's base model, so a small team can download and test the whole stack.

How the training works

Each adapter is a rank-32 LoRA, a small set of extra weights that sits on top of a frozen base model. The team trained it with GRPO, a reinforcement learning method that compares several attempts at the same task and rewards the better ones.

The agent itself is left unmodified during training. It runs a task in a sandbox while a proxy between the agent and the vLLM server logs every token the model generates. When the agent stops, the task's own tests score the outcome. A solved task earns the main reward, and a small bonus weighted at 0.1 favours runs that used tools sparingly.

Task quality took a lot of the effort. Out of 1,127 candidates from the Hub, 858 survived validation, which checked things like whether a reference solution earned full marks and whether doing nothing scored clearly lower. The team also removed the 253 tasks in its target benchmarks, plus anything drawn from those benchmarks' repositories. In a separate difficulty check on 442 tasks, the base model solved 151 every time, 120 never and 171 some of the time. That middle group matters because GRPO can't learn from a task where all attempts get the same result.

The final training mix was 750 tasks from the project's own environments and 300 from a set called TermGrade. A rule-based guard, safeagents, sat in the loop to catch shortcuts such as fetching an answer. It inspected about 1.3 million tool calls over the three runs and stopped 647. Under the rules set out in the November 6 post, a run with a blocked call scores zero.

What the specialist adapters gain

These are the model cards' results for a single attempt per task with thinking switched off. SWE-bench Pro here means a hard subset of 51 tasks.

  • Pi: 39.2% to 64.7% on SWE-bench Pro, and 39.5% to 55.8% on Terminal-Bench 2.1.
  • Hermes Agent: 29.4% to 43.1%, and 44.7% to 58.8%.
  • OpenCode: 35.3% to 51.0%, and 46.4% to 52.4%. The second gain is within noise (p = 0.38).

Sessions got shorter too. On SWE-bench Pro tasks that both versions solved, the Pi adapter needed a median of 23 turns where the base model took 59. OpenCode went from 48 turns to 13.

One correction deserves attention. Early coverage said the Pi adapter matched the base model with thinking on. The card now puts that thinking baseline at 74.5% on SWE-bench Pro, because the earlier 64.7% came from a run capped at 16k output tokens. The authors say the resulting gap of about 10 points isn't statistically significant, but it's a fair reminder to read the current card. The adapter still costs far less to run: a median of 8.8k generated tokens against 46.7k on those tasks.

What's new in the super-adapter

The three specialists changed the base model in almost unrelated directions, so the team could join them with no further training. The result is a rank-96 LoRA in which each specialist counts at half strength.

Averaged over three agents and two benchmarks, it lifts the pass rate from 39.5% to 49.0% with thinking off, and from 55.5% to 63.5% with thinking on. The thinking-on gain is the interesting part, since none of the specialists were trained that way. Tool calls per task fell by 53% to 73% without thinking and by 19% to 48% with it.

The cards' advice is simple. If you use one agent with thinking off, take its specialist. If you switch between agents or keep thinking on, take the super-adapter. Pi users pay the most for sharing: with thinking off, SWE-bench Pro drops from 64.0% with the specialist to 46.0% with the merged version.

Running it and what it costs

For llama.cpp you'll need two files: a base model in GGUF format and the 956 MB adapter. The suggested Q8_0 base is 28.6 GB. A 19.4 GB Q4_K_M build exists, but it strays further from the BF16 weights used in training. Once both files are downloaded, the server starts like this:

llama serve -m Qwen3.8-27B-Q8_0.gguf \
  --lora Qwen3.8-27B-super-adapter-lora-F16.gguf \
  -c 131072 --port 8080 --alias qwen3.8-super

By our estimate, a 32 GB card is too tight for Q8_0 plus a long context, so plan for 48 GB or more. Hermes Agent requires at least 64,000 tokens of context. On vLLM, set --max-lora-rank 128, because the server accepts fixed limits and 96 isn't one of them. Prefix caching also needs --mamba-cache-mode align, otherwise each turn reads the full history again.

If you don't own a suitable GPU, Hugging Face Jobs lists a 48 GB L40S at US$1.80 an hour and a 96 GB RTX PRO 6000 at US$2.75, billed by the minute. A merged BF16 checkpoint is about 54 GB, so it'd need the larger card.

Training costs more. Each adapter used two NVIDIA B200 GPUs, and the authors haven't published run times or a total bill. As a rough guide, Hugging Face's dedicated endpoints list one B200 at US$9.25 an hour.

Where the evidence is thin

  • Every score is self-reported, from one attempt per task on small test sets. With thinking on, just one of the super-adapter's six results clears its margin of error: OpenCode on SWE-bench Pro, at +19.6 points give or take 16.5.
  • The pooled picture is firmer, with 67 tasks newly solved and 37 lost (p = 0.004).
  • Half strength was picked using Terminal-Bench, so the authors call those scores slightly optimistic.
  • Part of the gain comes from finishing inside a 100-step limit that the base model often hit.
  • Wider skills didn't clearly transfer. On the 300-task AutomationBench, the base scored 23.0%, the super-adapter 23.7% and the Hermes adapter 17.7%.
  • The GGUF files haven't been re-tested, and all tests were text only. In OpenCode, opening an image or requesting a web search can end a session.
  • We found no tests on agent versions newer than Pi 1.5.2, OpenCode 2.2.7 and Hermes Agent v0.22.6.

What builders can do with it

For most small teams, we'd start with the published adapters. Pick 20 to 40 closed issues from your own repository that have reliable tests. Run each one with and without the adapter, using the same agent version and the same quantised base. Record pass rate, turns, tokens and time. That answers a question no public benchmark can: does this help with your code?

Teams that can't send source to an outside API get an extra benefit, since the model and adapter can both run on hardware they control. The agent's other tools still need checking, because any of them may reach the internet.

If you'd like to train your own, TRL's HarnessAsyncGRPOTrainer is the place to begin. It's marked experimental, it needs a sandbox backend such as E2B, and its API may change. The task collection is public as agentic-coding-envs under a BSD 3-clause licence. Before training on private code, strip out secrets and personal data, and budget time for checking your tests. The authors found graders that accepted wrong answers, and a weak grader teaches a model the wrong lesson.

Sources

Build with people working on the same things

Join the Auckland Society for AI: NZ$599 a year with a ForgeBox and the members' projects area. Our Auckland meetups are open to everyone.

Become a member