A 9B Model Just Outperformed 397B One at Repairing Agents (Harness R1)

Por Cloud Codes · 9 ago 2026 · 12:27

Visualizaciones
11.4K vistas
Likes
292 likes
Comentarios
14 comentarios

When two models from the exact same AI lab were tasked with automatically diagnosing and repairing broken AI agents, why did a tiny 9-billion parameter model beat a massive 397-billion parameter frontier model? Meet the Shanghai Jiao Tong & Xiaohongshu research paper proving why outcome-graded specialists beat plausibility-prompted generalists. 🔔 Subscribe: https://www.youtube.com/channel/UC0DZj1PNa_Fp0MU6uPSKv5w?sub_confirmation=1 💙 Become a Member: https://www.youtube.com/channel/UC0DZj1PNa_Fp0MU6uPSKv5w/join 🐦 Twitter/X: https://x.com/cloud_codes 💬 Discord: https://discord.gg/4kJqEBMMf In this deep dive, Cloud Codes breaks down the system design, reinforcement learning loops, and middleware hook architecture behind automated agent harness repair. We examine how the 9B model was trained on 1,500 failure packets to edit 4 plain Python hooks (episode start notes, pre-decision hints, pre-action guardrails, and post-feedback recovery rules) on frozen target agents—raising task success from 45.8% to 53.6% while beating its own GPT-5.5 teacher. Furthermore, we analyze why massive 397B models made unseen agents worse (-4.3 points) by optimizing for plausible-sounding prompts rather than verified execution, review case studies across web shopping, household robotics, and database schema repairs, and demonstrate why pre-action guardrails account for over 80% of total agent performance gains across 20 unseen model families. If this helped you understand backend architecture, system design, and how to build faster software, subscribe to Cloud Codes for a new infrastructure breakdown every single week! Build, solve, deploy. 🔗 Repositories & Sources Mentioned: 1. arxiv.org https://arxiv.org/abs/2608.02276 2. github.com https://github.com/DeepExperience/Harness-R1 3. huggingface.co https://huggingface.co/ShaoShuai0605/Harness-R1 4. lilianweng.github.io https://lilianweng.github.io 5. martinfowler.com https://martinfowler.com/articles/harness-engineering.html 6.tbench.ai https://tbench.ai ⏱️ Video Chapters: 0:00 - The 9B vs 397B Model Experiment 1:04 - Agent = Model + Harness (The Wrapper Equation) 2:21 - The 4 Middleware Hooks: Start, Hint, Guardrail & Recovery 3:16 - The Rerun Reward Loop: How the 9B Model Was Trained 5:02 - Plausibility vs Outcome: Why 397B Models Fail 5:13 - Case Studies: Web Shopping, Household Robots & Database Repairs 7:32 - Generalization Test: 20 Unseen Agents Improved by 7+ Points 8:59 - The Harmful Patch Warning: When Prompts Break Agents 9:45 - Ablation Study: Why Guardrails Drive 80% of Performance 11:28 - Final Verdict: Outcome-Graded Specialists vs Scaling #ai #aiagents #machinelearning #systemdesign #cloudcodes #python #softwareengineering #programming User Queries: 9b model outperforms 397b model agent repair shanghai jiao tong automated agent harness repair python hooks agent equals model plus harness birgitta bockeler pre action guardrails post feedback recovery agentic ai why small specialized models beat large generalist models failure packet compression reinforcement learning agent repair gpt 5.5 vs 9b specialized model benchmark terminal bench 2.1 gemini 3 pro harness comparison xiaohongshu agent harness repair research paper cloud codes 9b vs 397b model breakdown