Alphabell.
Paper · Tools and harness

Self-Evolving Coding Agents via Harness-Policy Optimization

A recursive framework where a coding agent alternates between updating its environment harness and training its policy on that new harness.

Self-Evolving Coding Agents via Harness-Policy Optimization
Figure from the paper, arXiv. Source
The loop

The policy analyzes its own failures to propose new harness candidates. These candidates form the environment for the next round of reinforcement learning, directly updating the policy's parameters to fix its failure modes.

  1. Policy analyzes its own failures
  2. Proposes new harness candidates
  3. Policy trains via RL on new harness
  4. Successor policy tackles harder tasks
  1. Policy analyzes its own failures
  2. Proposes new harness candidates
  3. Policy trains via RL on new harness
  4. Successor policy tackles harder tasks
↻ The improved system does the next round, and the loop turns again.

Why it is a road to recursion

Co-evolving the agent's policy and its evaluation harness prevents the agent from overfitting to a static environment.

Evidence

Measured gains across three coding benchmarks.

coding-agentsharness-optimizationreinforcement-learning