OFICIAL Hugging Face Blog

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

What happened
Based on Hugging Face Blog · Nov 20, 2026

Hugging Face introduces harness adapters to optimize large language models for specific agent harnesses and tasks using reinforcement learning, improving accuracy and efficiency without modifying base model weights.

Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost
Hugging Face Blog — Hugging Face
Key points
·
Hugging Face reports Qwen3.8-27B improved from 39% to 55% pass@1 with RL-trained LoRA adapters on Terminal-Bench 2.1
·
Docker images pre-installed with Pi 1.5.2, OpenCode 2.2.7 and Hermes Agent v0.22.6 are provided for training
·
Pipeline filtered 1,127 tasks to 278 qualified ones using OpenEnv validation and difficulty checks
Key numbers
·
8-27B across three agent harnesses—Pi, OpenCode, and Hermes Agent—demonstrating improved performance on harder software engineering tasks.

Hugging Face describes a method to improve large language models by training custom reinforcement learning (RL) adapters that align models with specific agent harnesses and task distributions. The approach addresses inefficiencies where models optimized for general performance underperform when paired with particular harnesses. By freezing base model weights and adding a lightweight RL-trained LoRA adapter, the company reports significant gains in accuracy and token efficiency on targeted tasks.

The announcement details experiments with Qwen3.8-27B across three agent harnesses—Pi, OpenCode, and Hermes Agent—demonstrating improved performance on harder software engineering tasks. The team provides reusable recipes and Docker images pre-installed with the target harnesses to facilitate replication. The protocol leverages Harbor integration in OpenEnv and TRL’s OpenEnv guide, enabling training within the harness environment rather than through reimplemented agent loops.

To build the training dataset, Hugging Face combined task retrieval from existing RL environments, task generation with Repo2RLEnv, and validation with OpenEnv. The pipeline filtered 1,127 candidate tasks down to 278 qualified ones, excluding duplicates, evaluation sets, and tasks marked as unsuitable for training. Additional tasks were generated using Tasksmith to target specific skill gaps identified in benchmarks like Terminal-Bench 2.1 and SWE-bench Pro.

The final training process used LoRA and GRPO with TRL’s AsyncGRPOTrainer, running on 32 tasks per experiment. Four short training runs compared different task filtering stages, evaluating checkpoints on Terminal-Bench 2.1. The results showed how task validation and difficulty filtering influenced model learning, with the most effective tasks being those the base model solved inconsistently before training.

Original source → Deals on Clipraptor.com →