When a software agent runs a long task, the code that controls what it can do and see, its harness, might need fixing. Previously, harnesses were improved only between tasks, using past data. This paper studies whether an agent can fix its own harness while the task is still running.
The authors built a system called BoxBox that lets the agent pause its work, review what went wrong, and rewrite the harness during the task. The new harness is loaded instantly while the agent keeps its place. They also created a benchmark called PerfRace for testing this on real software optimization jobs.
On PerfRace, BoxBox achieved a speedup of 1.70 times after four hours, outperforming the best existing approach at 1.54 times. This shows that letting agents improve their own tools mid-task can make them more efficient and cost-effective.
