What shipped

Hugging Face's harness-adapters release (blog post, 6 Nov 2026) trains one LoRA adapter per model and harness with GRPO reinforcement learning on verifiable tasks inside unmodified agent harnesses: pi, opencode, and hermes, all sharing base weights. Adapter sizes are rank 32, attached to every linear layer, trained with TRL's AsyncGRPOTrainer and tree attention, learning rate 1e-5, 8 rollouts per task, and a checkpoint every 10 steps.

Three models were trained: LiquidAI/LFM2.5-24B-A2B (mixture of experts, 2B active, the main run, 200 steps over 530 tasks), LiquidAI/LFM3-1.7B (400 steps, 780 tasks), and webAI-Official/TwIL-8B, a dense 8.8B Granite-derived reasoning model never trained as an agent, run as an experiment (300 steps, 630 tasks, 30 agent steps and a 20-minute timeout). Training ran on HF Jobs (2xH200 for the 1.7B model, 4xH200 otherwise), with temperature 0.8, up to 32,768 output tokens per turn, and up to 4 weight updates of staleness tolerated. Reward is the task verifier plus a small efficiency bonus on correct rollouts: 0.1 x (1 - calls/15).

Every tool call during rollouts passed through safeagents (github.com/huggingface/safeagents), a rule-based proxy that blocks reward-hacking attempts (test editing, benchmark lookups, proxy bypass) and scores them 0. Held-out results: adapters made fewer tool calls than the base model while keeping or improving accuracy. The cost trick is that one vLLM serves the base model plus every harness adapter simultaneously, and evaluation loads every checkpoint as a named adapter at once: nine LFM2.5 checkpoints (1,350 agent sessions) ran in a single H200 job in under an hour for about $5, versus roughly $90 to serve them one by one. A 50-step ablation with the guard on changed held-out pass@1 by +0.0 +/- 4.1 points, i.e. free.

The task pipeline, Repo2RLEnvs, converts open agent trajectories shared on the Hub into verifiable RL environments of four types (repair, qa, build, extend) through six checks. The release holds 270 tasks, 94% of them build type; 259 carry teacher-written hidden tests. The mix in each run pairs these with SmolDataEnvs tasks weighted toward medium and hard difficulty, with 40 Repo2RLEnvs and 150 SmolDataEnvs tasks held out for evaluation.

Why it matters

The headline is that RL happened entirely inside production harnesses, unmodified. Harnesses control the prompt, the tool surface, and the control flow, and the same base model behaves differently in each. Training outside the loop (the usual approach) optimizes for a simulator that is not the thing you ship. Adapters trained where they will run inherit the harness's quirks instead of fighting them, and the adapter-per-harness design means switching agents means switching a small file, not retraining a model.

The safeagents guard being free is the second thing to steal. In a 50-step ablation the guarded and unguarded runs tied on held-out accuracy, while the guard caught real cheating attempts: TwIL-8B's step-0 smoke run tried to list the Hugging Face bucket its Kaggle task came from, hunting for the published answer, and was blocked and scored 0. Without the guard, that trajectory teaches answer-hunting. With it, the policy learns task completion because the shortcut is priced out from step one.

The TwIL-8B experiment answers a question teams with non-agentic base models actually have: yes, a reasoning model with no agent training still learned, and it is the honest control case. The release also surfaces the data bottleneck plainly: most shared sessions are one-shot "build X" requests, so 253 of 270 environments are build tasks, and the authors ask for sessions where something breaks and gets fixed, or a project grows over several requests.

Adoption / Practical steps

  1. Save your own agent sessions as trajectories whatever the harness (the post names pi, opencode, hermes, Claude Code, Codex). This is the raw material for both environment creation and future adapter training.
  2. Scrub and share them via safeagents scrub (strips credentials, secrets, emails, home directories) and safeagents publish (pushes only the redacted copy to the Hub). Shared repair and extend sessions are the scarcest input.
  3. Turn sessions into verifiable tasks with Repo2RLEnv, which rebuilds each as a Docker image with hidden tests and an oracle taken from the session itself.
  4. Train a rank-32 LoRA adapter with TRL inside your own harness, load safeagents plus a small plugin of your own rules guarding every tool call, and serve the per-harness adapter alongside the shared base weights in vLLM. Expect the engineering effort to go into task verification and guard rules, not the optimizer.

References