Coding agents are strong prompt optimizers: CASD beats GEPA, 22x cheaper

rohanpaul_ai · x · 2026-10-02

The paper 'Coding Agents are Strong Prompt Optimizers' (arXiv:2609.26261) proposes CASD: given only a static corpus of agent trajectories, an off-the-shelf coding agent synthesizes an optimized prompt without environment access or validation data. Key insight is reflection scope — instead of small-batch reasoning, the coding agent writes and executes analysis code to compute corpus-wide statistics, identify systematic failure modes, and distill behavioral rules. On ALFWorld, τ²-bench retail/telecom and SpreadsheetBench-Verified, one CASD pass beats GEPA on 3 of 4 benchmarks and SkillOpt on all four, improving the unoptimized baseline by 16.6 points on average vs 10.9 for GEPA. At $1.60 per prompt, it is over 22x cheaper than validation-gated search.

Related event: Microsoft Paper Shows Coding Agents Are Strong Prompt Optimizers(2 posts)→

Original post →

More from coding & agent

coding & agent channel →