Harness adapters tune Qwen3.8-27B for agent tools; post reports 39% to 55%
Unicorn News Desk ·
Key facts
- Technique
- Harness adapters: adapting an existing model to a specific agent harness
- Base model
- Qwen3.8-27B
- Released adapters
- Pi and opencode versions, under harness-hub on Hugging Face
- Reported result
- Terminal-Bench 2.1: 39% to 55% in Pi, with half the tokens (per X post)
- Credited lead
- @yb2698, per the X post
A new technique called harness adapters tunes an existing AI model to the specific agent software it runs inside, and two adapted versions of Qwen3.8-27B, one for the Pi harness and one for opencode, are now public on Hugging Face. The headline claim, from an X post introducing the work: Qwen3.8-27B in Pi goes from 39% to 55% on Terminal-Bench 2.1 while using half the tokens.
The post describes the idea as a way to “adapt your favorite model to your harness to improve performance and cost”, and credits the account @yb2698 with leading the work. The figures come from that post, which summarises a longer write-up that was not available for review. No independent evaluation appears in the sources.
What a harness adapter is, and what was released
An agent harness is the software layer around a model: it writes the system prompt, describes the available tools, parses the model’s tool calls, runs them and feeds the results back in a loop. Two harnesses running the same model can present tasks in quite different ways. Harness adapters, as the post frames them, take a model as it is and adapt it to one particular harness instead of expecting a general-purpose model to suit every harness equally well.
Two repositories carry the first examples, both published under the harness-hub organisation on Hugging Face:
- Qwen3.8-27B-pi-adapted, a version of Qwen3.8-27B adapted for the Pi harness
- Qwen3.8-27B-opencode-adapted, a version adapted for the opencode harness
The repository names make the pattern clear: one base model, one adapted release per harness. The available source text does not say how the adaptation is done, whether through full fine-tuning, a small add-on set of weights, or some other method, or what training data was used. It also does not show a licence for either repository.

The reported Terminal-Bench 2.1 gain in Pi
The one number in the sources covers the Pi version. Per the X post, Qwen3.8-27B running in Pi scores 39% on Terminal-Bench 2.1 before adaptation and 55% after, with half the tokens. That is a 16-percentage-point rise, or roughly 41% relative to the starting score.
The post pairs two claims, and both matter for anyone running agents at scale:
- Performance: more Terminal-Bench 2.1 tasks completed by the same base model in the same harness.
- Cost: about half the tokens to get there. Because agent runs are usually billed or budgeted by tokens, fewer tokens per task translates directly into lower spend and often lower latency, though the post states only the token figure, not a price or a speed.
The sources give no Terminal-Bench figure for the opencode adapter, no breakdown by task type, no count of runs and no description of the test setup. They also do not compare the adapted 27B model with other models. Readers following Qwen3.8 on this benchmark may recall an earlier Unicorn article, RadixArk says DaisyRose-27B doubles Qwen3.8’s Terminal-Bench score; the harness-adapter sources make no comparison with that result, and none is drawn here.
| Item | Pi adapter | opencode adapter |
|---|---|---|
| Base model | Qwen3.8-27B | Qwen3.8-27B |
| Hugging Face repository | harness-hub/Qwen3.8-27B-pi-adapted | harness-hub/Qwen3.8-27B-opencode-adapted |
| Terminal-Bench 2.1 | 39% to 55%, per X post | Not stated in sources |
| Token use | Half, per X post | Not stated in sources |
| Reasoning effort | xhigh (default), medium, low | xhigh (default), medium, low |
| Licence | Not shown in sources | Not shown in sources |
What the model files show about how the adapted models behave
The repository text available is mostly the chat template: the code that turns a list of messages and tools into the exact prompt the model sees. It is the same in both repositories, and it shows several practical details for anyone planning to run the models.
Adjustable reasoning effort
When thinking is enabled, which is the default, the template accepts a reasoning effort of xhigh, medium or low, with xhigh as the default; any other value raises an error. At xhigh, the template inserts an instruction into the system prompt:
Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.
At low, it inserts a shorter instruction telling the model to “Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.” The template adds no extra instruction for medium. Assistant messages can carry a separate reasoning field, kept apart from the final reply.
This matters for interpreting the token claim. The post does not say which reasoning setting produced the 39% and 55% figures, and since the default is the most deliberate setting, token counts could shift substantially depending on how a harness configures it.
Tool calling in an XML-style format
When tools are supplied, the template lists them inside a <tools> block in the system prompt and asks the model to call a function by replying with a <tool_call> wrapper containing a <function=...> block and named <parameter=...> entries. The instructions tell the model that required parameters must be specified and that any natural-language reasoning comes before the function call, not after. Tool results come back to the model wrapped in <tool_response> tags.
For builders, the practical point is that a harness, or an inference server, has to parse this format correctly. A harness that expects a different tool-call style will not get the benefit simply by loading the weights.
Image and video inputs
The template also handles image and video items in user content, inserting vision placeholder tokens for each, and it can optionally number them as “Picture 1”, “Video 1” and so on. System messages cannot contain images or videos; the template raises an error if they do. The sources do not report how the adaptation affects visual tasks, and Terminal-Bench 2.1 results say nothing about them.

