Agent Self-Improvement · Long-Horizon Agents · Inference Efficiency

First surfaced in Tandemly Briefing — 2026-08-27.

Self-improvement
during the run.

Researchers built PILOT: a supervisor-worker harness where a separate supervisor can redirect or abort a running worker mid-execution, and where lessons from each failure are distilled into reusable skills and memory the same run can use immediately. The result is an agent that improves while it works, not after the session ends. Quality and cost move in the same direction: output tokens fall while task completions per million tokens rise.

Core finding
On Terminal-Bench 2.0, PILOT gains up to 9.8 points over comparable harnesses. Output tokens fall 42.9-47.4% while successful evaluations per million output tokens rise 110.3-134.0%. First place in 5 of 6 benchmark configurations across two backbone models.
scroll to explore

Self-improvement waits
for the run to end.

Every existing approach to agent self-improvement operates after execution finishes. That is precisely when the opportunity to do something about it is gone.

When an LLM agent fails a long-horizon task, the standard response is to learn from the failure after the fact. The trajectory is stored, analyzed, and used to update skills, fine-tune weights, or adjust prompts. The next run starts with those updates in place. This pipeline works. But it has a built-in delay: the agent burns through its entire budget on the current run, discovers it failed, and then learns something it cannot apply until the next session begins.

For short tasks, this delay is invisible. If a task takes 10 tool calls, the overhead of completing a doomed run is small. For long-horizon work, where a task might span hundreds of tool calls over an extended session, this is a significant problem. An agent that decides early on a wrong approach and sticks with it to the end wastes most of its budget. The failure signal arrives too late to change anything about that particular run.

Single-agent self-correction, where the model tries to catch its own errors mid-execution, runs into a different wall. It collapses the roles of executor and assessor into one context. The model that generated the flawed output is being asked to judge whether its output was flawed. This frequently fails, because the model's assessment is subject to the same biases and limitations that produced the error in the first place.

Splitting the roles between a supervisor subagent and a worker subagent is a cleaner design. The supervisor is not contaminated by the worker's reasoning trace and can assess the run independently. But the existing implementations of this split have a gap: the supervisor can watch. It cannot intervene. If the worker is clearly heading toward failure, the supervisor can note this observation, but the worker keeps running. The supervisor's signal reaches the next run, not the current one.

The question PILOT asks

What if the supervisor could actually stop the worker, redirect it, or abort the session when the trajectory is clearly doomed? And what if lessons from each failure could be distilled into skills and memory the same run uses immediately, rather than waiting for a post-session update?

Two mechanisms,
one live run.

PILOT couples a steering capability with an in-session learning loop. Neither mechanism requires modifying the backbone models.

The system runs two frozen backbone models in a supervisor-worker configuration. The worker executes the task. The supervisor watches the worker's output in real time and can do something about what it sees. This is the first mechanism: live steering. When the supervisor detects that the worker is on a trajectory that is unlikely to succeed, it can interrupt, issue a correction, or abort the worker entirely. This stops budget from flowing into a session that will not complete successfully.

The second mechanism is live self-evolution. When the supervisor identifies a procedure that worked, or a failure mode that caused a detour, it distills that observation into a skill or memory entry. The crucial difference from post-session self-improvement is timing. These skills and memory entries become available to the same run that generated them. The worker does not need to wait for the next session to benefit from what the supervisor learned. A lesson from step 40 can change the approach at step 45.

The two mechanisms reinforce each other. The supervisor's ability to abort doomed trajectories means less budget is wasted on runs that will not teach anything useful. The in-session skill and memory updates mean successful approaches get reinforced within the current task, not just carried forward to future tasks. The loop is closed inside one execution window rather than across session boundaries.

The experiments ran three benchmarks with two backbone models each: GLM-5.1 and Kimi-K2.6. Both backbones were held frozen throughout. The PILOT harness sits entirely in the scaffolding layer above the model weights, which means the approach is, in principle, portable to any backbone that can communicate through standard interfaces.

Before: post-session self-improvement
The run completes. Regardless of whether it succeeded, the full budget is spent. Lessons are extracted after the fact. The next session starts with updated skills and memory. A doomed trajectory runs to its conclusion before producing any learning signal. The supervisor, if there is one, can observe but not intervene.
After: live self-improvement via PILOT
The supervisor acts on what it sees. Doomed trajectories are aborted rather than completed. Lessons from each segment are distilled into skills and memory the current run uses immediately. The worker benefits from observations made earlier in the same session, not just from observations carried over from prior sessions.
Why the timing distinction matters

Post-session self-improvement is like reading your notes from last week before today's work begins. In-session self-improvement is like taking notes during a meeting and adjusting your argument in the same conversation. For long-horizon tasks that unfold over many steps, the second approach has access to context the first one does not: the specific state of this run, this task, this failure mode, right now.

Quality and cost
move together.

The efficiency numbers are the most unusual part of these results. In most agent work, reducing cost comes at the expense of quality. PILOT moves both figures in the same direction.

