Skip to content
Tools · Dec 3, 2026

Hugging Face launches harness adapters to optimize model performance and cost within agent harnesses

New tool enables custom RL-trained adapters to improve accuracy and efficiency for specific agent harnesses and task distributions.

Trust79
HypeLow hype

1 source · cross-referenced

ShareXLinkedInEmail
TL;DR
  • Hugging Face introduced harness adapters, a tool to adapt models to specific agent harnesses using reinforcement learning (RL).
  • The adapters are trained inside the harness itself, improving performance and reducing token usage for tasks.
  • A single merged 'super-adapter' can run across multiple harnesses without modification.
  • Artifacts, including adapters, GGUFs, RL tasks, and a safeagents plugin, are available in a Hugging Face collection.

Hugging Face announced harness adapters, a tool designed to adapt models to specific agent harnesses using reinforcement learning (RL). The goal is to improve performance and cost efficiency by tailoring models to the unique requirements of a given harness and task distribution.

The adapters are trained inside the harness itself, leveraging OpenEnv and TRL’s AsyncGRPOTrainer to generate custom RL tasks directly within the target environment. This approach ensures that models are optimized for the specific tasks and workflows they will encounter in production.

In experiments with Qwen3.8-27B, the team demonstrated significant improvements by freezing the base model’s weights and adding a custom RL-trained LoRA adapter. For the pi harness, the Terminal-Bench 2.1 score increased from 39% to 55% pass@1, while average token usage per task decreased from 2.9K to 1.5K tokens. These gains were attributed to reduced reasoning steps, fewer tool calls, and improved first-time accuracy.

The team trained one LoRA adapter per harness (pi, Hermes Agent, OpenCode) using RL inside the harness. Each adapter outperformed the base model under its own harness on benchmarks for both performance and efficiency. Notably, the three LoRAs were merged into a single 'super-adapter' that operates unchanged across all three harnesses.

All artifacts—including adapters, GGUFs, RL tasks, and a safeagents plugin—are available in a dedicated Hugging Face collection. The release includes a reusable recipe for reproducing the process on custom task, harness, and model combinations.

The tool builds on earlier work, such as multi-harness RL and harness adapters, which showed that RL on a custom task distribution within a harness yields more accurate and efficient models. This update extends those findings to larger models (27B parameters) and harder real-world software engineering tasks across multiple harnesses.

Sources
  1. 01Hugging Face — Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost
Also on Tools

Stories may contain errors. Dispatch is assembled with AI assistance and curated by human editors; despite the trust-score filter, mistakes happen. We correct publicly — every article links to its revision history. Nothing here is financial, legal, or medical advice. Verify before relying on any claim.

© 2026 Dispatch. No ads. No sponsorships. No paid placement. Reader-supported via Ko-fi.

Built by a person who cares about honest AI news.