arXiv(opens in a new tab)cs.AIAug 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2608.26530

PILOT in the Loop: Live Self-Improvement for Long-Horizon Agents

Yang Xiao, Yusong Sun, Haoyi Wu, Wenyang Hui, Wen Da, Zhaokai Luo, Mu Chuan, Yao Hu, Wenjie Li, Chengyue Jiang

AllSpark Team

Long-horizon agent runs generate experience that can improve both the current run and future runs: successful attempts reveal reusable procedures, while failed attempts expose failure modes. Most self-improvement methods process this experience only after a run ends, so they can neither recover that run nor immediately apply and validate lessons learned from the run, making self-improvement less efficient and potentially less reliable. We argue that self-improvement should instead be live, using emerging experience both to redirect the active run and to update the persistent harness. However, live self-improvement exposes an architectural gap: existing agent architectures do not simultaneously support live correction and a dedicated self-improvement role. Single-agent self-correction can revise the active run, but the same agent must execute the task and judge its trajectory within a limited context, splitting attention between execution and oversight. Subagent delegation separates execution from the main agent, but the main agent typically cannot redirect the active subagent while the subagent is still running. To bridge this architectural gap, we present PILOT, a supervisor-worker harness that realizes live self-improvement through two coupled mechanisms: (1) live steering lets a separate supervisor redirect or abort the active worker during execution; and (2) live self-evolution distils procedures and failure modes revealed during execution into reusable skills and memory. Across two frozen backbones and three benchmarks, PILOT ranks first in five of six configurations. On Terminal-Bench 2.0, PILOT outperforms counterpart harnesses by as much as 9.8 percentage points. In the self-improvement setting, PILOT gains 14.6 points with GLM-5.1 and 12.4 points with Kimi-K2.6; mean output tokens fall by 42.9% and 47.4%, while successful evaluations per million output tokens rise by 110.3% and 134.0%, respectively.

Date: August 25, 2026

GitHub: github.com/XiaoYang66/Pilot

AllSpark

(a) Terminal-Bench 2.0

Figure

(b) SWE-Bench Pro

(c)

(d)

Figure 1: Main results in two evaluation settings. (a)–(b) One-shot pass rate (%) on Terminal-Bench 2.0 and SWE-bench Pro with GLM-5.1 and Kimi-K2.6; dashed boxes highlight PILOT. (c)–(d) Best-so-far Terminal-Bench 2.0 pass rate across 20 self-improvement iterations: (c) compares PILOT across backbones, and (d) compares PILOT, Pi, and OpenCode on GLM-5.1. Endpoint labels report improvement from iteration 0.

1 Introduction

When agents work on long-horizon tasks, they generate experience that can improve both the active run and later work. Successful trajectories reveal procedures worth retaining as reusable skills, particularly when a task can be solved but not yet solved reliably. Failed or inefficient trajectories reveal strategies and recurring failure modes to avoid. Agent self-improvement aims to learn from such experience and improve subsequent behavior. A common approach is post-hoc review: reflection, judge-based evaluation, and self-evolving harness updates, all of which can improve the harness but cannot redirect the active run. Reflection critiques a completed trajectory, judge-based evaluation assesses the final result, and self-evolving harnesses revise prompts, skills, or memory from completed traces and feedback [23, 36, 17, 14, 15]. These approaches can preserve experience, but their updates begin after the relevant execution has ended. Newly extracted knowledge cannot help the run that produced it or be immediately applied and validated against the execution that revealed it. Its usefulness can only be tested in a later rollout or a separate evaluation. We therefore argue that self-improvement should be live, using emerging experience both to redirect the active run and to improve the persistent harness for later runs.

However, existing agent architectures do not simultaneously support live correction and a dedicated self-improvement role. Single-agent self-correction is timely, but the same agent performs the task and diagnoses its own mistakes in a context filled with execution details [30, 18, 8]. Execution details occupy the same context needed for diagnosis, making it harder for the agent to recognize and correct a strategy that is not working. Subagent delegation separates execution from the main agent, but the main agent commonly receives the subagent's final summary only after the delegated run returns [7, 3, 16]. Subagent delegation therefore cannot usually redirect the active subagent while the subagent is still running. Together, these limitations call for self-improvement that is both live and separate from task execution.

These requirements motivate live self-improvement: a closed loop that uses emerging experience to redirect the active run and improve the persistent harness. We present PILOT, a supervisor-worker harness that realizes live self-improvement through two coupled mechanisms: (1) live steering lets the supervisor redirect the active worker during execution; and (2) live self-evolution distils useful procedures, project conventions, and failure modes revealed during execution into reusable skills and memory. PILOT makes self-improvement live by separating the roles of task execution and self-improvement, correcting the current run, using the live run to assess the correction, and retaining useful experience in the harness during execution. In PILOT, a frozen supervisor remains connected to a worker throughout the worker's run rather than waiting for a completed trace. Through a live channel, the supervisor receives the worker's questions and notifications together with the final result, execution errors, and inactivity alerts; the supervisor can then steer the worker's actions or abort the worker's run. The worker's context absorbs execution details and dead ends, while the supervisor's separate context stays focused on the goal, recent events, and signs that the run is going off track. The supervisor can also record reusable knowledge in the persistent harness without taking task execution away from the worker.

We evaluate PILOT in a one-shot setting and a self-improvement setting. In the one-shot setting, PILOT ranks first in five of six backbone-benchmark combinations across two frozen backbones and three benchmarks. On Terminal-Bench 2.0 [19], PILOT outperforms counterpart harnesses by as much as 9.8 percentage points. In the self-improvement setting, we organize Terminal-Bench 2.0 tasks into iterations that share a fixed harness state. Within each iteration, all tasks use that state, and agents receive no benchmark feedback during execution. After the iteration, the harness retains skills distilled during successful runs for use in the next iteration. PILOT's best observed pass rate rises by 14.6 percentage points with GLM-5.1 [32] and 12.4 points with Kimi-K2.6 [20]. Across iterations, the reusable skill set grows by 21 and 31 skills, mean output tokens per evaluated task fall by 42.9% and 47.4%, and successful evaluations per million output tokens rise by 110.3% and 134.0%, respectively. Two case studies trace how the supervisor redirects an active strategy or corrects an implementation error while the worker remains responsible for the solution.

We make three contributions: (1) we formulate live self-improvement as a closed loop that uses emerging experience both to redirect the active run and to update the persistent harness; (2) we introduce PILOT, a supervisor-worker harness that couples live steering with live self-evolution over a shared stream of execution experience; and (3) we evaluate PILOT across two frozen backbones and three long-horizon benchmarks, together with trajectory and efficiency analyses of task recovery, skill growth, and token efficiency.

Figure

Figure 2: PILOT implements live self-improvement through two mechanisms: live steering and live self-evolution. Top left: a single ReAct loop has no oversight separate from the work. Bottom left: a main agent receives a subagent's output only after the delegated run ends. Right: a separate supervisor redirects or aborts the active worker, distils reusable skills and memory from supervision, and makes the evolved harness available to later workers.

References (31)