Harness Adapters: Train Your Model for Any Coding Agent @engineerprompt
Harness Adapters: Train Your Model for Any Coding Agent  @engineerprompt
Uploaded November 2026 | Updated November 2026, 1 day ago
Hugging Face's harness adapters are small LoRA add-ons trained with reinforcement learning for one coding agent. With thinking off, the pi adapter takes Qwen 3.8 27B from 39% to about 65% on the hardest 51 SWE-bench Pro tasks. I explain how a harness adapter works, how you could train your own (RL inside the real agent, hidden tests, a fewer-steps bonus, and the safeagents guard against reward hacking), and what happened when I tested it on two DGX Sparks against the plain model and maximum thinking.

LINKS:
Hugging Face harness-hub: huggingface.co/harness-hub
Qwen3.8-27B-pi-adapted (model card): huggingface.co/harness-hub/Qwen3.8-27B-pi-adapted
Blog, "Harness adapters: Safe RL for efficient agentic development": huggingface.co/blog/harness-hub/harness-adapters
safeagents plugin: huggingface.co/harness-hub/qwen-safeagents-plugin
Training script (TRL, examples/async_grpo_harbor): github.com/huggingface/trl
pi coding agent: https://pi.dev

RELATED VIDEOS:
I Trained Qwen 4B With RL to Catch Qwen 27B: youtu.be/Pl_2TelxjdY
Qwen 3.8-27B in DeepSeek Harness: youtu.be/UK2xbBmxywg
What is an Agent Harness?: youtu.be/nWzXyjXCoCE

whryte, local speech-to-text for Mac: whryte.com

Website: engineerprompt.ai
RAG Beyond Basics Course:
prompt-s-site.thinkific.com/courses/rag
Signup for Newsletter, localgpt:
https://tally.so/r/3y9bb0

Let's Connect:
🦾 Discord: discord.com/invite/t4eYQRUcXB
☕ Buy me a Coffee: ko-fi.com/promptengineering
|🔴 Patreon: patreon.com/PromptEngineering
💼Consulting: calendly.com/engineerprompt/consulting-call
📧 Business Contact: engineerprompt@gmail.com
Become Member: tinyurl.com/y5h28s6h


00:00 - The problem with open models & harnesses
00:57 - Quick demo: Pi agent with & without adapter
02:11 - What is an agent harness?
03:49 - What are harness-specific LoRA adapters?
04:58 - How to train a harness adapter
05:40 - Avoiding reward hacking with Safe Agent
06:40 - Hugging Face benchmark results (SWE-bench & TerminalBench)
07:33 - Hands-on testing & token efficiency
08:53 - TerminalBench tests & tool name experiment
09:28 - Failure cases & limitations
Harness Adapters: Train Your Model for Any Coding AgentBuilding an Agent Harness with Jev: What Actually Works?Is This the End of MCP for AI Agents?Chatterbox Turbo: Free Local Text-to-Speech and Voice CloningGoogle’s nano banana pro just killed Photoshop...Hermes Agent: The Self-Improving AI That Learns YouGoogles GPT-3 Moment for Databases & Spreadsheets (TabFM)3 New Context Engineering Skills for AgentsOpus just got caught ...DeepSeek Harness Just Got a Web AgentOpen Source Backend for AI AgentsLoop Engineering: Why Everyone is Talking About Agentic Loops?
Prompt Engineering |

Harness Adapters: Train Your Model for Any Coding Agent

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER