2 min read
Add as a preferred source on Google

Microsoft Researchers Say Coding-Agent Method Beats Prompt Optimizers on Most Tests

CASD improved an unoptimized baseline by 16.6 percentage points across four benchmarks and costs about $1.60 per optimized prompt.

Mechanical hand guides a thread through a sculptural maze / TokenPost.ai
Mechanical hand guides a thread through a sculptural maze / TokenPost.ai

Microsoft researchers say a general-purpose coding-agent method improved other AI agents on most tested benchmarks while avoiding the repeated environment rollouts and iterative optimization used by some competing approaches.

The method, called Coding-Agent Skill Distillation, or CASD, analyzes logs from previous agent attempts. It extracts performance statistics, recurring failure patterns and useful behavioral rules before incorporating them into a revised system prompt.

The paper reports an average improvement of 16.6 percentage points over an unoptimized baseline across four agentic benchmarks under matched data-access conditions. CASD uses a single offline pass over existing trajectories rather than multiple environment rollouts, iterative optimization loops or a held-out validation dataset.

In comparisons with GEPA, a reflective prompt optimizer, CASD scored higher on three of four tests. It reached 83.3 on ALFWorld versus 74.0 for GEPA, 40.0 versus 39.2 on τ²-bench retail and 39.2 versus 17.5 on τ²-bench telecom.

GEPA led on SpreadsheetBench-Verified, where it scored 60.7 compared with CASD’s 51.3. The paper also reports that CASD outperformed SkillOpt, a validation-gated reflective search method, in all reported trials.

The paper puts the cost of optimizing a prompt with CASD at about $1.60, more than 22 times cheaper than conventional validation-gated iterative approaches. Those methods repeatedly run agents in their environments and score each attempt, adding compute and time requirements.

CASD requires prior agent trajectories for analysis, so its results depend on having a useful collection of earlier attempts. The benchmark results also were not uniformly favorable: GEPA retained its lead on SpreadsheetBench-Verified, while CASD’s advantage on the retail test was less than one percentage point.

Agamdeep Singh, Srishti Gautam, Priyanshu Gupta, Nikita Mehrotra, Tanmay Bakshi and Sumit Gulwani are listed as the paper’s authors. The paper was submitted in August 2026.

Simon Yoon

Reporter

Simon Yoon reports on blockchain technology for TokenPost. Send corrections or tips to info@tokenpost.com.

Loading…