HookEvo

Coordinated plugin evolution for tool-using agents.

How does improver capability interact with the scope of a harness edit? We compare skill edits, independent components, and coordinated plugins around the same frozen executor.

ALFWorld / action-hint.mjs

One state, three hooks.

A successful pickup updates the object held in episode state.

if (take) { held = take[1]; known.delete(held); }
Inspect the plugin ↗

Core idea

How much more can a stronger improver do when it can evolve plugins together?

HookEvo scales what an improver can change in a single proposal. At scope A it edits skill text. At B it can revise one independent component. At C it can change several handlers bound to different runtime hooks, together with the state they share within a task. That lets the improver propose a repair whose parts depend on one another and test their combined effect against the parent harness.

Wider edit scope reveals a larger gap between improvers

We held the Qwen3-4B executor fixed and compared Luna, Terra, and Sol at high reasoning effort across four benchmarks. With skill edits alone, Sol led the next improver by just 0.35 percentage points in mean test success. The lead grew to 4.37 points with independent component edits and 20.51 points with coordinated edits.

Moving from A to C raised Sol’s mean success from 38.04% to 63.95% (+25.91 points). Luna gained 7.24 points and Terra gained 5.75. The Sol scope C mean includes the OSBench narrow run with a different training set.

Compare all three improvers and edit scopes ↓ · Inspect the mechanisms they evolved ↓

+25.91 pp

Mean success gain for GPT-6.1 Sol from skill text to coordinated edits.

4

Benchmarks evaluated with frozen Qwen3-4B.

3 × 3

Improvers and edit scopes compared.

Main leaderboard

How do the harnesses compare?

HookEvo achieves the highest held-out success among the Qwen3-4B-family methods in the table on all four benchmarks. Against our local Life-Harness rerun, the gains range from 4.86 percentage points on OSBench to 7.64 on ALFWorld.

MethodALFWorldDBBenchWebShopOSBenchEvaluation
HookEvo (Sol, scope C)95.41 ± 0.0070.56 ± 0.3848.17 ± 0.2941.67 ± 1.84Local
Life-Harness (local)87.77 ± 1.9164.11 ± 0.3841.33 ± 0.2936.81 ± 0.00Local
Life-Harness88.0765.0045.5039.60Published
Bare16.5144.0029.5021.50Published
ALIGN28.36—18.00—Life-Harness
AgentSquare29.36—18.50—Life-Harness
Meta-Harness (Life rerun)35.8050.3042.5025.70Life-Harness
AHE (Life rerun)89.0057.3039.0037.50Life-Harness
Harness-R1 (paper)29.1055.7038.60—Published

Later training rounds can overfit. For each benchmark, the leaderboard reports the checkpoint with the highest observed test success among those evaluated.

On OSBench, the standard A-sol61, B-sol61 and C-sol61 runs use the same 80 training tasks. Use those runs to compare edit scopes. The leaderboard entry (41.67 ± 1.84%) comes from C-sol61-narrow, whose 80 training tasks overlap the standard set by 9 IDs.

Local results show mean held-out success (%) ± sample SD over three executions. A dash indicates an unreported result. Life-Harness reports ALIGN and AgentSquare in Table 11 and its Meta-Harness and AHE reruns in Table 1. Harness-R1 specifies Qwen3-4B and uses 500 WebShop tasks; our evaluation uses 200. Life-Harness · Harness-R1

Appendix C · Additional method and model comparisons

Held-out success (%). Local results include the sample standard deviation. Published results follow the task counts and protocols of their sources. A dash marks an unreported score.

