You changed a coding agent's harness, for example its instructions, a hook or context compaction. How do you show that it got better and not worse?
Answer
Treat it as a regression experiment. Run a fixed task set with known expected results, including the past failures that motivated earlier harness rules, on the old and the new harness with the model, tools and versions unchanged. Repeat each task several times because agents are non-deterministic, and compare task success and consistency across runs, cost per successful task, turns and time. Read the traces of tasks that flipped either way, watch for gains on one task that cause regressions elsewhere, and roll out gradually while monitoring the same metrics in real use.
Strong answer includes
- uses a fixed task set with known outcomes and past failures
- changes only the harness and keeps the model and tools fixed
- repeats runs and compares success, consistency, cost and turns
- inspects traces of flipped tasks and guards against overfitting to one task
Practical example
A new compaction rule shortens long sessions. On 40 tasks run three times each, success stays at 31 of 40 and cost per successful task drops 18%, but two tasks that need an early file path now fail every time; the traces show the path was summarised away. The rule is changed to keep file paths before it ships.