9.8pp
Terminal-Bench 2.0 gain
Maximum improvement over comparable counterpart harnesses on Terminal-Bench 2.0, one of three benchmarks evaluated.
43-47%
Output token reduction
Mean output tokens fell 42.9% and 47.4% across the two backbone models (GLM-5.1 and Kimi-K2.6) in the self-improvement configuration.
+110%
Task success per million tokens
Successful evaluations per million output tokens rose 110.3% and 134.0% for the two backbones. More tasks completed on each token spent.

PILOT placed first in five of six benchmark configurations across the two backbone models. The sixth configuration was not a loss; the results there were comparable to the best counterpart, not below it. Across three benchmarks and two models, the harness was consistently near the top of the field or at it.

The efficiency numbers deserve a closer look. Output tokens falling 43-47% while task success per token roughly doubles is not a typical tradeoff curve. Most techniques that cut tokens accept some quality reduction in exchange. Here the abortion mechanism is doing work that produces a different kind of saving: tokens that would have gone into completing a doomed run are simply not spent. The supervisor identifies a trajectory heading toward failure and stops the clock before the bill accumulates. The outcome is that the token budget concentrates on runs that succeed rather than spreading evenly across successes and failures.

The 14.6 and 12.4 point gains with GLM-5.1 and Kimi-K2.6 respectively in the self-improvement configuration show that the in-session skill and memory updates are contributing beyond what live steering alone would provide. The gains are measured against the same backbones run without the live self-evolution component, so the attribution is reasonably clean.

Scope to keep in mind

Results are reported across two frozen backbones and three benchmarks. The specific benchmarks and their difficulty distributions matter for how far these numbers generalize. The paper does not include ablations that isolate the abortion mechanism from the in-session skill updates, so the individual contribution of each component is not directly measurable from the reported figures. A practitioner implementing one mechanism without the other should run their own comparison before assuming the full reported gain will transfer.

Who benefits,
and how.

PILOT's design is most directly applicable to teams running long-horizon agent workflows where doomed runs are a significant fraction of total spend.

1
For teams monitoring agent token budgets
The abortion mechanism addresses one of the hardest budget problems in production agent work: a run that commits early to a wrong approach and runs to completion anyway. Tracking what fraction of total token spend flows into runs that ultimately fail is the first diagnostic step. If that fraction is high, an abort-capable supervisor is a direct intervention at the right level, not a heuristic approximation.
2
For teams building multi-agent scaffolding
The supervisor-worker split is already common. The move PILOT makes is giving the supervisor the ability to act on what it observes, rather than just logging it. If your current supervisor subagent surfaces failure signals during a run but can only report them after the fact, adding an interrupt and redirect path is the minimal change that activates the core PILOT design. The in-session skill and memory updates can be layered on afterward.
3
For teams measuring agent performance
Successful evaluations per million output tokens is a more informative efficiency metric than pass rate or raw token count. It combines quality and cost in a single figure that reflects what a production operator actually cares about. If your agent evals only report task success rate, adding a cost denominator to that metric will surface the efficiency dimension that PILOT is specifically designed to improve.
4
For teams comparing agent harness approaches
PILOT sits in a distinct design space from the cost-aware techniques that dominate recent agent research. Tools like context compaction, pruning stage relocation, and difficulty-based routing reduce token spend inside a run that continues to completion. PILOT cuts spend by stopping runs that will not complete successfully. The two approaches are complementary. If you have already applied in-run compression and still see a high failed-run fraction, a supervisor abort layer targets a different part of the cost structure.

Next steps
from here.

Concrete actions, starting with what you can measure before touching any infrastructure.

1
Read the paper
Xiao, Sun, Wu, Hui et al. (2026). "PILOT in the Loop: Live Self-Improvement for Long-Horizon Agents." arXiv:2608.26530. The benchmark configurations and harness architecture are documented in detail there.
2
Measure your failed-run token fraction
In your current agent logs, calculate what percentage of total token spend flows into runs that ultimately fail. Group runs by early trajectory features and check whether failure is predictable from the first 20-30% of the run. If a reliable early signal exists, that is where a supervisor abort would fire, and the savings from stopping before the run finishes become concrete and estimable.
3
Add an abort path to your existing supervisor
If your multi-agent setup already has a supervisor subagent that assesses worker trajectories, extend it with an abort signal rather than building from scratch. Start with a conservative threshold: only abort when the supervisor's confidence that the run will fail is high. Log the abortion rate and the before-and-after task completion rate on a held-out set before treating it as the new production configuration.
4
Report successful tasks per million output tokens
Switch from reporting pass rate alone to reporting pass rate and task completions per million output tokens together. This metric captures the combined effect of quality and cost in a way that makes efficiency interventions visible. A technique that raises pass rate by 5% while halving spend looks very different on this metric than on pass rate alone.
5
Pilot the in-session skill loop on a contained task family
Test the in-session self-evolution component on a single task family where failure modes are well-understood. Instrument how often the supervisor distills a skill or memory entry, how often the worker draws on those entries later in the same run, and whether runs that draw on in-session entries have a higher completion rate than runs that do not. This gives a direct measurement of the self-evolution mechanism's contribution before relying on the aggregate benchmark numbers.