Hugging Face has released a new training recipe that creates specialized LoRA adapters for coding agents, allowing models to perform better by learning the specific runtimes they operate within.
The project, a new community release on the Hugging Face Hub, treats harness variability as a training target by keeping one base model and training a small LoRA adapter for each harness.
A standard coding model often struggles with the unique tool schemas, prompts, and turn structures of different agent environments. By utilizing TRL’s AsyncGRPOTrainer to train directly on trajectories recorded within a specific harness, developers can create policies that understand the exact stopping conditions and observation feedback loops they will encounter during deployment.
> Pi does not keep previous reasoning turns while OpenCode and Hermes do minor correction if i may. pi does keep previous reasoning turns. every assistant turn goes back with its reasoning_content. it's right there in your own published session logs. what pi also does is…
— Post by @badlogicgames on X
The release supports three primary coding agent runtimes: Pi, OpenCode, and Hermes. According to InfoQ, the collection includes adapters for the Qwen3.8-27B model, along with GGUF builds and a safeagents plugin designed to inspect tool calls for security risks before execution.
Specializing models for their specific harness has demonstrated measurable improvements in task success rates and token efficiency. On the 51 most difficult tasks in SWE-bench Pro, the Qwen3.8-27B model’s performance under the Pi harness increased from 39.2% to 64.7% after applying a harness-specific adapter.

| Benchmark/Task | Base Model Success | Adapter-Enhanced Success |
|---|---|---|
| Terminal-Bench 2.1 (Pi) | 39% | 55% |
| SWE-bench Pro (Hard-51) | 39.2% | 64.7% |
The adapters achieve these results primarily by reducing the number of tool calls and succeeding on initial attempts. While Hugging Face also released a merged super-adapter, the team said that individual harness adapters generally outperform the merged version when only one runtime is in use.
To prevent agents from attempting to bypass task constraints or access hidden grading files, the system employs a safeagents proxy. This proxy performs deterministic filtering on tool calls before they are executed.
“Qwen3.8-27B Fails a lot of basic tool calls in Pi and this seems to mitigate that,” wrote commenter Wheen on Hacker News regarding the adapter’s impact on reliability.
I'd still ship the specialist. The blog's own table, thinking off, has the pi adapter at 64% on SWE-bench Pro hard-51 versus 46% for the merged super-adapter. Concatenation is a cool experiment. It is not a free lunch across harnesses.
— Post by @MrNirmata on X
Hugging Face, valued at $4.5 billion in August 2023 and acquired by Nvidia for $12.93 billion in September 2026, has a history of advancing open-source AI. In April 2025, it acquired Pollen Robotics to “make Artificial Intelligence robotics Open Source,” and in June 2024, it launched an AI accelerator program with Meta and Scaleway to help European startups integrate open foundation models.
The company also develops the SmolLM family of small language models, with SmolLM3 released in 2025 as a 3-billion-parameter multilingual model for on-device applications.
Technical discussions following the release addressed the role of context compaction in agent performance. Mario Zechner, the creator of the Pi coding agent, clarified that the observed performance gap between harnesses was linked to auto-compaction rather than dropped reasoning content. The adapters, training trajectories, and the complete recipe are currently available on the Hugging Face Hub.