Qwen3-4B: evolved artifacts and additional baselines
ExecutorMethodALFWorldDBBenchWebShopOSBenchEvaluation source
Qwen3-4BHookEvo (Sol high)95.41 ± 0.0070.56 ± 0.3848.17 ± 0.2941.67 ± 1.84Local
Qwen3-4BALIGN (released)3.36 ± 1.06—31.00 ± 0.50—Local
Qwen3-4BReAct10.70 ± 1.06———Local
Qwen3-4BReflAct18.35 ± 1.83———Local
Qwen3-4BAutoManual76.15 ± 1.59———Local
Qwen3-4BHarness-R1 patch—52.22 ± 0.69——Local
Qwen3-4BPrompt-evolving†13.860.730.018.8Life-Harness
Qwen3-4BSkillFM77.01—14.60—SkillFM
Larger open-model executors
ExecutorMethodALFWorldDBBenchWebShopOSBenchEvaluation source
Qwen2.5-14BLife-Harness83.4966.0045.0040.97Life-Harness
Qwen2.5-32BLife-Harness92.6669.3346.5045.83Life-Harness
Qwen2.5-72BLife-Harness85.3271.3348.0047.22Life-Harness
Llama-3.3-70BLife-Harness92.6668.6744.0039.58Life-Harness
Qwen3.6-27BLife-Harness89.9174.3343.0056.94Life-Harness
Qwen3.6-35B-A3BLife-Harness89.9171.3345.0054.17Life-Harness
Frontier-model executors
ExecutorMethodALFWorldDBBenchWebShopOSBenchEvaluation source
GPT-5.5 highBare93.667.775.147.4Life-Harness
GPT-5.5 highLife-Harness95.475.075.853.1Life-Harness
Opus 4.8 highBare97.271.773.850.4Life-Harness
Opus 4.8 highLife-Harness98.174.382.750.8Life-Harness
Gemini 3.1 ProBare96.376.567.350.0Life-Harness
Gemini 3.1 ProLife-Harness96.378.468.148.6Life-Harness
Additional optimization methods
ExecutorMethodALFWorldDBBenchWebShopOSBenchEvaluation source
GPT-5.5TextGrad82.80———TextGrad, SkillOpt
GPT-5.5GEPA85.80———GEPA, SkillOpt
GPT-5.5SkillOpt95.50———SkillOpt
GPT-4oAgentSquare69.50———AgentSquare
GPT-4oADAS54.30———ADAS, AgentSquare
GPT-4oReflAct93.30———ReflAct
GPT-4-turboAutoManual97.40———AutoManual
GPT-3.5 seriesAutoGuide79.10—46.00—AutoGuide
PaLM-540BReAct57.00—40.00—ReAct

† Prompt-evolving scores are approximate readings from Life-Harness Figure 6. SkillFM uses its published task counts. Larger open-model and frontier-model results come from Life-Harness Tables 10 and 2.

Method

One candidate can change both ends of a repair.

In ALFWorld, one handler records an accepted action in episode state. Other handlers use that state to guide the next prompt or check the next action. Evaluating those edits together lets their combined effect count toward selection.

Figure 1. What a candidate can change. Skill text, an independent component, and coordinated handlers give the improver three different edit scopes.
Figure 1. What a candidate can change. Skill text, an independent component, and coordinated handlers give the improver three different edit scopes.
Figure 2. How candidate representations fit together. The diagram maps earlier optimization targets to DeepSeek Harness interfaces and shows what one HookEvo candidate can edit.
Figure 2. How candidate representations fit together. The diagram maps earlier optimization targets to DeepSeek Harness interfaces and shows what one HookEvo candidate can edit.
Figure 3. One evolution round. The controller evaluates parent and candidate on matched tasks, then returns its retention decision and measured changes.
Figure 3. One evolution round. The controller evaluates parent and candidate on matched tasks, then returns its retention decision and measured changes.

Observe

Run the parent on a training batch. Sample successful and failed trajectories.

Propose

The improver reads the parent source, runtime interfaces and prior feedback, then returns one scoped edit.

Compare

Pair parent and candidate by task, trial and seed. Measure score changes, repairs, regressions and hook outputs.

Retain

Require a training gain, a changed hook output and, where used, nondecreasing validation performance.

Held-out evaluation

How well does each harness perform?

The same frozen Qwen3-4B-Instruct-2507 executor runs each harness. Results show mean held-out success and sample standard deviation over three executions for the harness selected for each benchmark.

BenchmarkTasksSuccess (%)SourceArchitecture
ALFWorld10995.41 ± 0.00View harness ↗View figure
DBBench30070.56 ± 0.38View harness ↗View figure
WebShop20048.17 ± 0.29View harness ↗View figure
OSBench14441.67 ± 1.8480 training task IDs ↗—
Evolution across search rounds
Training curves and held-out checkpoints for the four benchmark searches
Test markers denote measured checkpoints. WebShop continues from an inherited harness in its second stage.

Released harnesses

What did the search actually change?

ALFWorld

From a tool receipt to the next action

After the environment accepts an action, the action-hint plugin records what changed. Context assembly and the pre-execution guard can then act on the same episode state.

Read the implementation ↗Inspect the evaluation ↗
ALFWorld checkpoint architecture, including its runtime bindings

WebShop

Keeping track of product options

The option ledger tracks visible option evidence as the agent moves through a product page. The checkpoint also includes search-evidence and the helper modules used by both plugins.

Read the implementation ↗Inspect the evaluation ↗
WebShop checkpoint architecture, including its runtime bindings

Section 4.2 · Edit scope

Who benefits from a broader edit?

