A primer on self-improving agent harnesses
Substack ● Covered by 2 sources
Two new frameworks let AI agents rewrite their own tool-use scaffolding instead of engineers hand-tuning prompts. One even lets the harness and model co-train, boosting scores well past what either fixes alone.
Based on reporting by Substack — read the original for the full story.
Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error
The unglamorous part of any AI agent isn't the model, it's the harness — the prompts, memory rules, and tool-calling logic that actually make an LLM useful in the real world. For years that plumbing has been assembled by hand, tweaked one edge case at a time, which is exactly the kind of work that doesn't scale when new models ship every few weeks. Two recent frameworks, Self-Harness and Xiaomi's HarnessX, try to fix that by having agents optimize their own runtime environment.
Self-Harness runs a three-step loop: mine execution traces for model-specific failures, propose a minimal code or prompt fix, then subject that fix to regression testing so it can't quietly break something else. On Terminal-Bench-2.0, this loop noticed a model kept hitting ambiguous file errors and, without a human writing a single patch, invented rules like banning duplicate sequential commands and forcing recreation of missing files. The payoff was real: MiniMax M2.5 went from a 40.5% to a 61.9% pass rate purely from harness changes, no retraining involved.
HarnessX goes further by treating the harness as modular software — swappable Lego-like processors for context, memory, tools, and control flow — and evolving them with a four-agent pipeline called AEGIS (digest, plan, evolve, critique). The interesting twist is co-evolution: instead of only patching the harness, HarnessX interleaves that with actual model training through a shared replay buffer and a reinforcement-learning method called GRPO. Harness-only tweaks bought a 14.5% average gain across ALFWorld, GAIA, and SWE-bench Verified; adding model co-training tacked on another 4.7%, breaking through ceilings that either approach hits alone. Notably, smaller open-weight models like Qwen 9B gained the most, suggesting scaffolding upgrades might matter more than raw parameter count for a lot of use cases.
The bigger story here is a shift in what engineers actually spend time on. Instead of manually patching prompts and tool calls, the job becomes building trace logging, curating evaluation datasets, and setting regression gates — infrastructure that lets the agent improve itself safely. That's not free, though. Someone still has to pay for the frontier-model compute doing the meta-optimizing, and validating that self-rewritten code doesn't quietly regress is its own ongoing cost center.
What these frameworks really argue is that the ceiling on agent performance was never just about model scale. It was also about how rigidly that model was wired into its environment. Loosen that wiring and let the system learn from its own traces, and you get gains that no amount of extra parameters would have bought you.
My take — AI-written commentary, not fact-checked reporting
I'll believe the
Read more about this at: Substack