In this post
What is a harness adapter?
An agent harness (such as pi, OpenCode or Hermes Agent) wraps a model with tools, prompts and a loop. The post’s claim is that general models are not tuned for any one harness, so training a LoRA with RL on tasks run inside the real harness squeezes out extra accuracy and efficiency. Weights of the base model stay frozen.
How it works
- Train in the real harness. Rather than re-implement the agent loop in a training framework, the harness runs as shipped; a proxy between the harness and vLLM records exactly the tokens it produced.
- Tasks and verifiers. Tasks use the Harbor format. Of 1,127 Hub candidate tasks, 858 passed validation, including wrong-answer controls that catch weak verifiers.
- Difficulty filter. Of 442 scored tasks, the base model solved 151 every time and 120 never; the 171 solved only sometimes formed the useful training set.
- Training stack. TRL’s AsyncGRPOTrainer, OpenEnv and harbor, run on Hugging Face Jobs, with one LoRA per harness and a “super adapter” made by concatenating three rank-32 adapters into one rank-96 adapter.
Results reported by the authors
- For Qwen3.8-27B with pi on Terminal-Bench 2.1: 39% to 55% pass@1, with token use falling from about 2.9K to 1.5K per task.
- Each harness adapter beats the base model in its own harness on both benchmarks, on SWE-bench Pro (hard subset) and Terminal-Bench 2.1, for accuracy and efficiency.
- The merged super adapter, with thinking off, raised mean pass@1 from 39.5% to 49.0% over six harness–benchmark pairs (71 tasks newly solved against 34 lost, p < 0.001).
- Thinking mode, which was not trained, still rose from 55.5% to 63.5% mean pass@1.
Limitations and open questions
- Results are self-reported on a limited set of tasks, one base model and three harnesses.
- The authors list an open question: what the model actually learned to do, since it might exploit harness-specific habits.
- Benchmark gains do not guarantee gains on your private tasks.
How to try it, step by step
- Pick one harness and one model you already use.
- Collect or generate tasks with trustworthy verifiers and filter by difficulty.
- Train a small LoRA with RL inside the harness.
- Evaluate on held-out tasks and track token cost as well as accuracy.
What it means for teams running open-weight agents
It is a cheaper route than full fine-tuning and keeps the base model reusable. See how to evaluate an LLM application and AI agents explained.
Frequently asked questions
- Is this fine-tuning the whole model? No. A LoRA adapter is trained and the base weights stay frozen.
- Can one adapter serve several harnesses? The authors merged three into one super adapter that runs unchanged under pi, Hermes Agent and OpenCode.
- Are the artefacts public? The post says adapters, GGUFs, RL tasks and a plugin are in a Hugging Face collection.
Related reading
- AI agents explained
- How to evaluate an LLM application
- Running AI workloads on Kubernetes
- AI Practitioner
Sources and currency
Sources were read on 23 November 2026. Products, rules and standards change, so check the linked originals before you rely on any detail.
Sources and further reading
- Hugging Face. Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost. 20 November 2026. huggingface.co/blog/harness-adapters-at-scale.
Go deeper: CTP™ credential · the TPBOK™ standard · Check your experience
IICTP is an independent technical credentialing body.