Manuscript Offprint

arXiv:2610.19381

EvoWeave: Composing Reusable Agent Experience through Operation Level Graphs

Guanhua Zhu, Bo Shen, Lei Zhang, Fadi Deek, Zhi Wei, Mengnan Du, Chenxi Yuan

ABSTRACT

Different tasks often require interactive agents to perform similar operations at intermediate steps. Retrieving an entire past workflow can introduce irrelevant steps, whereas retrieving isolated operations can discard the dependencies needed to reuse them. We introduce EvoWeave, a framework for experience memory that represents abstract states as nodes and reusable operations as directed edges with input and output contracts, provenance, and capability references. A planner decomposes the current task into a dependency graph; operation retrieval and bounded directed search then assemble relevant experience fragments. An execution agent can inspect these fragments and their referenced capabilities, while reflection separates concrete execution evidence from reusable abstractions. We study the framework across four benchmarks, five evaluation settings, and three language model backbones. Across backbones, AppWorld Normal and Challenge task goal completion average 51.91 and 27.99, respectively, exceeding the baseline without memory by 6.99 and 4.99 percentage points. An AppWorld ablation associates directed connections with an additional improvement of 2.08 points over independent operation cards. The results motivate composition of reusable operations while exposing tradeoffs in retrieval overhead and conditions for valid reuse.

1 INTRODUCTION

Language model agents solve interactive tasks by interleaving reasoning with actions and environmental feedback (Yao et al., 2022). Although task goals vary, many constituent operations may recur across tasks: locating a contact, filtering records, reading an attribute, modifying an object, or submitting a result. An agent that has already performed these operations should be able to reuse that experience when pursuing a different goal. Approaches based on experience therefore reuse insights or workflows that an agent has learned from prior interactions (Zhao et al., 2024a; Wang et al., 2024; Ouyang et al., 2026), making the organization of experience a central design choice.

One part of that choice is granularity: the unit at which experience is stored and retrieved, which decides how much of a past task is carried into a new one. Figure 1 illustrates this choice. A new request to contact a collaborator may require finding contact information, drafting an email, and sending a message. A historical workflow containing these operations, however, may also include unrelated research, profile inspection, or record keeping, so supplying that entire workflow couples useful experience to unnecessary context. We therefore propose retrieving the relevant operations separately, which allows partial reuse across historical tasks. We use three terms consistently: an operation is one abstract step of a task, such as sending a message; an action is the concrete environment call that realizes an operation during execution; and a capability is the external resource that such an action needs, such as an API definition or a library function. The same granularity principle

Current Task: Plan and send an email to a potential collaborator.

1 Find contact

2 Draft email

3 Send message

Coarse-grained reuse in prior methods

  1. Reuse past experience/workflow

Retrieve whole workflow (many irrelevant steps)

Retrieved workflow from a similar task

Search papers

Find contact

Read profile

Draft email

Revise email

Send message

Log result

4/7 relevant steps

Large context passed to agent

Wastes tokens

Can mislead

Agent

  1. Reuse tool skills/code

Retrieve whole skills/code file (read the whole manual again)

Skill manual

Code file

Email Management Tool Guide

  1. Overview

  2. Authentication

  3. Contact Management

email_utils.py

def search_contact():

def draft_email():

def revise_email():

def send_email():

Entire file/manual passed to agent

Wastes tokens

Can mislead

Agent

EvoWeave: operation-level reuse

  1. Reuse relevant operations

Retrieve relevant operations (compose from partial overlaps)

Read profile

Draft email

Send message

Compact,

targeted context

to agent

Targeted

reuse

(fewer tokens)

Agent

  1. Reuse relevant capability fragments

Retrieve relevant functions (only needed capability fragments)

Relevant functions / skill fragments from memory

search_contact()

draft_email()

send_email()

Compact,

relevant functions

passed to agent

Targeted

reuse

(fewer tokens)

Agent

Figure 1: Motivation for reusing individual operations and capability fragments. The illustrative comparison contrasts retrieving an entire historical workflow or capability file with selecting relevant operations and functions for a new task. Selective reuse aims to reduce irrelevant context while supporting composition across partially overlapping experiences. The figure is conceptual; its step counts and anticipated benefits are not experimental measurements or claims about every prior method.

then applies to capabilities: an operation can reference only the API definition or function required by its action, rather than an entire manual or code library. Longer context does not guarantee that a model uses the relevant parts of it (Liu et al., 2024), so we treat narrower retrieval as a hypothesis to be measured rather than a benefit to be assumed.

Fine grained reuse alone does not solve composition. By composition we mean assembling several separately retrieved operations into one executable sequence for the current task, such that every operation finds the inputs it requires either in the environment or in the outputs of the operations placed before it. Two individually relevant operations may disagree about the intermediate object they consume, or require an unobserved prerequisite. A path to a downstream operation does not establish that every input is available. Prior work has already explored reusable programs (Wang et al., 2023; Yuan et al., 2024), linked memories (Xu et al., 2026), and modular procedural memory (Han et al., 2025). What these representations do not retain is, for each reusable unit, the input conditions and the directed transitions that determine whether the unit can be executed after the units retrieved alongside it. The question we address is therefore more specific: how can operation level experience preserve its conditions and historical connections while remaining selectable for a new task?

We propose EvoWeave, which represents an operation as a directed transition between abstract states, annotated with its contract, evidence, and capability references. A current task plan specifies which steps directly depend on one another. These dependencies guide retrieval of historical operations and search for connecting fragments. The execution agent receives the assembled operation fragments as context, together with an explicit list of the plan dependencies that retrieval could not connect, and it can query the experience graph again during execution. Reflection retains concrete observations in task history while proposing abstract, versioned updates to shared experience.

Our contributions are threefold: (i) an operation level representation that separates reusable transitions from concrete execution evidence; (ii) a plan guided retrieval and connection procedure that retains input requirements, candidate consistency, and search failures; and (iii) an empirical analysis spanning three backbones and five evaluation settings, with ablations that distinguish operation de-composition, directed connections, and active retrieval. We report heterogeneous gains and resource tradeoffs rather than assuming that a graph representation improves every task.

References (67)