微软提出 CASD:用编码代理分析轨迹日志做提示词优化,平均提升 16.6 分

DAIR.AI · @dair_ai · X·2026-09-25 21:39·1小时前
AI 导读

微软论文《Coding Agents are Strong Prompt Optimizers》提出 Coding-Agent Skill Distillation(CASD),让现成编码代理读取完整智能体轨迹日志,自行编写分析代码统计失败模式并将发现写成规则提示词,无需环境访问和验证数据。

DAIR.AI@dair_ai
58AI 编辑部评分,满分 100

微软提出 CASD:用编码代理分析轨迹日志做提示词优化,平均提升 16.6 分

2026-09-25 21:39· 1小时前
AI 导读

微软论文《Coding Agents are Strong Prompt Optimizers》提出 Coding-Agent Skill Distillation(CASD),让现成编码代理读取完整智能体轨迹日志,自行编写分析代码统计失败模式并将发现写成规则提示词,无需环境访问和验证数据。

Banger paper from Microsoft on prompt optimization.

(bookmark it)

The claim that a coding agent reading your logs beats GEPA at prompt optimization

The overall finding is that you want to give a coding agent your full set of agent logs and let it write the analysis code, instead of running a search loop over small batches of trajectories.

CASD has an off-the-shelf coding agent compute statistics over the whole trajectory corpus, find recurring failure modes, read representative episodes and write the findings as rules in one prompt. It needs no environment access and no validation data.

Across ALFWorld, tau2-bench retail and telecom, and Spreadsheet Bench-Verified, one pass improves the unoptimized baseline by 16.6 points on average. GEPA improves it by 10.9 and SkillOpt by 5.3.

Each optimized prompt costs about $1.60, more than 22x cheaper than validation-gated search.

Paper: https://academy.dair.ai/papers/coding-agents-are-strong-prompt-optimizers-2609.26261