Each cell is mean test success (%) across the four benchmarks. The published Sol scope C mean includes the OSBench narrow run, which uses a different training set. Scope A changes skill text, B replaces one independent component, and C permits coordinated edits to handlers and shared state.

ImproverA · SkillB · ComponentC · CoordinatedC − A
GPT-6 Luna35.8634.3643.10+7.24 pp
GPT-6.1 Terra37.6936.6643.44+5.75 pp
GPT-6.1 Sol38.0441.0363.95+25.91 pp

Test success by benchmark (%)

ImproverScopeALFWorldDBBenchWebShopOSBenchMean
GPT-6 LunaA23.8553.0032.3334.2635.86
GPT-6 LunaB14.0754.5631.3337.5034.36
GPT-6 LunaC48.6257.0030.6736.1143.10
GPT-6.1 TerraA26.9153.7830.5039.5837.69
GPT-6.1 TerraB29.9753.7829.3333.5636.66
GPT-6.1 TerraC52.9154.0032.8334.0343.44
GPT-6.1 SolA27.2252.8934.3337.7338.04
GPT-6.1 SolB33.3353.5637.6739.5841.03
GPT-6.1 SolC95.4170.5648.1741.6763.95

The mean weights the four benchmarks equally. Luna and Terra each use one execution for scope C on DBBench and OSBench.

Section 4.3

What changes inside the harness?

Mechanisms by improver at scope C

Gains are percentage points over the bare Qwen3-4B executor on the same benchmark.

BenchmarkImproverGain (pp)Selected mechanism
ALFWorldGPT-6 Luna+32.11Training traces show receipt reminders and wrong-object checks.
ALFWorldGPT-6.1 Terra+36.40Training traces show pickup guidance and a target check in two-object tasks.
ALFWorldGPT-6.1 Sol+78.90Inventory and search history tell the action check when to require a pickup or stop a repeated search.
DBBenchGPT-6 Luna+13.00An empty read can hold up submission until the agent checks the result.
DBBenchGPT-6.1 Terra+10.00A SQL skill tells the agent how to quote identifiers.
DBBenchGPT-6.1 Sol+26.56A log of successful writes guards two decisions: whether to repeat a write and whether to submit.
WebShopGPT-6 Luna+1.17A checklist prompts the agent to inspect options and price.
WebShopGPT-6.1 Terra+3.33A search skill preserves model numbers and sizes across queries.
WebShopGPT-6.1 Sol+18.67Search and option plugins share product state. Checkout can be blocked until a required option is selected.
OSBenchGPT-6 Luna+14.61A counting skill distinguishes files from matching lines.
OSBenchGPT-6.1 Terra+12.53A command check flags misleading pipelines. Receipt annotations explain the output.

Mechanisms as Sol’s edit scope expands

Each gain compares selected harnesses from separate searches. WebShop C used a continued search.

BenchmarkScope changeGain (pp)Change in mechanism
ALFWorldA → B+6.12Target-tracking instructions gain inventory updates from tool receipts.
ALFWorldB → C+62.08The action check goes beyond call format: it reads inventory and can block departure before pickup.
DBBenchA → B+0.67SQL naming guidance is supplemented by repair suggestions after a query fails.
DBBenchB → C+17.00A log of successful writes lets the harness block duplicate writes or early submission.
WebShopA → B+3.33The option checklist gains page feedback that highlights matching choices.
WebShopB → C+10.50Search and checkout share option state, so a missing selection can block purchase.
OSBenchA → B+1.85A receipt annotation tells the agent whether its command counted files or lines.

Reproduction

Start with one round.

From a fresh checkout, run the synthetic A/B/C check with Python 3.10–3.12 and Node.js 22.19+ with npm. It exercises the real plugin runtime using a scripted actor.

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e evolution
python evolution/scripts/smoke.py ./runs/smoke

The reproduction guide lists the external assets and model access for each benchmark. Choose a frozen profile to evaluate a released checkpoint, or an A/B/C profile to run a new search.

Reference

Citation

Cite the HookEvo paper using the arXiv record. The code and benchmark artifacts have a separate software citation.

@misc{huang2026hookevoframeworkcoordinatedplugin,
      title={HookEvo: A Framework for Coordinated Plugin Evolution on Hook-Enabled Agent Runtimes},
      author={Shengze Huang and Yanyu Mao and Xiaofei Yu and Baoshen Guo and Xiaorui Wang and Zhiwen Wu and Sheng Wu and Fukang Wen and Chengxu Wu and Linhao Li and Kailai Sun and Baotong Mi},
      year={2026},
      eprint={2611.27294},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2611.27294},
}