Manuscript Offprint

arXiv:2610.19951

AtomSearch: Evidence-Grounded Tree Search for Agent Skill Optimization

Jia Tong, Senyou Deng, Min Peng, Jianfeng Pan

ABSTRACT

Agent skills adapt frozen models through editable external instructions. Revising several rules at once makes changes difficult to inspect, while judging each local edit only by its immediate score can discard useful intermediate states. We introduce AtomSearch, which keeps revision actions local while using subsequent skill states to guide search. Contrastive atomic editing links each primitive rule edit to failed and successful executions, a behavioral hypothesis, and an intended scope. Skill-State Tree Search (STS) evaluates short edit compositions and selectively retains them as executable states that can be revisited and extended. Outcome memory supplies later proposals with observed repair and regression statistics. We evaluate AtomSearch across four tasks and five target models. With deepseek-v4-flash, it exceeds SkillOpt on three of four tasks, including a 9.68-percentage-point gain on LiveMathematicianBench, and SkillOpt's final skills contain 2.3–19.7 times as many characters. In 67% of completed searches, the best validation state passes through an ancestor that was not highest-scoring at its depth. These results show how local rule edits can support the exploration of useful revision paths and yield compact skills, with additional offline evaluations used to explore alternative states.

1 INTRODUCTION

Agent skills package task-specific instructions, procedures, scripts, and supporting resources into reusable artifacts that an agent can load at execution time (Zhang et al., 2025a). Because the skill sits outside the model parameters, it can be revised without retraining the underlying model. Reusable artifacts also include executable code skills, as in Voyager (Wang et al., 2023). We study how execution feedback can improve a fixed agent by revising its skill instructions.

The hard part is deciding what a revision should be and how its value should be judged. A candidate update may change several behavioral rules at once. If the score rises, the gain is assigned to the whole update rather than to a specific change; if it falls, the source of the regression is equally unclear. Repeating this process can also leave behind rules whose individual value was never established, so the skill grows even when some additions are redundant.

Recent work already addresses parts of this problem. SkillOpt restricts revisions to bounded add, delete, or replace operations and validates candidates on held-out data (Yang et al., 2026). Skill- α\alpha decomposes skill generation into individually evaluable sequential edits (Shen et al., 2026), and SkillRevise uses execution traces to diagnose defects before applying targeted repairs (Liu et al., 2026). Tree-based methods address a different limitation: bilevel skill optimization uses MCTS to search skill structure (Huang et al., 2026), while SkillHEX maintains persistent revision branches under sparse test-time feedback (Feng et al., 2026). These methods make revisions more controlled or broaden the search, but the revision unit and the horizon used to value that revision are still largely separate design choices.

Fine-grained edits can still interact. One edit may establish a condition under which a later edit becomes useful despite little immediate gain. It may also enable a correction that would not have been proposed from the original state. An optimizer that keeps only locally strong states can therefore discard useful paths. Figure 4 shows one such path, where a weaker intermediate state leads to the best state in the tree.

Figure

Figure 1: Overview of AtomSearch. Contrastive atomic editing (top) contrasts failed and passed executions into edit specifications and ranked primitive edits. Skill-State Tree Search (left and bottom) applies the top-ranked edit at the node selected by UCT, also scores a short lookahead with up to two further edits, keeps the lookahead only if it beats the primitive child, and backs up the kept state's reward. Outcome memory (right) records repairs and regressions per edit for later proposals; its counts are schematic.

AtomSearch decouples the granularity of revision from the horizon over which revision paths are evaluated: each proposal specifies one primitive rule edit, while later outcomes guide exploration of its path. Contrastive atomic editing links the edit to failed and successful executions, a behavioral hypothesis, scope, expected effect, and operation rationale. The change and its evidence are traceable; execution measures the resulting skill's performance.

Skill-State Tree Search (STS) then evaluates that local action in a broader search context. Each node is a complete executable skill. Alternative revision paths remain searchable, and short deterministic rollouts test whether a primitive edit becomes useful after additional edits. When a rollout beats its primitive child, its composition becomes a persistent state that can be revisited. The edit stays local, but its value is allowed to emerge over later skill states.

Execution also reveals repair and regression outcomes that a scalar score hides. A revision can repair failed cases, break previously correct ones, or repeat a direction that has already been tried. We keep this information in a bounded outcome memory and expose selected records to later proposal rounds. The tree controls where search effort goes; the memory supplies the proposer with what earlier revisions actually did.

Repeated skill revision of this kind is closely related to recursive self-improvement (RSI), in which an agent keeps improving the artifacts that govern its own behavior (Zelikman et al., 2023; Zhang et al., 2025b; 2026; Wu et al., 2026). The longer such a loop runs, the more it matters that each edit can be traced to its evidence and that earlier repairs and regressions are remembered; contrastive atomic editing and outcome memory provide both. The skill growth noted earlier matters as well, since every accepted change is another chance for the skill to lengthen.

Our contributions are:

• We define a contrastive atomic revision interface that binds execution evidence, a behavioral hypothesis, and scope to one primitive rule edit. Alternative corrections remain separate candidates that search can test and combine.

• We develop Skill-State Tree Search over complete executable skills. Lookahead compositions that improve on their primitive child are kept as tree nodes, allowing their outcomes to guide further exploration of earlier revision paths.

• We incorporate an outcome memory that supplies later proposals with attempted revision directions and repair/regression statistics. Results from a shared evaluation remain attached to the edit composition that produced them.

• Across four tasks and five targets, we measure performance, retained edit paths, skill size, and offline cost. With deepseek-v4-flash, AtomSearch exceeds SkillOpt on three tasks and produces shorter skills on all four; the recorded search trees also expose useful paths through locally weaker states.

References (48)