One LoRA adapter for Qwen/Qwen3.8-27B behind three coding agents: pi, Hermes Agent and OpenCode. It merges three adapters, each trained with reinforcement learning inside one of those harnesses on software-engineering and terminal tasks. The merge itself involves no training.
[!Tip] Use it with thinking on. With thinking on, the super-adapter beats the base model thinking at the same effort (
xhigh) on five of six harness–benchmark pairs and ties the sixth: mean pass@1 55.5% → 63.5% across pi, Hermes Agent and OpenCode on SWE-bench Pro and Terminal-Bench 2.1. It also makes 19–48% fewer tool calls per task. If you use a single harness with thinking off, its specialist adapter is the better choice (see below).
[!Note] All results are under each harness: one attempt per task, a 100-step budget, a 131,072-token context window, text only (the vision tower is not served), sampling at temperature 0.8 with top-p 1.0. Base model and adapter always run under identical settings. These numbers are not comparable with the ones on the Qwen3.8-27B card, which uses other harnesses (Terminus, Claude Code), larger budgets and the full SWE-bench Pro.
The full recipe is in the release blogpost.
Pick your setup
| Harness | Benchmark | Base | Specialist | Super-adapter | Base, thinking | Super-adapter, thinking |
|---|---|---|---|---|---|---|
| pi | SWE-bench Pro (hard 51) | 40.0% | 64.0% (−60%) | 46.0% (−73%) | 74.0% | 74.0% (−48%) |
| Hermes Agent | SWE-bench Pro (hard 51) | 29.4% | 43.1% (−56%) | 47.1% (−60%) | 45.1% | 60.8% (−36%) |
| OpenCode | SWE-bench Pro (hard 51) | 35.3% | 51.0% (−72%) | 45.1% (−63%) | 47.1% | 66.7% (−31%) |
| pi | Terminal-Bench 2.1 | 40.0% | 56.5% (−56%) | 48.2% (−56%) | 52.9% | 57.6% (−25%) |
| Hermes Agent | Terminal-Bench 2.1 | 44.7% | 58.8% (−70%) | 55.3% (−53%) | 58.8% | 63.5% (−19%) |
| OpenCode | Terminal-Bench 2.1 | 47.6% | 52.4% (−53%) | 52.4% (−68%) | 54.9% | 58.5% (−22%) |
The runs are compared on the tasks all of them graded under each harness: 50–51 of SWE-bench Pro, 82–85 of
Terminal-Bench 2.1. "Specialist" is that harness's own adapter
(pi,
Hermes Agent,
OpenCode), with thinking off. "Thinking" is the chat
template's thinking mode at its default reasoning effort (xhigh). In parentheses: the change in median tool calls per
task against the base model with the same thinking setting, on the tasks both runs solve.
One attempt per task, paired against the base model under the same harness and the same thinking setting, on the tasks both runs graded. The interval is 95%; the p-value is an exact sign test on the tasks that changed outcome.
Thinking on
| Harness | Benchmark | Tasks | Qwen3.8-27B, thinking | Super-adapter, thinking | Difference (points) | Newly solved / lost |
|---|---|---|---|---|---|---|
| pi | SWE-bench Pro (hard 51) | 51 | 74.5% | 74.5% | +0.0 ± 13.4 | 6 / 6 (p = 1) |
| Hermes Agent | SWE-bench Pro (hard 51) | 51 | 45.1% | 60.8% | +15.7 ± 15.9 | 13 / 5 (p = 0.096) |
| OpenCode | SWE-bench Pro (hard 51) | 51 | 47.1% | 66.7% | +19.6 ± 16.5 | 15 / 5 (p = 0.041) |
| pi | Terminal-Bench 2.1 | 85 | 52.9% | 57.6% | +4.7 ± 9.8 | 11 / 7 (p = 0.48) |
| Hermes Agent | Terminal-Bench 2.1 | 87 | 58.6% | 64.4% | +5.7 ± 10.8 | 14 / 9 (p = 0.41) |
| OpenCode | Terminal-Bench 2.1 | 86 | 54.7% | 58.1% | +3.5 ± 8.2 | 8 / 5 (p = 0.58) |
| All six | 67 / 37 (p = 0.004) |
Thinking off
| Harness | Benchmark | Tasks | Qwen3.8-27B | Super-adapter | Difference (points) | Newly solved / lost |
|---|---|---|---|---|---|---|
| pi | SWE-bench Pro (hard 51) | 50 | 40.0% | 46.0% | +6.0 ± 14.2 | 8 / 5 (p = 0.58) |
| Hermes Agent | SWE-bench Pro (hard 51) | 51 | 29.4% | 47.1% | +17.6 ± 15.2 | 13 / 4 (p = 0.049) |
| OpenCode | SWE-bench Pro (hard 51) | 51 | 35.3% | 45.1% | +9.8 ± 14.8 | 10 / 5 (p = 0.30) |
| pi | Terminal-Bench 2.1 | 87 | 39.1% | 47.1% | +8.0 ± 10.2 | 14 / 7 (p = 0.19) |
| Hermes Agent | Terminal-Bench 2.1 | 87 | 46.0% | 56.3% | +10.3 ± 9.6 | 14 / 5 (p = 0.064) |
| OpenCode | Terminal-Bench 2.1 | 85 | 45.9% | 50.6% | +4.7 ± 10.3 | 12 / 8 (p = 0.50) |
| All six | 71 / 34 (p < 0.001) |
Each benchmark has few tasks, so most single rows are within noise; the pooled results are not.
Medians per task, super-adapter / base model, over the tasks both solved: same tasks, same outcome, so the numbers measure only how much work each needed. Generated tokens are everything the model writes (visible content, reasoning and tool calls).
| Tasks | Model calls | Tool calls | Generated tokens | |
|---|---|---|---|---|
| Thinking off | ||||
| pi · SWE-bench Pro | 15 | 13 / 48 | 15 / 55 | 4.3k / 9.3k |
| Hermes Agent · SWE-bench Pro | 11 | 18 / 58 | 24 / 60 | 4.0k / 7.6k |
| OpenCode · SWE-bench Pro | 13 | 17 / 49 | 20 / 54 | 4.2k / 8.5k |
| pi · Terminal-Bench 2.1 | 25 | 8 / 14 | 7 / 16 | 1.0k / 2.5k |
| Hermes Agent · Terminal-Bench 2.1 | 35 | 9 / 20 | 9 / 19 | 1.9k / 3.4k |
| OpenCode · Terminal-Bench 2.1 | 31 | 9 / 24 | 8 / 25 | 1.5k / 3.7k |
| Thinking on | ||||
| pi · SWE-bench Pro | 20 | 28 / 56 | 35 / 68 | 23.0k / 35.9k |
| Hermes Agent · SWE-bench Pro | 18 | 28 / 42 | 32 / 50 | 17.0k / 22.5k |
| OpenCode · SWE-bench Pro | 19 | 37 / 51 | 43 / 62 | 20.3k / 35.8k |
| pi · Terminal-Bench 2.1 | 35 | 13 / 16 | 12 / 16 | 6.6k / 6.8k |
| Hermes Agent · Terminal-Bench 2.1 | 42 | 9 / 10 | 8 / 10 | 8.4k / 6.5k |
| OpenCode · Terminal-Bench 2.1 | 42 | 10 / 12 | 10 / 14 | 10.7k / 10.4k |
With thinking off, each harness's own specialist is ahead of the super-adapter on four of six pairs (35 tasks newly solved vs 55 lost against the specialists, pooled, p = 0.045), by the most under pi: 64.0% vs 46.0% on SWE-bench Pro, 56.5% vs 48.2% on Terminal-Bench 2.1. Sharing one adapter across three harnesses costs pi the most of its gain.
All models were evaluated with a 131,072-token context window and no context compaction. A session that outgrew the
window ended there and was scored as a failure (0), for every model alike. With thinking on, Hermes Agent and OpenCode
send each turn's reasoning back to the model, so long thinking-on sessions under those two harnesses sometimes ran out of
context, for the base model and the super-adapter alike. Qwen3.8-27B's native window is 262,144 tokens: if your hardware
allows it, serve with a larger --max-model-len for long thinking-on sessions.
Every evaluation attempt behind this card, solved or not, is in the harness-hub/harness-adapters-trajectories bucket, with each attempt's grade, trajectory, harness log and verifier output, scrubbed of secrets. The files carry canary strings: keep them out of training data.
vllm serve Qwen/Qwen3.8-27B \
--enable-lora --max-lora-rank 128 \
--lora-modules qwen3.8-super=harness-hub/Qwen3.8-27B-super-adapter \
--language-model-only --enable-prefix-caching --mamba-cache-mode align \
--enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3 \
--max-model-len 131072
The adapter has rank 96; vLLM only accepts some rank limits, so --max-lora-rank is the next one up, 128. Thinking is
on by default in the chat template, which is the recommended setting. To turn it off, add
--default-chat-template-kwargs '{"enable_thinking": false}'. Thinking-on runs were evaluated with at most 32,768
output tokens per model call. Prefix caching on this hybrid model needs --mamba-cache-mode align; without it, every
agent turn re-reads its whole history.
Install pi (Node.js 22.19 or newer):
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
Add the server to ~/.pi/agent/models.json:
{
"providers": {
"local": {
"baseUrl": "http://localhost:8000/v1",
"api": "openai-completions",
"apiKey": "dummy",
"models": [{ "id": "qwen3.8-super" }]
}
}
}
"api": "openai-completions" matters: without it pi uses the Responses API, which this adapter was not evaluated with.
pi --provider local --model qwen3.8-super --print "Find out why the tests in tests/test_parser.py fail and fix the bug."
Install Hermes Agent:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
Add the server to ~/.hermes/config.yaml:
model:
default: qwen3.8-super
provider: custom
base_url: http://localhost:8000/v1
api_key: dummy
Hermes Agent needs at least 64,000 tokens of context.
hermes chat -q "Find out why the tests in tests/test_parser.py fail and fix the bug."
Install OpenCode 2 (evaluation used @opencode/cli 2.2.7):
npm install -g @opencode/cli@2.2.7
Add the server to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "http://localhost:8000/v1", "apiKey": "dummy" },
"models": { "qwen3.8-super": {} }
}
}
}
opencode run --standalone --model local/qwen3.8-super "Find out why the tests in tests/test_parser.py fail and fix the bug."
The GGUF version is in harness-hub/Qwen3.8-27B-super-adapter-GGUF. It runs on top of a GGUF of the base model:
hf download ggml-org/Qwen3.8-27B-GGUF Qwen3.8-27B-Q8_0.gguf --local-dir .
hf download harness-hub/Qwen3.8-27B-super-adapter-GGUF Qwen3.8-27B-super-adapter-lora-F16.gguf --local-dir .
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
Then use any harness configuration from the vLLM section with the base URL http://localhost:8080/v1.
The adapter was built from adapters trained on the BF16 weights: the closer the base GGUF is to them, the closer you get
to the evaluated behavior. Q8_0 is a good default; lower-bit quants drift further. The GGUF version has not been
re-evaluated.
The adapter can be merged into the base weights with PEFT. The result is a regular Qwen3.8-27B checkpoint (about 54 GB in BF16) that any engine serves without LoRA support. Merge on CPU if the GPU is needed for serving afterwards:
import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoTokenizer
base = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.8-27B", dtype=torch.bfloat16, device_map="cpu")
model = PeftModel.from_pretrained(base, "harness-hub/Qwen3.8-27B-super-adapter").merge_and_unload()
model.save_pretrained("Qwen3.8-27B-super-merged")
AutoTokenizer.from_pretrained("harness-hub/Qwen3.8-27B-super-adapter").save_pretrained("Qwen3.8-27B-super-merged")
Then serve it like the base model, without the LoRA flags:
vllm serve Qwen3.8-27B-super-merged --served-model-name qwen3.8-super \
--language-model-only --enable-prefix-caching --mamba-cache-mode align \
--enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3 --max-model-len 131072
The super-adapter merges the three released specialists, each at weight ½:
A LoRA update is scale · B @ A. The three adapters are merged exactly, by concatenation (PEFT's
combination_type="cat"): their A matrices stacked along the rank dimension, their B matrices likewise, each times
its weight. The result has rank 96 (3 × 32) and applies ½ · (ΔW_pi + ΔW_hermes + ΔW_opencode), which averaging the A
and B matrices would not.
The three updates are nearly orthogonal (cosine similarity about 0.01–0.02 per layer), so each keeps most of its effect in the sum. Weights of ⅓, ½ and 1 were compared on all of Terminal-Bench 2.1 with earlier (step-120) adapters; ½ gave the best balance across the three harnesses, so the Terminal-Bench results above are slightly optimistic. SWE-bench Pro played no part in the choice.
The three specialists share one training recipe:
| Method | AsyncGRPO (TRL, experimental), LoRA |
| Environment | Harbor tasks served by OpenEnv, rollouts in HF sandboxes, tool calls screened by safeagents |
| Tasks | 750 scale800 tasks interleaved with 300 TermGrade tasks |
| Reward | the task verifier's correctness (falls back to reward), plus a tool-efficiency bonus of weight 0.1 |
| Learning rate | 2e-5 |
| LoRA | r = 32, alpha = 64, on q, k, v, o, gate, up and down projections |
| Rollouts | 8 per task, temperature 0.8, thinking off, up to 50 agent steps and 1,800 s per rollout |
| Hardware | 2× NVIDIA B200 per harness: vLLM on one, the trainer on the other |
The specialists were trained with thinking off; the super-adapter's thinking-on behavior was never trained, only evaluated. See each specialist's card for its training details.
For a full write-up, please refer to the release blogpost.