# Hugging Face: Introducing harness adapters

Digest AI · Generative AI & Models · published 2026-11-20T00:00:00Z

Canonical: https://digestai.news/story/hugging-face-introducing-harness-adapters

## Summary

# Introducing Harness Adapters

Combining RL on a custom task distribution with your favorite agent harness yields more accurate and efficient models for that target harness and task combination. Models are not fully optimized for all harnesses, so combining them can leave performance and efficiency on the table. With RL, you can train a custom harness adapter to squeeze everything out of your model for your specific harness and tasks.

We trained one LoRA adapter per agent harness (pi, Hermes Agent, OpenCode) with RL inside the harness itself. Datasets, training, and agent rollouts all happen on the Hub in Jobs using TRL's AsyncGRPOTrainer, OpenEnv, and harbor. Each harness adapter beats the base model under its own harness for both performance and efficiency.

We have built ready-to-use docker images for all our RL tasks that come with the target harnesses already pre-installed inside. In our final docker images, we use Pi 1.5.2, OpenCode 2.2.7, and Hermes Agent v0.22.6. The diagram from the aforementioned blogpost explains well the entire protocol.

We combined together task retrieval of existing RL envs, task generation with Repo2RLEnv, task validation with OpenEnv, and sampling into a single data pipeline to build the highest quality set of validated and relevant tasks for improving Qwen3.8-27B on agentic coding.

This section describes how we built it so you can try it out on your own domains. RL training needs tasks the agent can attempt, a verifier that scores each attempt, and evidence that the verifier is right. A verifier that accepts wrong answers teaches the wrong behavior. A task that is already feasible will not teach the model anything.

We used Tasksmith to target gaps by mapping the skills our target benchmarks test (Terminal-Bench 2.1, hard subset of SWE-bench Pro, and DeepSWE) with merged pull requests from Python repositories. From 30 merged pull requests, Tasksmith produced 24 tasks in 10 Python repositories that passed its checks.

This recipe leverages the Harbor integration in OpenEnv and TRL's OpenEnv guide to train the model inside the harnesses we chose for final training. We have built ready-to-use docker images for all our RL tasks that come with the target harnesses already pre-installed inside.

## Key points

- LoRA adapters were trained on Qwen3.8-27B within each agent harness (pi, Hermes Agent, OpenCode)
- Each adapter improves performance and efficiency under its own harness
- The task set was built from Hub sources and generated by Tasksmith

## Why it matters

This work demonstrates how to optimize AI models for specific tasks and environments using reinforcement learning, potentially improving the overall effectiveness of AI systems in real-world applications.

## Sources

1. [Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost](https://huggingface.co/blog/harness-adapters-at-scale) (Hugging Face, 2026-11-20, primary source)
2. [New LoRA Adapter Lifts Qwen3.8 Coding Success From 39% to 65%](https://marktechpost.com/2026/11/18/hugging-face-qwen3-8-27b-pi-adapted-lora) (MarkTechPost, 2026-11-18)

## Cite

Digest AI, "Hugging Face: Introducing harness adapters", 20 November 2026, https://digestai.news/story/hugging-face-introducing-harness-adapters

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/hugging-face-introducing-harness-adapters.json
