Harness-Hub: LoRA Adapters Tuned for Coding Agent Frameworks

LinkybelkadaTool

Harness-Hub provides small LoRA adapters trained with reinforcement learning to specialise open models for specific agent harnesses such as Pi, OpenCode, and Hermes. This enables models to achieve high benchmark scores without reasoning modes while significantly cutting token usage and tool calls. It helps developers run fast, cost-effective coding agents locally or self-hosted.

Key points

  1. Adapters are trained via RL inside the unmodified harness to master its unique prompts, tool definitions, and control flow.
  2. Available for models including Qwen3.8-27B, LFM2.5-24B-A2B, LFM3-1.7B, and TwIL-8B, alongside GGUF releases for llama.cpp.
  3. On SWE-bench Pro (51 hardest tasks), the Pi adapter for Qwen3.8-27B lifts accuracy from 29.4% to 62.7% while cutting tool calls by 55%.
  4. With thinking switched off, the adapter matches the base model's thinking-enabled performance while consuming roughly 4x fewer tokens per task.
  5. Training scripts utilise TRL (AsyncGRPO + LoRA via OpenEnv) combined with safeagents for tool call gating.

Why it matters

Harness adapters drastically reduce inference costs and latency for developers running agentic workflows, making local models significantly more competitive with large hosted reasoning models.

Analysis

Coding agent harnesses like Pi, OpenCode, Hermes, and Claude Code handle tool definitions, system prompts, and execution loops differently. harness-hub targets this divergence by training lightweight LoRA adapters with reinforcement learning inside the native, unmodified harness.

Performance and Token Efficiency

Evaluations using Qwen3.8-27B inside the Pi harness highlight substantial efficiency gains:

  • Accuracy improvements: Accuracy on Terminal-Bench 2.1 jumps from 39.5% to 55.8%, and on SWE-bench Pro from 29.4% to 62.7%.
  • Reduced overhead: Tool calls decrease by 55% to 62%. Crucially, with thinking disabled, the adapter reaches 62.7% on SWE-bench Pro (compared to 64.7% for the base model with thinking enabled), while median token consumption drops from 34.4k to 7.9k.

Tooling and Local Deployment

Every adapter includes GGUF builds for llama.cpp, allowing streamlined local execution. The organisation also publishes dataset resources (traj2envs-rl), safety benchmarks (safeagents-judge-bench), and toolkits like Repo2RLEnv and safeagents to allow developers to train adapters for custom agent harnesses.

Found in

Summary generated by AI (Gemini 3.8 Flash, 25 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Video

    Video:CURT

    Harness Adapters: LoRA Fine-Tuning for Coding Agents

    Hugging Face introduced harness-specific LoRA adapters trained via reinforcement learning for individual coding agents. Using Qwen 3.8 27B inside the Pi agent, the approach delivers massive benchmark gains with substantially lower token and step counts. The video demonstrates how training works, how reward hacking is prevented, and where the limits lie.

    AI & LLMs· Demo

  • Link:harness-hub

    Qwen3.8-27B-pi-adapted: Efficient LoRA Adapter for Coding Agents

    A LoRA adapter trained with reinforcement learning optimises Qwen3.8-27B for the pi coding agent across software engineering and terminal tasks. Operating with thinking disabled, it approaches maximum-effort reasoning accuracy while cutting token generation by approximately 4.5×, making local agent execution significantly faster and lighter.

    AI & LLMs· Tool

  • Article:Younes B, Lysandre, Nathan Habib

    Harness Adapters: Safe RL for Efficient AI Agent Development

    Hugging Face researchers introduce Harness Adapters: compact LoRA adapters trained via reinforcement learning directly inside agent harnesses like pi, opencode, and hermes. Served from a single base model, they reduce tool calls while maintaining or improving accuracy. A proxy called safeagents blocks reward-hacking shortcuts.

    AI & LLMs· Announcement

  • X post:Mario Zechner

    Harness Adapters: RL Training for Agentic Tasks on LFM2.5, LFM3, and Twil-9B

    Younes announced the live launch of LoRA adapter training for LFM2.5, LFM3, and Twil-9B. By applying reinforcement learning, the models aim to achieve higher accuracy and efficiency in agentic tasks. Mario Zechner highlighted the project.

    92bookmarks9.9kviews

    AI & LLMs· Announcement

  • Link:Kwaipilot

    KAT-Coder-V2.5-Dev: Open-Weight MoE Model for Coding Agents

    Kwaipilot has released KAT-Coder-V2.5-Dev, an open-weight Mixture of Experts model based on Qwen3.6-35B-A3B. Featuring 35 billion total and 3 billion activated parameters, it has been specifically post-trained for agentic software engineering tasks.

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.