Get the daily emailDaily email
  1. Home
  2. Agents
  3. This story

Hugging Face harness adapters: RL-trained LoRAs that tune a model to your agent harness

Hugging Face trained one LoRA adapter for Qwen3.8-27B per agent harness (Pi, OpenCode, Hermes Agent) using RL inside the unmodified harness. Under Pi, Terminal-Bench 2.1 pass@1 rose from 39% to 55% while average tokens per task fell from 2.9K to 1.5K. The…

Published Read the original

Ranked #14 of 25 on Saturday, November 21

Hugging Face harness adapters: RL-trained LoRAs that tune a model to your agent harness

Why it matters

Teams running coding agents on open models can get higher accuracy and roughly half the token cost from a cheap per-harness LoRA.

What happened

1 min read

Hugging Face trained one LoRA adapter for Qwen3.8-27B per agent harness (Pi, OpenCode, Hermes Agent) using RL inside the unmodified harness. Under Pi, Terminal-Bench 2.1 pass@1 rose from 39% to 55% while average tokens per task fell from 2.9K to 1.5K. The full recipe, task datasets, adapters, GGUFs and a merged super-adapter that runs under all three harnesses are published.

inscraper analysis

Our analysis

What is new is training inside the harness exactly as shipped, with a proxy recording the tokens, a direction Agent Lightning and SkyRL are also taking. The task generation and validation pipeline (openenv validate, Tasksmith, a base-model difficulty filter) may be more reusable than the results, and it caught a faulty Terminal-Bench 2.1 verifier. All numbers are Hugging Face's own, and the authors openly ask what the model really learned; much of the gain comes from reasoning less and calling fewer tools. Worth trying for teams with a fixed harness and task mix on open weights; it does not apply to closed models.

More in Agents