Who is behind it, and how strong the evidence is
The sources establish three things about provenance. The post introducing harness adapters is by Sergio Paniego (@SergioPaniego). The same post credits @yb2698 with leading the work. The released models sit under the harness-hub organisation on Hugging Face. The sources do not identify the full team or its affiliation, and the long post linked from the X post is not among them.
That places the evidence at the level of a reported result. The model files are real and public, which means anyone can test them. The benchmark figures, though, rest on a single social media summary, with no visible methodology, no error bars and no third-party replication. The improvement may well hold up, but at this stage it should be read as the authors’ result relayed by a post, not as an independent finding.
What it means for builders
The core idea is a practical one for teams running open-weight models in agent workflows. If the reported numbers generalise, a mid-sized open model could close part of its gap simply by being matched to the harness a team already uses, and cut token spend at the same time. That would shift some of the effort in agent engineering from swapping models toward adapting one model to one tool chain.
There are trade-offs to weigh before switching:
- Lock-in to a harness. An adapter is by design tied to one harness. A model tuned for Pi may not carry its gains to opencode or to an in-house loop, which is presumably why separate releases exist for each.
- Harness versions change. Harnesses update their prompts and tool definitions. The sources do not say whether an adapter needs retraining when its harness changes.
- One benchmark, one harness. The only reported gain is on Terminal-Bench 2.1 in Pi. Results on other benchmarks, on real codebases, and for the opencode version are not given.
- Configuration details. Reasoning effort and the tool-call format are both set in the template. Matching the reported setup will require knowing which settings were used, which the sources do not state.
- Licence unknown. Commercial use depends on terms the available sources do not show.
A sensible first step for teams already using Pi or opencode with Qwen3.8-27B is a side-by-side run on their own task set, measuring both success rate and tokens per task, before drawing conclusions from the headline numbers.
What to watch next
- The full write-up. The linked long post should explain the method, the training data, the reasoning setting used and the evaluation setup.
- opencode numbers. A released adapter without a published result is the most obvious gap.
- Independent replication. Third-party runs of the Pi adapter on Terminal-Bench 2.1 would turn a reported figure into verified evidence.
- More models and harnesses. The phrase “your favorite model” suggests the method is meant to apply beyond Qwen3.8-27B; further harness-hub releases would show whether it does.
- Licence and model-card details on the two repositories, which will decide whether teams can ship them in products.
Frequently asked questions
What are harness adapters?
The post introducing them describes harness adapters as a way to adapt your favourite model to your harness, the software that runs the agent, to improve both performance and cost. The released examples adapt Qwen3.8-27B to the Pi and opencode harnesses.
How much do harness adapters improve Qwen3.8-27B?
According to an X post by Sergio Paniego, Qwen3.8-27B in the Pi harness goes from 39% to 55% on Terminal-Bench 2.1 with half the tokens. The available sources show no independent replication and no figure for the opencode version.
Where can the adapted models be downloaded?
Two repositories are on Hugging Face under the harness-hub organisation: Qwen3.8-27B-pi-adapted and Qwen3.8-27B-opencode-adapted. The available source text does not show their licence or file sizes.
Does the adapted model support adjustable reasoning?
Yes. The chat template in both repositories accepts a reasoning effort of xhigh, which is the default, medium or low, and thinking can be switched on or off.