DigestAI news desk

Cut through the AI noise.

Generative AI & Models17 min read

Hugging Face: Introducing harness adapters

Introducing Harness Adapters

2 sources primary source

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

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.

Full story from Hugging Face · by Younes B primary sourceOpen source ↗

Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost

Hugging Face · 20 November 2026

Loading the full article…

This text was published by Hugging Face and written by Younes B. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗

Coverage and discussion

2sources
Topics · follow one to build your own front page

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Generative AI & Models

All →

Related stories