Jointly improving the model and tool layer delivers better results for coding agents
Self-HPO raises the average solve rate from 57.8% to 64.8% by improving a coding agent’s model and harness in an alternating loop driven by failed tasks.
Self-Evolving Coding Agents via Harness-Policy Optimization — arXiv:2610.22791
When will it reach products?
3–6 mo — You may see this idea in coding-agent training and evaluation infrastructure over the next 3–6 months. An early application could be retuning the harness based on failed tasks after each model update; simpler delivery checks can be tested today.
What happened?
The Microsoft Research team developed Self-HPO, a method that alternately improves a coding agent’s model and the tool-control layer that runs it. The average solve rate across three software task benchmarks rose from 57.8% to 64.8%.
Why it matters
The study shows that switching to a more powerful model may not be enough to improve coding-assistant results. How tools are used, time limits are managed, and changes are delivered also affect success. This approach may be useful in products for bug fixing, repository maintenance, and automated change preparation. However, it has not yet been shown whether companies can achieve a lower overall cost.
Technical summary
Self-HPO alternately optimizes the harness and the agent’s policy. In the H step, the model is held fixed and proposes prompt or execution-logic changes by examining failed trajectories; the most successful candidate is selected from the same search set. In the P step, the harness is held fixed and the model is updated using reinforcement learning based on rewards from executable tests. Tasks unsolved in every training attempt make up the next search set. This lets harness search track how failure types change as the model improves.
Contribution
The main contribution is an alternating joint-optimization loop in which the policy being trained becomes the proposer of its own harness changes in the next round. A second distinguishing choice is to refresh the search set with tasks unsolved in the previous RL step, rather than keeping it fixed. Cross-component evaluations show that both components help individually and that using them together produces gains greater than the sum of their separate gains.