A Microsoft study found that an off-the-shelf coding agent used offline outperformed several published prompt-optimization methods on most tested benchmarks. The approach, called CASD, analyzes a static set of past agent trajectories once to extract performance statistics, recurring failure patterns, and useful behavioral rules, then converts them into a refined system prompt. CASD improved on the unoptimized baseline by an average of 16.6 percentage points and beat GEPA on three of four benchmarks, although it lost on SpreadsheetBench-Verified. The estimated cost is about $1.60 per optimized prompt, more than 22 times lower than conventional validation-gated iterative approaches. The method requires no additional environment rollouts, iterative optimization loop, or held-out validation dataset, but its effectiveness depends on the quality of the available trajectory logs.
Source: Read the original article


