AGL-SKILL:作为智能体优化器的编码框架
摘要
AGL-SKILL 提出让编码智能体自身充当可复用“技能”(指令、脚本、提示词)的优化器,并表明:在五项基准测试中,一个未经引导的编码智能体优于已发表的技能优化方法,而且在给定评估指标后,能够改进自身针对特定任务的行为。
查看缓存全文
缓存时间: 2026/11/26 09:29
# AGL-SKILL: Coding Harnesses as Agentic Optimizers
Source: [https://arxiv.org/html/2611.31794](https://arxiv.org/html/2611.31794)
###### Abstract
Frontier models are increasingly used through harnesses as agents, with growing autonomy to do useful work\. Agent performance can often be enhanced by the use of skills: reusable workflows, code, and prompts that provide task\-related information or guide the behaviour of the model\. Skills, being textual in nature, present themselves as another editable surface to be optimized; current methods have improved on handcrafting and one\-shot generation by treating skill development as an iterative process, using score\-driven search to tweak and improve performance\. In this paper, we demonstrate the efficacy of the agents themselves as optimizers: across five benchmarks, a coding agent without guidance substantially improves every target and outperforms published skill\-optimization methods\. More broadly, this shows the capability of agents to do such work and to refine their own behaviour to provide task\-specific context, as long as they are given a metric to measure against\.
## 1 Introduction
Large Language Models \(LLMs\) are being applied to an increasingly diverse set of tasks, often through harnesses such as Claude Code or Codex to more effectively engage with the engineering environment\. Harnesses provide models with tooling, context management, an execution environment, and subagent orchestration for them to better solve the problems they are working on; the combination of the two is commonly referred to as an agent and granted a large degree of autonomy in practice\([Anthropic, 2026a](https://arxiv.org/html/2611.31794#bib.bib26)\)\. Additional fine\-grained context for individual users and tasks can be provided to agents on demand through skills \(Figure[1](https://arxiv.org/html/2611.31794#S1.F1)\), which are folders of instructions, scripts, and reference material\([Agent Skills, 2026](https://arxiv.org/html/2611.31794#bib.bib27)\)\. How much a skill helps depends on these contents: whether by providing more nuanced information or more refined tooling built off an understanding of the problem space, some skills are better than others\.
Figure 1:Examples of skills from the Anthropic skills repository\([Anthropic, 2026b](https://arxiv.org/html/2611.31794#bib.bib28)\)\.The challenge, therefore, is to find a way to reliably develop skills that raise agent performance, whatever the task at hand\. Several ways have been explored: the most direct is to handcraft the skill, but this is limited by its author and inflexible to a shifting task environment; more recent score\-driven methods treat skill development as an optimization problem\([Yang et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib6);[Alzubi et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib7)\), using models to tweak the skill in a hill\-climbing process that keeps only the edits which improve the score, and is inefficient as a result\.
Agents, by contrast, have a wider but directed search space, and already possess the tooling and environment to do this work\. We therefore take the skill of a*target*agent as the object to be optimized, and set an*optimizer*agent to iterate on it, free to edit the rest of the target as well, guided by the target’s performance on the train split of a benchmark \(Figure[2](https://arxiv.org/html/2611.31794#S1.F2)\)\. We call this setup AGL\-SKILL\. To this end, we evaluate frontier models as agentic optimizers: two state\-of\-the\-art models in three popular harnesses, at three budgets and on five benchmarks\. Even without guidance, the agent is already a strong optimizer, outperforming every published method we compare against\.
Figure 2:A comparison of previous techniques and AGL\-SKILL\. Snowflakes denote fixed components\.Subsequently, we ask whether guidance improves on this by giving the optimizer the Agent Lightning skill – which is written for the optimization task itself – along with variants that use two\-phase optimization, subagents, or Git worktrees\. The answer is largely no: the skill and the variants occasionally raise the score, but none consistently beats the unguided optimizer by a notable margin\. The skill is instead designed to set up the environment for a fresh agent with no prior context of the task\. We also report the cost of each optimization and the test\-time cost of the resulting target agent\. A larger budget does not reliably buy a higher score, and the final score varies from run to run without tracking the optimization cost\.
The optimizer traces help explain why guidance adds so little: with or without it, the optimizers arrive at much the same solutions\. These solutions are seldom far\-fetched; making the target more robust is often enough to score highly, without recourse to an esoteric approach\. The Agent Lightning skill is published in the Agent Lightning repository \([https://github\.com/microsoft/agent\-lightning](https://github.com/microsoft/agent-lightning)\)\.
## 2 Related work
Prompt and workflow optimization\.Automatic prompt optimization treats instructions as parameters to be improved from task feedback, by generating and selecting candidates\([Zhou et al\., 2023](https://arxiv.org/html/2611.31794#bib.bib12)\), conditioning on previous candidates and their scores\([Yang et al\., 2024](https://arxiv.org/html/2611.31794#bib.bib13)\), searching over natural\-language critiques\([Pryzant et al\., 2023](https://arxiv.org/html/2611.31794#bib.bib14)\), propagating textual feedback backward\([Yuksekgonul et al\., 2024](https://arxiv.org/html/2611.31794#bib.bib9)\), or evolving prompts through reflection\([Agrawal et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib10)\)\. DSPy and MIPRO extend this to multi\-stage programs\([Khattab et al\., 2023](https://arxiv.org/html/2611.31794#bib.bib15);[Opsahl\-Ong et al\., 2024](https://arxiv.org/html/2611.31794#bib.bib16)\), while AgentOptimizer, ADAS, AFlow, and Cognify optimize an agent’s functions, code, or workflow structure\([Zhang et al\., 2024b](https://arxiv.org/html/2611.31794#bib.bib17);[Hu et al\., 2024](https://arxiv.org/html/2611.31794#bib.bib18);[Zhang et al\., 2024a](https://arxiv.org/html/2611.31794#bib.bib19);[He et al\., 2025](https://arxiv.org/html/2611.31794#bib.bib20)\)\. The latter reach beyond prompt text, but each supplies a purpose\-built search procedure over a particular agent representation\.
Skill optimization\.Skill optimization targets reusable agent guidance rather than a single task prompt\. SkillOpt trains a single skill document with bounded, validation\-gated edits\([Yang et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib6)\), EvoSkill uses proposer and builder agents to evolve skills, including helper scripts, for a coding agent\([Alzubi et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib7)\), and Trace2Skill distills trajectory\-local lessons into transferable guidance\([Ni et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib8)\)\. These are the closest published baselines for our evaluation\. Our optimizer has a wider editable surface: beyond the skill, scripts, and system prompt that EvoSkill can edit, it may also change the target’s tools and runtime policy\.
Iterative and self\-improving agents\.Agents have also been made to improve themselves: Self\-Refine and Reflexion revise their own outputs from self\-generated feedback\([Madaan et al\., 2023](https://arxiv.org/html/2611.31794#bib.bib11);[Shinn et al\., 2023](https://arxiv.org/html/2611.31794#bib.bib21)\), while STOP, SICA, and the Darwin Gödel Machine edit their own scaffolding or implementation\([Zelikman et al\., 2023](https://arxiv.org/html/2611.31794#bib.bib22);[Robeyns et al\., 2025](https://arxiv.org/html/2611.31794#bib.bib23);[Zhang et al\., 2025](https://arxiv.org/html/2611.31794#bib.bib24)\)\. Agent Lightning instead separates agent execution from reinforcement\-learning training\([Luo et al\., 2025](https://arxiv.org/html/2611.31794#bib.bib25)\)\. In AGL\-SKILL, the optimizer is an off\-the\-shelf coding agent and the target a separate agent\.
Coding agents as optimizers\.Most recently, coding agents have themselves been used to improve a separate agent\. VeRO wraps a coding agent in a harness of versioned snapshots, budgeted evaluation, and execution traces\([Ursekar et al\., 2026a](https://arxiv.org/html/2611.31794#bib.bib29)\); HarnessOpt\-Bench measures how well frontier models edit a seed harness under a fixed evaluation budget\([Ursekar et al\., 2026b](https://arxiv.org/html/2611.31794#bib.bib30)\); CASD has a coding agent distill a static corpus of trajectories into a prompt in a single pass\([Singh et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib31)\); and SkillOpt\-Lite reduces skill optimization to a minimal pipeline that extends to the whole harness\([Shen et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib32)\)\. Outside coding agents, OEO has a frontier model compose its own skill\-improvement loop, which matches or beats SkillOpt and GEPA with a frontier optimizer but not with a medium one\([Xue and Yang, 2026](https://arxiv.org/html/2611.31794#bib.bib33)\)\. VeRO also varies what the optimizer is given: handing Claude Code its evaluation tools and pattern library moves the average score by 0\.02, and the larger gain it reports comes from a different agent built on that library\. AGL\-SKILL puts the same question to off\-the\-shelf coding agents, given a skill or a prescribed workflow of their own, and finds that neither consistently helps\.
Figure 3:Experimental setup of AGL\-SKILL: the optimizer iterates on the target agent under a fixed dollar budget, and the frozen target agent is then evaluated on the held\-out split\.
## 3 Method
Overview\.For each run, we give the optimizer the train split \(Figure[3](https://arxiv.org/html/2611.31794#S2.F3)\)\. The optimizer accesses the model API through a proxy, which monitors token usage and prevents web access\. While within budget, the optimizer can inspect the training examples, edit the target agent’s prompts, code, tools, and skills, and implement any other changes\. It decides when to run evaluation on the target and which subset of the split to run it on\. Once optimization ends – whether the optimizer chooses to stop or the budget is used up – the edited target agent is frozen and run on the test split of the benchmark, where a separate evaluator scores the results\. We run up to three repetitions of each condition, under the setup summarized in Table[1](https://arxiv.org/html/2611.31794#S3.T1)\. The optimizer is free to change the target’s effort\.
Table 1:Experimental setup\.Optimization variants\.We evaluate five optimizer conditions:
*Vanilla\.*The optimizer receives only the task prompt \(Appendix[A](https://arxiv.org/html/2611.31794#A1)\)\. Every other variant is built on top of this base version\.
*Two\-phase\.*The optimizer first maximizes accuracy, then reduces the target’s inference cost while maintaining the score it has reached\.
*Agent Lightning skill\.*The optimizer loads the published Agent Lightning optimizer skill, which covers budget tracking, the action space of possible changes with tradeoffs, how to read failure evidence, and the evaluation context\.
*Subagents\.*As an extension of the Agent Lightning skill, the optimizer is told to spread part of its budget across two subagents to explore the solution space in parallel, then to select or combine the best\-performing solutions\.
*Git worktrees\.*On top of the Agent Lightning skill, the optimizer is told to build candidate solutions in separate Git worktrees from the same starting commit, compare them on the same training cases, and restore the best one\.
Subagents and Git worktrees are run at the $10 budget only\.
Benchmarks\.We evaluate on five benchmarks: SpreadsheetBench\([Ma et al\., 2024](https://arxiv.org/html/2611.31794#bib.bib1)\), ALFWorld\([Shridhar et al\., 2021](https://arxiv.org/html/2611.31794#bib.bib2)\), OfficeQA\([Databricks, 2025](https://arxiv.org/html/2611.31794#bib.bib3)\), SearchQA\([Dunn et al\., 2017](https://arxiv.org/html/2611.31794#bib.bib4)\), and LiveMath\([He et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib5)\)\. Table[2](https://arxiv.org/html/2611.31794#S3.T2)lists the tasks, splits, and scoring methods\.
Table 2:Benchmarks used: the train split is available during optimization, and the final target agent is evaluated on the test split\.Metrics\.We report the optimizer, target, and finale costs, corresponding to the cost of the optimizer model, the target model during optimization, and the target model during evaluation on the full test split, respectively\. Accuracy is the held\-out accuracy on the benchmark\. Table[4](https://arxiv.org/html/2611.31794#S4.T4)combines the optimizer and target costs into one optimization cost; Table[5](https://arxiv.org/html/2611.31794#A2.T5)in the appendix gives the full breakdown\.
## 4 Results
Overview\.Coding agents outperform the strongest published method on every benchmark at every combination of harness and budget \(Table[3](https://arxiv.org/html/2611.31794#S4.T3)\)\. While some benchmarks are already near\-saturated with a high baseline score, we demonstrate significant improvement, with optimized agents obtaining near double the previous best on lower\-scoring benchmarks such as LiveMath\. The improvement over the best previous result ranges from 3% on SearchQA to 98% on LiveMath, averaging 0\.15 in accuracy – a 35% improvement – across the five benchmarks\.
Table 3:Mean held\-out accuracy by method and benchmark: all target agents usegpt\-5\.4\-mini\. The first seven rows are as reported by SkillOpt\([Yang et al\., 2026](https://arxiv.org/html/2611.31794#bib.bib6)\)\. Our baseline is the unoptimized target agent\. Optimized rows average the harness\-budget means across all three harnesses and budgets; Subagents and Git worktrees average the $10 runs of all three harnesses\.Harnesses\.The difference in performance across harnesses can largely be attributed to per\-run variance\. No harness stands above the rest: Codex is ahead on SpreadsheetBench and LiveMath, Claude Code on OfficeQA, and the three are roughly even on ALFWorld and SearchQA \(Appendix[B](https://arxiv.org/html/2611.31794#A2)\)\. Codex and Copilot run the same model,gpt\-5\.6\-sol, and the gap between them stays within the spread of repeated runs on every benchmark\. The only benchmark with a consistent difference is LiveMath, where Claude Code, the only harness runningclaude\-opus\-5, scores lower than both; it is therefore more likely an effect of the model than of the harness in isolation\.
Skills\.The effect of giving the optimizer a skill is similarly trivial\. Compared to the Vanilla version with the same benchmark, harness, and budget, the Agent Lightning skill scores lower more often than higher, and the same holds for two\-phase optimization, Subagents, and Git worktrees \(Table[3](https://arxiv.org/html/2611.31794#S4.T3), Appendix[B](https://arxiv.org/html/2611.31794#A2)\)\. Most of these differences, again, can be attributed to per\-run variance, and no version consistently outperforms the rest\. Guided optimizers do not find different solutions; they arrive at the same ones as the Vanilla version, slightly less often\. For instance, on ALFWorld, nearly every Vanilla run removes the model from the final agent, whereas only about two thirds of two\-phase runs and half of Subagents runs do so\.
Cost and budget\.A larger budget does not directly translate to a better score\. The per\-run score is only weakly correlated with the amount spent: the $25 runs beat the $5 runs in just two thirds of the benchmark–harness pairs \(Appendix[B](https://arxiv.org/html/2611.31794#A2)\), and only by 0\.03 on average\. Similarly, runs are not always limited by their budget; at $25, a quarter of the optimizers stop with more than a fifth of it unspent\. A larger budget mainly gives the optimizer slack to recover from mistakes, and these are uncommon: on ALFWorld and LiveMath, the same solutions are found about as often at $5 as at $25\. About two thirds of what is spent goes to the optimizer’s own calls, and the rest to running the target on training examples \(Table[5](https://arxiv.org/html/2611.31794#A2.T5)\)\. Optimization spend is also largely independent of the finale cost \(Table[4](https://arxiv.org/html/2611.31794#S4.T4), Figure[4](https://arxiv.org/html/2611.31794#S4.F4)\)\. On ALFWorld the test\-time cost falls to virtually nothing, and on LiveMath it falls by about a third; on the other three benchmarks the optimized agent is more expensive than the baseline, despite the task prompt asking the optimizer to keep any increase in per\-run cost minimal\. Two\-phase optimization, whose second phase exists to cut that cost, spends less on optimization but produces agents that are on average no cheaper to run\.
Table 4:Mean cost per run in USD: each cell reports optimization cost / finale cost, averaged over all three harnesses at the stated nominal budget\.Figure 4:Held\-out score against finale cost: each point averages the runs of one harness and budget; the gray diamond is the unoptimized baseline\.Behaviour\.Optimizer behaviour is mostly consistent across runs\. On SpreadsheetBench most runs add a repair step that retries after an execution failure; on OfficeQA they clean up the form of the answer and add further model calls; on SearchQA they rework how the retrieved snippets are presented and normalize the extracted answer\. The edits are small, typically around two or three files and a couple of hundred lines, and are tested only a handful of times before the run ends\.
ALFWorld and LiveMath are different, in that the gain comes from removing the model from the final solution\. On ALFWorld almost every run replaces model\-driven action selection with a deterministic controller, so that the final agent makes no model calls at all\. On LiveMath most runs answer a subset of the test set from the answer selection structure alone and call the model only for the rest; these runs score well above the few that still query the model for every question\. Such solutions raise the benchmark score without making the agent better in any general sense, a point we return to in the limitations\.
## 5 Limitations and future work
All five benchmarks provide labeled training examples, an automatic scorer, and a single scalar metric; this vastly simplifies the hill\-climbing by giving the optimizer a clear relationship between its changes and the result\. This is certainly not representative of many real\-world scenarios with sparse, noisy, or abstract rewards\. The same property allows benchmark\-specific solutions: on ALFWorld and LiveMath, the gain comes from removing the model from the final agent, which improves the score without necessarily improving the agent on the task itself\. And as Claude Code runs a different model from Codex and Copilot, the harness comparison also cannot be made in isolation from the model\. In addition, all runs use a single target model with at most three repetitions per condition, and the published results we compare against are taken as reported rather than reproduced\.
As for future work, while the Agent Lightning skill was developed over many iterations of working with Claude and Codex, the same setup could be applied to the skill itself with an optimizer recursively improving the skill\. A full cross\-model\-harness evaluation would disentangle the effect of the harness from that of the model, and evaluating a target under a different harness from the one it was optimized in would show whether the improvements transfer\. Lastly, each run in this work is independent, starting without context from previous runs and ending with a frozen target; an optimizer that retains what it has learned across runs and continues to refine the agent as the task environment shifts would constitute a step towards continual learning\.
## 6 Conclusion
In this paper, we evaluate coding agents as optimizers of other agents\. Given only a target agent, a train split, and a budget, a coding agent without guidance outperforms the strongest published skill\-optimization method on all five benchmarks at every combination of harness and budget\. The choice of harness, the addition of a skill, and the size of the budget all matter little: most of the differences between them can be attributed to per\-run variance, and guided optimizers arrive at the same solutions as unguided ones\. More broadly, this shows that agents are already capable of doing such work on their own, as long as they are given a metric to measure against\.
## References
- Agent SkillsAgent skills overview\.Note:Open format specificationAccessed 2026\-11\-22External Links:[Link](https://agentskills.io/what-are-skills)Cited by:[§1](https://arxiv.org/html/2611.31794#S1.p1.1)\.
- Agrawalet al\.\(2026\)L\. A\. Agrawal, S\. Tan, D\. Soylu, N\. Ziems, R\. Khare, K\. Opsahl\-Ong, A\. Singhvi, H\. Shandilya, M\. J\. Ryan, M\. Jiang, C\. Potts, K\. Sen, A\. G\. Dimakis, I\. Stoica, D\. Klein, M\. Zaharia, and O\. KhattabGEPA: reflective prompt evolution can outperform reinforcement learning\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2507.19457)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Alzubiet al\.\(2026\)S\. Alzubi, N\. Provenzano, J\. Bingham, W\. Chen, and T\. VuEvoSkill: automated skill discovery for multi\-agent systems\.External Links:2603\.02766,[Link](https://arxiv.org/abs/2603.02766)Cited by:[§1](https://arxiv.org/html/2611.31794#S1.p2.1),[§2](https://arxiv.org/html/2611.31794#S2.p2.1)\.
- Anthropic \(2026a\)AnthropicMeasuring AI agent autonomy in practice\.Note:Research reportExternal Links:[Link](https://www.anthropic.com/research/measuring-agent-autonomy)Cited by:[§1](https://arxiv.org/html/2611.31794#S1.p1.1)\.
- Anthropic \(2026b\)AnthropicSkills\.Note:GitHub repositoryCommit e4bb5d9, 2026\-11\-16External Links:[Link](https://github.com/anthropics/skills)Cited by:[Figure 1](https://arxiv.org/html/2611.31794#S1.F1)\.
- Databricks \(2025\)DatabricksIntroducing OfficeQA: a benchmark for end\-to\-end grounded reasoning\.Note:Official benchmark releaseExternal Links:[Link](https://github.com/databricks/officeqa)Cited by:[§3](https://arxiv.org/html/2611.31794#S3.p9.1)\.
- Dunnet al\.\(2017\)M\. Dunn, L\. Sagun, M\. Higgins, V\. U\. Guney, V\. Cirik, and K\. ChoSearchQA: a new Q&A dataset augmented with context from a search engine\.External Links:1704\.05179,[Link](https://arxiv.org/abs/1704.05179)Cited by:[§3](https://arxiv.org/html/2611.31794#S3.p9.1)\.
- Heet al\.\(2026\)L\. He, Q\. Yu, H\. Dong, B\. Liao, X\. Xu, M\. Goldblum, J\. Bian, and N\. MesgaraniLiveMathematicianBench: a live benchmark for mathematician\-level reasoning with proof sketches\.External Links:2604\.01754,[Link](https://arxiv.org/abs/2604.01754)Cited by:[§3](https://arxiv.org/html/2611.31794#S3.p9.1)\.
- Heet al\.\(2025\)Z\. He, R\. Abhyankar, V\. Srivatsa, and Y\. ZhangCognify: supercharging gen\-AI workflows with hierarchical autotuning\.External Links:2502\.08056,[Link](https://arxiv.org/abs/2502.08056)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Huet al\.\(2024\)S\. Hu, C\. Lu, and J\. CluneAutomated design of agentic systems\.External Links:2408\.08435,[Link](https://arxiv.org/abs/2408.08435)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Khattabet al\.\(2023\)O\. Khattab, A\. Singhvi, P\. Maheshwari, Z\. Zhang, K\. Santhanam, S\. Vardhamanan, S\. Haq, A\. Sharma, T\. T\. Joshi, H\. Moazam, H\. Miller, M\. Zaharia, and C\. PottsDSPy: compiling declarative language model calls into self\-improving pipelines\.External Links:2310\.03714,[Link](https://arxiv.org/abs/2310.03714)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Luoet al\.\(2025\)X\. Luo, Y\. Zhang, Z\. He, Z\. Wang, S\. Zhao, D\. Li, L\. K\. Qiu, and Y\. YangAgent lightning: train any ai agents with reinforcement learning\.External Links:2508\.03680,[Link](https://arxiv.org/abs/2508.03680)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p3.1)\.
- Maet al\.\(2024\)Z\. Ma, B\. Zhang, J\. Zhang, J\. Yu, X\. Zhang, X\. Zhang, S\. Luo, X\. Wang, and J\. TangSpreadsheetBench: towards challenging real world spreadsheet manipulation\.External Links:2406\.14991,[Link](https://arxiv.org/abs/2406.14991)Cited by:[§3](https://arxiv.org/html/2611.31794#S3.p9.1)\.
- Madaanet al\.\(2023\)A\. Madaan, N\. Tandon, P\. Gupta, S\. Hallinan, L\. Gao, S\. Wiegreffe, U\. Alon, N\. Dziri, S\. Prabhumoye, Y\. Yang, S\. Gupta, B\. P\. Majumder, K\. Hermann, S\. Welleck, A\. Yazdanbakhsh, and P\. ClarkSelf\-refine: iterative refinement with self\-feedback\.InAdvances in Neural Information Processing Systems,External Links:[Link](https://arxiv.org/abs/2303.17651)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p3.1)\.
- Niet al\.\(2026\)J\. Ni, Y\. Liu, X\. Liu, Y\. Sun, M\. Zhou, P\. Cheng, D\. Wang, E\. Zhao, X\. Jiang, and G\. JiangTrace2Skill: distill trajectory\-local lessons into transferable agent skills\.External Links:2603\.25158,[Link](https://arxiv.org/abs/2603.25158)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p2.1)\.
- Opsahl\-Onget al\.\(2024\)K\. Opsahl\-Ong, M\. J\. Ryan, J\. Purtell, D\. Broman, C\. Potts, M\. Zaharia, and O\. KhattabOptimizing instructions and demonstrations for multi\-stage language model programs\.InConference on Empirical Methods in Natural Language Processing,pp\. 9340–9366\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.emnlp-main.525),[Link](https://aclanthology.org/2024.emnlp-main.525/)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Pryzantet al\.\(2023\)R\. Pryzant, D\. Iter, J\. Li, Y\. T\. Lee, C\. Zhu, and M\. ZengAutomatic prompt optimization with Gradient Descent and beam search\.InConference on Empirical Methods in Natural Language Processing,External Links:[Link](https://arxiv.org/abs/2305.03495)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Robeynset al\.\(2025\)M\. Robeyns, M\. Szummer, and L\. AitchisonA self\-improving coding agent\.External Links:2504\.15228,[Link](https://arxiv.org/abs/2504.15228)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p3.1)\.
- Shenet al\.\(2026\)Y\. Shen, B\. Li, and X\. ZhangSkillOpt\-Lite: better and faster agent self\-evolution via one line of vibe\.External Links:2607\.03451,[Link](https://arxiv.org/abs/2607.03451)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p4.1)\.
- Shinnet al\.\(2023\)N\. Shinn, F\. Cassano, E\. Berman, A\. Gopinath, K\. Narasimhan, and S\. YaoReflexion: language agents with verbal reinforcement learning\.InAdvances in Neural Information Processing Systems,External Links:[Link](https://arxiv.org/abs/2303.11366)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p3.1)\.
- Shridharet al\.\(2021\)M\. Shridhar, X\. Yuan, M\. Côté, Y\. Bisk, A\. Trischler, and M\. HausknechtALFWorld: aligning text and embodied environments for interactive learning\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2010.03768)Cited by:[§3](https://arxiv.org/html/2611.31794#S3.p9.1)\.
- Singhet al\.\(2026\)A\. Singh, S\. Gautam, P\. Gupta, N\. Mehrotra, T\. Bakshi, and S\. GulwaniCoding agents are strong prompt optimizers\.External Links:2609\.26261,[Link](https://arxiv.org/abs/2609.26261)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p4.1)\.
- Ursekaret al\.\(2026a\)V\. Ursekar, A\. Shanker, V\. Chatrath, Y\. Xue, and S\. M\. DentonVeRO: a harness for agents to optimize agents\.Note:Accepted to ICML 2026External Links:2602\.22480,[Link](https://arxiv.org/abs/2602.22480)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p4.1)\.
- Ursekaret al\.\(2026b\)V\. Ursekar, A\. Shanker, Y\. Maurya, S\. Yasser, V\. S\. Kalmath, V\. Chatrath, and Y\. XueHarnessOpt\-Bench: evaluating LLMs at harness optimization\.External Links:2608\.06301,[Link](https://arxiv.org/abs/2608.06301)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p4.1)\.
- Xue and Yang \(2026\)H\. Xue and F\. YangRethinking self\-evolving agents: do we still need prescribed optimization pipelines?\.External Links:2608\.09629,[Link](https://arxiv.org/abs/2608.09629)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p4.1)\.
- Yanget al\.\(2024\)C\. Yang, X\. Wang, Y\. Lu, H\. Liu, Q\. V\. Le, D\. Zhou, and X\. ChenLarge language models as optimizers\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2309.03409)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Yanget al\.\(2026\)Y\. Yang, Z\. Gong, W\. Huang, Q\. Yang, Z\. Zhou, Z\. Huang, Y\. Li, X\. Gao, Q\. Dai, B\. Liu, K\. Qiu, Y\. Yang, D\. Chen, X\. Yang, and C\. LuoSkillOpt: executive strategy for self\-evolving agent skills\.External Links:2605\.23904,[Link](https://arxiv.org/abs/2605.23904)Cited by:[§1](https://arxiv.org/html/2611.31794#S1.p2.1),[§2](https://arxiv.org/html/2611.31794#S2.p2.1),[Table 3](https://arxiv.org/html/2611.31794#S4.T3)\.
- Yuksekgonulet al\.\(2024\)M\. Yuksekgonul, F\. Bianchi, J\. Boen, S\. Liu, Z\. Huang, C\. Guestrin, and J\. ZouTextGrad: automatic “differentiation” via text\.External Links:2406\.07496,[Link](https://arxiv.org/abs/2406.07496)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Zelikmanet al\.\(2023\)E\. Zelikman, E\. Lorch, L\. Mackey, and A\. T\. KalaiSelf\-taught optimizer \(STOP\): recursively self\-improving code generation\.External Links:2310\.02304,[Link](https://arxiv.org/abs/2310.02304)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p3.1)\.
- Zhanget al\.\(2025\)J\. Zhang, S\. Hu, C\. Lu, R\. Lange, and J\. CluneDarwin gödel machine: open\-ended evolution of self\-improving agents\.External Links:2505\.22954,[Link](https://arxiv.org/abs/2505.22954)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p3.1)\.
- Zhanget al\.\(2024a\)J\. Zhang, J\. Xiang, Z\. Yu, F\. Teng, X\. Chen, J\. Chen, M\. Zhuge, X\. Cheng, S\. Hong, J\. Wang, B\. Zheng, B\. Liu, Y\. Luo, and C\. WuAFlow: automating agentic workflow generation\.External Links:2410\.10762,[Link](https://arxiv.org/abs/2410.10762)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Zhanget al\.\(2024b\)S\. Zhang, J\. Zhang, J\. Liu, L\. Song, C\. Wang, R\. Krishna, and Q\. WuOffline training of language model agents with functions as learnable weights\.InInternational Conference on Machine Learning,pp\. 60315–60335\.External Links:[Link](https://proceedings.mlr.press/v235/zhang24cd.html)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
- Zhouet al\.\(2023\)Y\. Zhou, A\. I\. Muresanu, Z\. Han, K\. Paster, S\. Pitis, H\. Chan, and J\. BaLarge language models are human\-level prompt engineers\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2211.01910)Cited by:[§2](https://arxiv.org/html/2611.31794#S2.p1.1)\.
## Appendix AOptimizer prompts
Every optimizer receives the task prompt below, shown for OfficeQA at the $5 budget; only the package name, evaluation command, and dollar amount change across benchmarks and budgets\.
```
I’ve got a coding agent in this workspace (/workspace) -- the ‘officeqa_agent‘ package
-- and it’s underperforming on our benchmark. Can you raise its benchmark score while
keeping any increase in per-run cost minimal -- buy score cheaply, and only pay more
when it clearly earns its keep?
A few things to know:
- Measure your score on the labeled data by running:
python -m officeqa_agent.run_baseline --dataset-root /data/train --model
gpt-5.4-mini --artifacts-dir ./_outputs
- The labeled examples at ‘/data/train‘ are the only data present -- split your own
validation subset out of them if you want one; the held-out scoring set is sealed and
never here.
- Keep the agent’s command-line interface working -- an external evaluator runs it the
same way (‘python -m officeqa_agent.run_baseline --dataset-root <inputs> --model
gpt-5.4-mini --no-score‘), so don’t break that contract.
- Evaluation runs your agent with a fixed model, so changing the model in the agent’s
code won’t move its score -- develop with anything you like, but the gains that count
are the ones that lift accuracy at that fixed setting.
- Network egress is limited to the metered model gateway whose credentials are already
in your environment.
- You have a budget of up to $5 for this work -- pace yourself so you finish within it.
The dollar budget counts every API call this work makes -- both your own usage and the
‘officeqa_agent‘ agent’s usage each time you evaluate it -- so factor re-evaluations
into your pacing.
```
Every other condition adds “Use the agl\-optimizer skill to guide how you approach this\.” to this prompt and provides a skill: the published one for the Agent Lightning skill condition \([https://github\.com/microsoft/agent\-lightning](https://github.com/microsoft/agent-lightning)\), and the following for Two\-phase, where the harness sends the phase switch once about half of the budget has been used:
```
Use the development budget in two phases:
1. Until the harness sends ‘[PHASE SWITCH]‘, maximize benchmark score. Measure, iterate,
and preserve the best-scoring checkpoint.
2. At the switch, treat that score as a constraint. Use the remaining budget to minimize
the deployed agent’s per-evaluation LLM cost, keeping only changes that preserve the
best measured score.
Development spend and deployed-agent cost are different. Keep evaluating both score and
deployed cost, leave the best score-first/cost-second checkpoint on disk, preserve the
external interface, and never use held-out data or modify the scorer.
```
Subagents and Git worktrees use variants of the Agent Lightning skill, each with one additional section\. The section added for Subagents is:
```
Split the development budget across two subagents, reserving enough for final
selection. Run them concurrently as independent optimization threads from the
same starting checkpoint in isolated workspaces. Compare them using the same
evaluation setup. Select the better result, or combine only measured improvements
and re-evaluate the combined result before finalizing.
Use the harness’s subagent tool directly (‘Agent‘ in Claude Code, or its
equivalent). Choose each child model to fit its task when model selection is
available. Do not substitute background shell jobs or sequential main-thread
work for the two subagent calls. If the tool is unavailable, continue in the
main thread and state that limitation.
```
The section added for Git worktrees is:
```
Use ‘/workspace‘ as the main checkout and ‘/worktrees‘ only for candidate checkouts.
1. In ‘/workspace‘, initialize Git if needed, set the supplied neutral identity,
stage the pristine target, and commit it before editing.
2. Create at least two candidate branches and attach them as worktrees under
‘/worktrees‘. Start every candidate from the same pristine commit.
3. Give each candidate one focused hypothesis. Evaluate every candidate with the
same training cases, command, target model, and effort unless effort itself is
the tested change.
4. Record each candidate’s commit, hypothesis, training score, evaluation cost,
completion rate, and important failures in ‘/artifacts/worktree_candidates.md‘.
5. Compare measured results rather than recency. Merge, cherry-pick, or restore the
best candidate into ‘/workspace‘, then re-run a final validation there.
6. Before exiting, remove every active candidate with ‘git worktree remove‘, prune
stale metadata, and leave ‘/workspace‘ at the selected measured checkpoint.
Do not use branches as unlabeled scratch space. Commit before scoring, do not compare
candidates evaluated under different conditions, and never spend held-out data.
```
## Appendix BDetailed results
The following tables report mean held\-out accuracy for each available benchmark–harness–budget condition\. Each value averages up to three repetitions; dashes indicate unavailable results\. Figure[5](https://arxiv.org/html/2611.31794#A2.F5)plots the held\-out score against total cost\.
Table 5:Cost breakdown per run in USD: the optimizer and target costs add up to the optimization cost in Table[4](https://arxiv.org/html/2611.31794#S4.T4)\.Figure 5:Held\-out score against total cost: total cost combines the optimization and finale costs, on a logarithmic axis\.相似文章
SkillOpt-Lite: 通过一行指令实现更好更快的智能体自我进化
SkillOpt-Lite 提出了一种用于自主智能体技能优化的最小可行流水线,通过将所有组件视为可编辑代码并集成到生产编码智能体中,实现更好更快的自我进化。它通过零阶优化形式化技能优化,并在基准测试上优于先前方法。
大规模代码基础的智能体智能技能合成
Code2Skill 是一个自动化管道,它从源代码中提取可验证的技能,以提升AI智能体的性能,并生成一个大规模的基础技能库,在交互经验之前增强智能体能力。
SkillOpt:自我进化智能体技能的执行策略
SkillOpt 引入了一种系统化的文本空间优化器,用于智能体技能。该优化器将技能训练为智能体的外部状态,具有稳定的更新和零部署推理开销,在多个基准测试和执行环境中实现了卓越性能。
@AlphaSignalAI: https://x.com/AlphaSignalAI/status/2069064122218717387
本文探讨了AI代理如何利用微软研究院的SkillOpt等技术自动编写和优化其技能文件,该技术将技能文档视为可训练状态,并带来显著的性能提升。文章还解决了手动技能调优的挑战,并介绍了GEPA和EvoSkill等进化方法的框架。
Better, Faster, Stronger: Programmatic Skill Learning Best Reduces Agent Cost
This paper argues that representing agent skills as code, rather than natural language, yields the best cost reduction for LLM agents, and introduces SpeedRunner, a coding agent that learns programmatic skills from past trajectories to improve performance while cutting costs across embodied environments.