---
title: 'EvoAgent: An Evolvable Agent Framework with Skill Learning and Multi-Agent Delegation'
authors: ['Aimin Zhang', 'Jiajing Guo', 'Fuwei Jia', 'Chen Lv', 'Boyu Wang', 'Fangzheng Li']
date: 2026-11-10
categories: ['cs.AI']
tags: ['multi_agent', 'ai_methodology', 'system_design', 'research_practice']
source_id: '2604.20133'
source_url: 'https://arxiv.org/abs/2604.20133'
description: 'Large language model (LLM) agents increasingly rely on reusable skills, but skills are usually written by hand, and letting an agent change them on its own calls for explicit user control. We report...'
keywords: ['cs.AI', 'EvoAgent', 'Evolvable', 'Agent']
canonical: 'https://dailyreading.cc/records/arxiv_2604.20133'
---
# EVOAGENT: AN EVOLVABLE AGENT FRAMEWORK WITH SKILL LEARNING AND MULTI-AGENT DELEGATION
## Aimin Zhang1\*
1Focus AI Center, Focus Technology Co., Ltd. zhangaimin@focuschina.com
Fuwei Jia1
1Focus AI Center, Focus Technology Co., Ltd. jiafuwei0921@focuschina.com
Jiajing Guo1 1Focus AI Center, Focus Technology Co., Ltd. guojiajing@focuschina.com
Chen Lv1
1Focus AI Center, Focus Technology Co., Ltd. lvchen1018@focuschina.com
Boyu Wang2
2Engineering Research Center of Digital Forensics, Ministry of Education, Nanjing University of Information Science and Technology wangboyu@focuschina.com
Fangzheng Li1,3 1Focus AI Center, Focus Technology Co., Ltd. 3Nanjing University of Science and Technology lifangzheng@focuschina.com
#### ABSTRACT
This paper proposes EvoAgent-an evolvable large language model (LLM) agent framework that integrates structured skill learning with a hierarchical sub-agent delegation mechanism. EvoAgent models skills as multi-file structured capability units equipped with triggering mechanisms and evolutionary metadata, and is designed to enable continuous skill generation and optimization through a user-feedback-driven closed-loop process. In addition, by incorporating a three-stage skill matching strategy and organizing the agent as a harness whose only self-modified component is a persistent, user-owned state (profile, memory and skills), the framework supports dynamic task decomposition for complex problems and long-term capability accumulation. Experimental results based on real-world foreign trade scenarios demonstrate that, after integrating EvoAgent, GPT-5.2 achieves substantial improvements in professionalism, accuracy, and practical utility. Under a five-dimensional LLMas-Judge evaluation protocol, the overall average score increases by approximately 28%. Further model transfer experiments indicate that the performance of an agent system depends not only on the intrinsic capabilities of the underlying model, but also on the degree of synergy between the model and the agent architecture. Code and documentation are released at https://github.com/Focus-AI-Center/Mentarc-EvoAgent; the evaluation corpus contains proprietary business data that cannot be released, so the reported results are for reference only.
**Keywords** Evolvable Agent · Skill Self-Learning Mechanism · Harness Engineering
#### Introduction 1
Large Language Model (LLM) agents have gradually emerged as a core paradigm for achieving autonomous task execution in complex and open environments. By integrating capabilities such as reasoning, planning, tool invocation, and environment interaction, LLM agents are able to accomplish end-to-end task solving within a unified framework [1, 2, 3]. In professional domains such as software engineering, scientific computing, financial analysis, and enterprise workflow orchestration, the tasks faced by agents increasingly exhibit multi-step, cross-domain, and highly structured characteristics. Their complexity has significantly exceeded the capability boundaries supported by isolated invocations
\*Corresponding author: zhangaimin@focuschina.com
of atomic tools. To bridge this gap, researchers have progressively introduced the concept of "Skill" as a higher-level encapsulation of capability [4,](#page-15-3) [5](#page-15-4). Unlike atomic tools that provide a single function, skills are defined as structured multi-file collections, typically including workflow instructions, executable scripts, domain knowledge references, and reusable logic modules, thereby offering systematic and reusable process support for complex task execution [6](#page-15-5).
Although the skill mechanism demonstrates significant value in enhancing complex task execution, existing paradigms for skill acquisition and application still suffer from several key limitations. First, mainstream approaches heavily rely on manual authoring, resulting in high labor costs, limited scalability, and difficulty in maintaining consistent quality across domains. Second, manually constructed skills often exhibit human–AI cognitive misalignment: workflows optimized based on human intuition may not align with the intrinsic reasoning patterns of large language models, leading to performance degradation in highly structured domains such as natural sciences [4,](#page-15-3) [7](#page-15-6). Third, most existing self-evolution methods primarily focus on heuristic optimization at the level of individual tools or prompts, and do not yet support systematic iterative generation, optimization, and validation of complex multi-file skill packages. Finally, many self-improvement frameworks rely on real annotated supervision [4](#page-15-3) or intensive expert feedback, conditions that are often difficult to satisfy in real-world deployment scenarios.
Meanwhile, advances in multi-agent systems indicate that task decomposition and role specialization provide significant advantages in solving complex problems [8,](#page-15-7) [9](#page-15-8). Within hierarchical orchestration architectures, systems support configurable sub-agents and explicit task delegation: the main agent decomposes high-level objectives and assigns subtasks to specialized sub-agents with domain-specific capabilities. This design effectively mitigates context window limitations, reduces cognitive load, and improves parallel processing capacity and system robustness. However, mainstream multi-agent frameworks typically adopt static role definitions and fixed task routing strategies, lacking adaptive mechanisms that dynamically evolve delegation logic, skill sets, and collaboration patterns based on historical experience. Moreover, the integration between skill self-evolution mechanisms and hierarchical multi-agent task delegation remains limited, resulting in a structural disconnect between individual skill learning and global task scheduling optimization. To address these challenges, this paper proposes EvoAgent–an evolvable large language model agent framework that integrates autonomous skill learning with hierarchical multi-agent task delegation mechanisms.
From a design philosophy perspective, EvoAgent follows the systems engineering paradigm of Harness Engineering. The term Harness Engineering was used by Mitchell Hashimoto in 2026 for the practice of engineering a lasting fix whenever an agent makes a mistake, for example in the agent's instruction file, so that the mistake does not recur [10](#page-15-9). OpenAI described a related shift in a report on building a product with Codex agents and no manually written code: engineering work moves from writing code to designing environments, specifying intent and building feedback loops that let agents work autonomously [11](#page-15-10).
At the architectural level, Birgitta Bockeler distinguishes guides, which steer an agent before it acts, from sensors, ¨ which observe after it acts and help it self-correct, and separates computational controls, which are deterministic and fast, from inferential ones such as AI code review [12](#page-15-11). Furthermore, Paul Iusztin describes the harness as every piece of code, configuration and execution logic that is not the model itself, nests prompt engineering, context engineering and harness engineering as successively broader levels, and frames the LLM as the operating system on which agentic applications are built [13](#page-15-12).
Different from skill-based agents that focus solely on automated co-evolution validation mechanisms, EvoAgent concretely implements the Harness engineering philosophy as a user-centered dual-loop system encompassing both online execution and post-session evolution. The online loop constructs a deterministic execution trajectory through enforced skill matching, context assembly, and task delegation pipelines; the offline loop enables capability evolution via asynchronous session review and skill extraction mechanisms. Supported by this Harness framework, EvoAgent is designed for controllable, evolvable, and engineering-stable capability growth in real-world foreign trade business environments.
To locate where self-improvement may act, we use a coarse four-component view of a harness: *reasoning* (the backbone model and its ReAct loop), *context engineering* (how the context window is assembled, disclosed and compressed), *tools*, and *state*. State is further divided into *agent state*, which is scoped to a session (dialogue history and compression state), and *user state*, which persists across sessions and belongs to the user (profile, memory and skills). EvoAgent keeps the model weights, the context-engineering logic and the tool implementations fixed and confines self-improvement to the user state: the system serves a user better because the state it reads at the start of each session has been enriched, not because any other component has been rewritten. This is a deliberately bounded form of self-improvement; the improvement procedure itself, that is, the review prompts and update logic, is not modified by the system.
Specifically, the framework includes the following four core innovations:
- Proposes a structured skill representation method that organizes reusable procedural knowledge into multi-file skill packages equipped with lazy-loading reference mechanisms and evolutionary metadata, supporting persistent storage and dynamic on-demand invocation.
- Establishes a user-centered skill self-evolution mechanism that is designed to drive iterative optimization by tracking skill usage frequency and, where a deployment supplies outcome signals, execution success, aiming to alleviate human–AI cognitive misalignment while removing dependence on real labeled data.
- Designs a hierarchical sub-agent delegation architecture that enables the main agent to create specialized sub-agents with independent context spaces on demand, thereby improving execution efficiency for complex multi-stage tasks.
- Organizes the agent as a harness of four components (reasoning, context engineering, tools and state) and confines self-improvement to a persistent, user-owned state (profile in USER.md, long-term memory in MEMORY.md, and skills), combined with a dialogue history compression mechanism to achieve long-term context retention and cross-session knowledge accumulation.
In summary, EvoAgent targets complex real-world foreign trade application scenarios and constructs a unified agent framework that integrates adaptability and evolvability and is designed to let agents continuously enhance their capabilities through skill learning and collaborative task execution. This study provides a systematic foundational framework for the next generation of autonomous agents, advancing scalability, adaptability, and practical deployability, and demonstrating strong potential for real-world deployment in enterprise environments and professional domains.
## 2 Related Work
#### 2.1 Skill Learning and Self-Evolution in LLM Agents
Large language models have made rapid progress in tool invocation and complex task execution [3,](#page-15-2) [14](#page-15-13). Among these advances, "Skill" has emerged as a higher-level capability encapsulation distinct from atomic tools, designed to support multi-step, cross-domain professional task solving. Anthropic formally introduced the concept of agent skills [15,](#page-16-0) [5,](#page-15-4) [6](#page-15-5), defining them as structured multi-file packages composed of workflow instructions, executable scripts, and domain reference files, thereby enhancing task completion capabilities in professional scenarios. In this context, constructing agent systems with autonomous planning and tool invocation abilities has become a key research focus. Furthermore, some studies have begun to address the problem of "capability growth," namely how agents can accumulate experience during continuous task execution and transform it into reusable and transferable capability units. Existing research typically follows several paths [4](#page-15-3):
- Strategy summarization based on execution trajectories, abstracting decomposition steps of successful tasks into templated operational workflows [16](#page-16-1);
- Reflection-based mechanisms that analyze failure trajectories and revise strategies accordingly [17](#page-16-2);
- Retrieval-augmented memory approaches that invoke historical successful cases in new tasks to improve reasoning quality [18,](#page-16-3) [19](#page-16-4).
These systems also differ in where the improvement is written and in what stands between a proposed change and its adoption. SEAgent improves a computer-use agent by updating the model's own policy with reinforcement learning on self-generated tasks [20](#page-16-5), whereas skill-based systems such as Voyager [21](#page-16-6), AutoSkill [16](#page-16-1) and EvoAgent leave the model fixed and write to an external store of skills. Among the latter, AutoRefine admits a new rule, skill or bounded sub-agent only after contract and replay checks show that it fixes the linked failures without regressions [17](#page-16-2); EvoAgent places the user's confirmation in this position (Section [3.4\)](#page-9-0).
Although these methods have achieved certain improvements in enhancing single-agent stability and task success rates, their core capability structures still rely on fixed prompting frameworks or predefined strategy patterns. In existing public research, relevant distinctions are rarely modeled systematically. Existing systems cover parts of the skill lifecycle, for example generating skills from trajectories and validating them before adoption [17](#page-16-2), but an end-to-end treatment of the whole lifecycle (including generation, evaluation, consolidation, and elimination) remains uncommon, as do designs of self-evolving agents targeted at specific scenarios [22](#page-16-7). Moreover, current work mainly focuses on internal strategy optimization within a single agent, with limited exploration of how skill learning mechanisms can co-evolve with system-level architectural expansion.
Therefore, research on evolvable agents still faces two key challenges: first, how to abstract task execution trajectories into composable and transferable structured skill units; second, how to integrate skill learning mechanisms with
architectural evolution so that capability expansion is reflected not only at the strategic level but also at the organizational and collaborative levels.
Against this backdrop, EvoAgent treats skills as continuously accumulable structured capability assets, supporting their generation, evaluation, and reuse through a closed-loop feedback mechanism, with the aim of sustained capability growth oriented toward long-term task distributions.
#### 2.2 Multi-Agent Collaboration and Structured Task Architectures
In complex task scenarios, large language models often face limitations in context window size and excessive cognitive load. To alleviate these bottlenecks, researchers commonly adopt task decomposition and structured execution mechanisms, breaking down overall objectives into subtasks and enhancing stability and controllability through staged reasoning. A representative method is the ReAct framework, which alternates reasoning and tool invocation to form a "Think–Act–Observe" closed-loop process, thereby strengthening complex task handling capabilities [2](#page-15-1).
Building upon this, some studies introduce multi-agent collaboration mechanisms, leveraging role specialization and dialog interaction to achieve task decomposition and cooperative problem-solving. For example, CAMEL [23](#page-16-8) simulates collaborative task-solving by assigning different roles to agents engaged in dialogue, while AutoGen [24](#page-16-9) proposes an orchestratable multi-agent conversation framework that supports the separation of planning and execution for complex tasks. These approaches typically employ predefined roles and fixed communication protocols to complete tasks through multi-round interactions. Specialist hierarchies follow the same pattern: UltrasoundAgents, for example, lets a main agent localize a lesion and a sub-agent analyze the zoomed region, with the roles defined by the diagnostic pipeline [25](#page-16-10).
However, most existing multi-agent frameworks focus on collaborative reasoning at the level of single tasks. Their collaboration structures are usually statically determined during system design and lack the capability to continuously optimize based on historical interaction outcomes. Recent work does optimize the prompts of a production multi-agent assistant against rubrics and an LLM judge calibrated to human annotations [26](#page-16-11), but its optimization target is the agents' prompts. At the same time, role specialization is often primarily organizational in nature and is not deeply integrated with transferable skill accumulation mechanisms, making it difficult to support long-term capability accumulation and system self-evolution.
On the other hand, some works have begun to explore self-improvement and experiential reflection mechanisms in agents. Reflexion [27](#page-16-12) introduces a language feedback loop to revise strategies; Voyager [21](#page-16-6) constructs a skill library to support continuous capability expansion in open environments; Generative Agents [28](#page-16-13) investigate long-term memory and behavioral evolution mechanisms in simulated settings. While these methods emphasize experience accumulation and capability enhancement, their capability updates often remain implicit and lack structured, transferable skill representations.
Overall, existing research has made important progress in task structuring, multi-role collaboration, and reflective capability improvement. However, in real-world business scenarios, there remains a lack of a unified framework that simultaneously integrates structured process control, lightweight multi-role collaboration, and explicit skill accumulation mechanisms. Particularly in industrial environments that emphasize deployment cost and system scalability, achieving sustainable evolution and capability transfer without over-reliance on complex multi-agent orchestration remains an important research challenge.
#### 2.3 Harness Engineering
As the capabilities of large language models rapidly improve, research emphasis has gradually shifted from "how to enhance model reasoning ability" to "how to systematically harness model capability." Harness Engineering, an emerging engineering paradigm in recent years, emphasizes constraining, guiding, and integrating model behavior through an external structured control layer, thereby constructing stable, observable, and evolvable agent systems.
Mitchell Hashimoto named the practice of Harness Engineering in a 2026 post on adopting AI coding agents: whenever the agent makes a mistake, the engineer builds a lasting fix, for example in the agent's instruction file or through programmed tools, so that the mistake does not recur [10](#page-15-9). Effort thus moves from correcting individual outputs to improving the environment in which the agent works.
In the report *Harness engineering: leveraging Codex in an agent-first world*, OpenAI describes building an internal product with Codex agents and no manually written code. It reports that engineering work shifted from writing code to designing environments, specifying intent and building feedback loops and scaffolding for autonomous agents, with practices such as treating documentation as a navigable map, enforcing architectural invariants mechanically, and keeping context inside the repository [11](#page-15-10).
Birgitta Bockeler, writing on Martin Fowler's site, distinguishes guides, which steer the agent before it acts, from ¨ sensors, which observe after it acts and help it self-correct, and separates computational controls, which are deterministic and fast, from inferential ones such as semantic analysis, AI code review and LLM-as-judge [12](#page-15-11). Crossing the two distinctions gives a structural lens for analyzing how an agent's behavior is regulated.
Anthropic describes a harness for long-running application development in which a planner, a generator and a separate evaluator cooperate and hand work over through structured context resets as an alternative to compaction, and it reports that separating the agent that does the work from the agent that judges it is a strong lever [29](#page-16-14). EvoAgent likewise keeps its offline reviewer separate from the online agent.
Furthermore, Paul Iusztin defines the harness as every piece of code, configuration and execution logic that is not the model itself. He nests three levels: prompt engineering crafts the instructions, context engineering decides what enters the context window and when, and harness engineering covers the full application and infrastructure. A complete harness, in his account, consists of the LLM, tools, a planning loop, context engineering, a sandbox, memory, an orchestration layer and a serving layer, with the LLM acting as the operating system around which applications are built [13](#page-15-12).
EvoAgent's four-component view (Figure [1\)](#page-5-0) regroups this list to locate where self-improvement may act. The LLM and the planning loop form *reasoning*, which in EvoAgent is a ReAct cycle; context engineering and tools carry over unchanged; and memory becomes part of *state*, which in EvoAgent also holds the user's profile and skills and the history of the current session. The sandbox, the orchestration layer and the serving layer appear in Figure [1](#page-5-0) as the code sandbox, sub-agent delegation and the API entry, but we do not treat them as separate components because the offline loop never modifies them. What distinguishes our view is that state is singled out as the one component that self-improvement writes to.
Compared with traditional research on multi-agent collaboration or skill self-evolution, Harness Engineering places stronger emphasis on system-level controllability, observability, and evolvability. EvoAgent inherits and extends this paradigm by structurally separating the online execution loop from the offline evolution loop, achieving an engineering balance between strongly constrained execution and capability evolution.
## 3 Methodology
The EvoAgent framework is a user-centered evolvable agent architecture. Through continuous interaction with users, EvoAgent achieves autonomous iteration and optimization of skills. This section elaborates on the research methodology. We first present an overview of the research approach, then provide the theoretical modeling of EvoAgent, and finally introduce the system architecture. Figure [1](#page-5-0) illustrates the overall architecture of EvoAgent. The EvoAgent architecture adopts a hierarchical design in which a main agent collaborates with sub-agents to accomplish task processing, and it is organized as a harness with four components. *Reasoning* is the backbone LLM driven by a ReAct loop. *Context engineering* assembles what the model sees: the persona prompt (SOUL.md), the user state, the matched skill, and a history compressed into a structured summary with an asset index, with context disclosed progressively. *Tools* comprise internal tools, plugins, MCP servers and sub-agent delegation, and tool schemas can be loaded on demand. *State* is divided into agent state, scoped to one session (dialogue history, compression state and task receipts), and user state, which persists across sessions and belongs to the user (profile in USER.md, long-term memory in MEMORY.md, and skills). The main agent and its sub-agents share this harness; only the main agent performs skill matching, skill injection and delegation. A separate offline evolution loop, started on demand, reads session history and writes only to the user state, so the online loop and the offline loop communicate solely through state. The architectural highlights include a three-stage skill-matching cascade with two delegation paths (skill-triggered handoff and model-initiated delegation), a progressive disclosure strategy for context utilization [15](#page-16-0), and structured outputs delivered as an event stream. Models and infrastructure (LLM APIs, storage, a code sandbox and external APIs) support both loops.
#### 3.1 Method Overview
The core objective of EvoAgent is to enable an agent operating in open foreign trade environments to autonomously acquire and continuously optimize skills without explicit manual programming or labeled data supervision. Inspired by the traditional *Human-in-the-loop* paradigm [30](#page-16-15), its evolutionary mechanism can be summarized as a *User-in-the-loop* driven paradigm, where real user interaction feedback serves as the primary signal for capability evolution.
Overall, the EvoAgent workflow consists of the following three stages:

Figure 1: EvoAgent as a harness of reasoning, context engineering, tools and state. Shaded components are fixed during self-improvement; the offline loop (dashed) reads session history and writes only to the user state. Numbers 1–6 mark the execution stages of Section [3.3,](#page-8-0) and \* marks functions performed by the main agent only.
- Context-aware matching: Upon receiving user input, EvoAgent performs a three-stage retrieval process– keyword matching, vector embedding similarity matching, and LLM-based semantic matching–to select the skill unit most appropriate to the current task context from the skill repository.
- Task execution and feedback collection: The system injects the matched skill into the current context to complete task execution. During this process, it records skill invocation frequency and, where a deployment supplies outcome signals, an execution success estimate; these serve as feedback signals for subsequent skill evolution.
- Session-based evolutionary update: After the session concludes, EvoAgent initiates the evolutionary update process, updating user profiles and long-term memory by analyzing dialogue history, and extracting potential new skills or structurally optimizing existing skills based on accumulated usage data.
In Section 3.2, we formally model EvoAgent's evolutionary mechanism and construct its corresponding Markov Decision Process (MDP) formulation; Section 3.3 further details the overall framework design and modular implementation of EvoAgent.
### 3.2 Problem Formulation
Task Environment Definition To formally model the self-evolution process of EvoAgent, we represent its task environment as a Markov Decision Process (MDP). We adopt an approximately observable state space to represent the user interaction environment. The task environment of EvoAgent can thus be defined as MEA = (S, A, P, R, γ), where S denotes the state space, composed of a quadruple including dialogue history, user profile, skill repository state, and context compression state; A represents the action space of the LLM, including skill selection, tool invocation, message generation, profile and memory updates, skill proposals, and history compression; P denotes the state transition probability from the current state S to the next state S' given action a; the reward function R(s, a, s') is modeled as a weighted combination of skill maturity, user profile update magnitude, and memory update magnitude; and γ ∈ [0, 1) is the discount factor.
State Space Definition The state space of EvoAgent is represented as a four-element tuple:
$$s = (h, u, S_{\text{skills}}, c).$$
The tuple splits into agent state (h, c), which is scoped to a session, and user state (u, Sskills), which persists across sessions and belongs to the user; only the user state is written by the offline loop (Section [3.3\)](#page-8-0). The meanings of each component are summarized in Table [1:](#page-6-0)
Component Meaning Corresponding Content *Agent state (per session)* h Dialogue history Session records c Compression state History compression level *User state (persistent, user-owned)* u User profile and memory USER.md + MEMORY.md Sskills Skill repository state configs/skills/{name}/
Table 1: State Space Components
Skill Space Definition A skill skill ∈ Sskills is formally defined as:
skill = (name, desc, triggers, instr, refs, meta).
Here, name denotes the skill name; desc denotes the skill description; triggers is a list of keyword triggers used for matching; instr is the Markdown-formatted execution instruction; refs is a dictionary of reference files supporting lazy loading; and meta represents evolutionary metadata structured as meta = (usage count,success rate, created at, updated at), corresponding to usage count, success rate, creation time, and last update time.
Skill Matching EvoAgent employs a three-stage skill matching strategy to balance efficiency and accuracy. The overall matching function is defined as:
$$M(u, S_{skills}) \to \text{skill} \cup \{\emptyset\}$$
(1)
#### **Stage 1: Keyword Matching**
In this stage, the system traverses all trigger lists of available skills, performing case-insensitive exact string matching, and returns the first matched result.
$$M_{\text{keyword}}(u, S_{\text{skills}}) = \text{first}\{\text{skill} \in S_{\text{skills}} \mid \exists t \in \text{skill.triggers}, \ \text{lower}(t) \sqsubseteq \text{lower}(u)\}$$
(2)
where $\sqsubseteq$ denotes substring containment and first $\{\cdot\}$ returns the first match in a fixed skill order, or $\emptyset$ if there is none.
#### **Stage 2: Embedding Matching**
Executed only if keyword matching fails, this stage encodes the user input using an external embedding API and computes cosine similarity with existing skill descriptions. The skill with the highest similarity exceeding a predefined threshold is selected. Here, $E(\cdot)$ denotes the embedding function, $\cos(\cdot)$ denotes cosine similarity, and $\theta$ is the match threshold (0.75 in our experiments).
$$M_{\text{embed}}(u, S_{\text{skills}}) = \begin{cases} \text{skill}^*, & \text{if } \cos\left(E(u), E(\text{skill}^*.\text{desc})\right) \ge \theta, \\ \emptyset, & \text{otherwise,} \end{cases}$$
skill\* = $\underset{\text{skill} \in S_{\text{skills}}}{\operatorname{argmax}} \cos\left(E(u), E(\text{skill}.\text{desc})\right)$ (3)
#### **Stage 3: LLM Matching**
If the first two stages fail, the system invokes the LLM for intent classification:
$$M_{\text{llm}}(u, S_{\text{skills}}) = \text{LLM}_{\text{intent\_classify}}(u, S_{\text{skills}})$$
(4)
The overall function M returns the result of the first stage that does not return $\emptyset$ :
$$M(u, S_{\text{skills}}) = \begin{cases} M_{\text{keyword}}(u, S_{\text{skills}}), & \text{if } M_{\text{keyword}}(u, S_{\text{skills}}) \neq \emptyset, \\ M_{\text{embed}}(u, S_{\text{skills}}), & \text{else if } M_{\text{embed}}(u, S_{\text{skills}}) \neq \emptyset, \\ M_{\text{llm}}(u, S_{\text{skills}}), & \text{otherwise.} \end{cases}$$
(5)
Full State Transition Based on the above definitions, a complete state transition of EvoAgent is defined as follows:
$$\begin{split} \tilde{\mathbf{h}}^{(t+1)} &= \mathrm{append}(\mathbf{h}^{(t)}, a^{(t)}, \mathrm{result}^{(t)}), \\ (\mathbf{h}^{(t+1)}, c^{(t+1)}) &= \mathrm{compress}(\tilde{\mathbf{h}}^{(t+1)}, c^{(t)}), \\ \mathbf{u}^{(t+1)} &= f_u(\mathbf{u}^{(t)}, \tilde{\mathbf{h}}^{(t+1)}), \\ S_{\mathrm{skills}}^{(t+1)} &= f_s(S_{\mathrm{skills}}^{(t)}, \tilde{\mathbf{h}}^{(t+1)}), \\ s^{(t+1)} &= (\mathbf{h}^{(t+1)}, \mathbf{u}^{(t+1)}, S_{\mathrm{skills}}^{(t+1)}, c^{(t+1)}) \end{split} \tag{6}$$
Here compress replaces the history by a structured summary and an asset index when its length reaches a threshold $\lambda$ , updating the compression state c, and otherwise returns it unchanged. The functions $f_u$ and $f_s$ act as the identity except when the user state is actually updated, that is, by a profile or memory tool call or by a confirmed skill proposal (Section 3.4); the dialogue history h grows at every step, whereas c changes only when compression runs. The transition is deterministic given the action $a^{(t)}$ and the result result $^{(t)}$ ; the randomness of P lies in the action chosen by the LLM and in the result returned by tools and the user.
**Reward Function** In practical EvoAgent applications, there is no explicit numerical reward calculation. Skill tracking primarily relies on implicit monitoring of usage count and, where available, success rate. For theoretical formulation, we define the reward function as a weighted combination of skill maturity, user profile update magnitude, and memory update magnitude, assuming equal weights $(w_1 = w_2 = w_3)$ . Here, $\Delta u_{\text{profile}}$ denotes the magnitude of user profile updates, and $\Delta$ memory denotes the magnitude of memory updates:
$$R(s, a, s') = w_1 \cdot \text{Maturity(skill)} + w_2 \cdot \Delta u_{\text{profile}} + w_3 \cdot \Delta \text{memory}$$
(7)
**Optimization Objective** The optimization objective of EvoAgent is to maximize the expected cumulative reward over a time horizon T, meaning that from the user's perspective, EvoAgent is intended to become more effective through continued use, an effect that we do not measure (Section 4.4):
$$\max_{\pi} \mathbb{E}_{\pi} \left[ \sum_{t=1}^{T} \gamma^{t} \cdot R(s^{(t)}, a^{(t)}, s^{(t+1)}) \right]$$
(8)
where $\pi$ is the policy that selects actions in A.
The expected cumulative reward maximization objective defined in Equation 8 is not computed through explicit numerical reward signals in engineering practice. Instead, it is achieved through a series of **implicit optimization** mechanisms described in Section 3.3. Specifically:
- The update magnitudes ∆uprofile and ∆memory are intended to reflect a deeper system understanding of the user and to improve contextual relevance in subsequent interactions;
- Compiling the MDP optimization objective into an asynchronous offline evolutionary loop is a key design choice that lets the evolution loop run in the absence of explicit reward signals.
#### 3.3 EvoAgent Framework
EvoAgent operationalizes the formal MDP model described in Section 3.2 into a stable, efficient, and self-evolving system through a carefully designed six-stage execution process. The core idea is to clearly divide system behavior into two coordinated closed loops:
Online Execution Loop: Responsible for responding to user requests in real time and ensuring reliable task execution. This loop prioritizes low latency and high determinism.
Offline Evolution Loop: Runs asynchronously between sessions, learning from historical interactions and optimizing long-term system capabilities. This loop prioritizes deep analysis and systemic optimization.
The coordination of these two loops enables EvoAgent to maintain smooth real-time interaction while continuously enhancing its capabilities. As illustrated in Figure [1,](#page-5-0) the overall execution process is divided into the following six stages:
- (1) Three-Stage Skill Matching (Online Execution Loop) As the entry point of task execution, the system employs a cascaded matching strategy as described in Section 3.2. It first performs low-cost heuristic screening via trigger words; if unsuccessful, it upgrades to embedding-based semantic similarity matching; finally, it resorts to LLM-based intent understanding. This design maximizes retrieval efficiency while ensuring accuracy and robustness.
- (2) Skill Injection and Context Assembly (Online Execution Loop) Once a skill is matched, the system performs structured context assembly rather than simply appending text to the prompt. This includes injecting the main instruction file SKILL.md and necessary references/ files on demand, while updating usage count in metadata. The assembled context combines the fixed persona prompt (SOUL.md) with the user state: the profile (USER.md), the memory index and the skill catalog. This stage ensures the agent is equipped with the required domain knowledge before execution.
- (3) Task Execution and Dynamic Compression (Online Execution Loop) The agent executes the task based on the assembled context. To address context window pressure caused by long conversations, the system monitors token usage in real time and triggers a history compression module when approaching the limit. Unlike conventional summarization, EvoAgent prioritizes preserving structured information (e.g., skill references, external links, key data) and forms an "asset index" to maintain reasoning integrity.
- (4) Session Termination Detection and Evolution Trigger (Offline Loop Entry) The offline loop runs outside the online request path. In the released implementation it is started on demand, either through the memory-update action or by delegating to the session-reviewer sub-agent. This context-switching point ensures that computation-intensive evolutionary tasks do not interfere with real-time services.
- (5) Asynchronous Evolution Update (Offline Evolution Core) For user profile and memory management, EvoAgent establishes a multidimensional and dynamically updated information maintenance system structured around five mechanisms:
- Real-time collection mechanism: Immediately updates the profile based on user-provided business information during dialogue;
- Initial guidance mechanism: Proactively collects key dimensions such as main products and target markets during first interaction;
- Post-session analysis mechanism: Extracts new information after sessions to update profile and memory;
- Behavior suggestion mechanism: Generates profile update suggestions based on behavioral analysis, finalized upon user confirmation;
- Response guidance mechanism: Appends 1–2 guiding suggestions after each task to gradually refine user profile information.
This strategy strictly adheres to safety boundary principles, updating profiles only based on explicitly provided user information and avoiding inference of implicit business data from task content.
(6) Skill Maturity Evaluation (Derived from Skill Metadata) Based on metadata such as usage count and success rate, skills are categorized into four levels: Emerging, Growing, Established, and Expert. This evaluation gives users an intuitive indication of how established a skill is. In the released implementation, success rate is initialized to 1.0 and is not updated automatically: estimating it requires outcome signals from a deployment's business workflow, which are proprietary and not part of the open-source release, so maturity there reduces to the usage thresholds.
Through this online–offline dual-loop design, EvoAgent organically integrates agent autonomy with system engineering determinism: the online loop ensures reliable interactions, while the offline loop is intended to enable long-term capability growth. Detailed pseudocode of the evolutionary process is provided in Appendix A.
#### 3.4 Scope and Control of Self-Improvement
What may change. In the four-component view, self-improvement is confined to the user state; the model weights, the context-engineering logic and the tool implementations are not modified by the system. The three parts of the user state follow different write paths. The profile is updated directly only from information the user explicitly provides, either by the agent's profile tool during dialogue or by the session reviewer; a change that goes beyond explicit statements, such as a correction suggested by evidence repeated across conversations, is shown to the user as a suggestion and applied only after the user confirms. Long-term memory is written by the memory tool, on the user's request or by the session reviewer. Skills are never written directly by an agent.
Controlled skill changes. In the released implementation, the skill tool offers read actions and propose. A proposal (create, update, or an exact-fragment patch) is validated, stored on the server, and shown to the user together with every file it would write; it is applied only when the user confirms, and confirmation refers to the stored proposal, so what is applied is what the user saw. An update is refused if the skill changed after the proposal was made, reference sizes are bounded, and one previous version is retained so that a change or a deletion can be undone. In the earlier open-source release (v1.0), confirmation of an extracted skill was enforced only by the front end (Appendix C).
Verification. The proposal workflow of the released implementation is covered by 55 unit tests (tests/unit/test skill proposals.py), all of which pass on the released revision. They check that the skill tool exposes only read actions and propose, that a staged proposal is not a skill until it is confirmed, and that the model receives only a receipt while the user interface receives the full proposal; that oversized, duplicated or path-escaping references and unsuitable create, update or patch requests are rejected without staging anything; that an update is refused when the skill changed after it was proposed, including a concurrent write during confirmation, while ordinary usage counting does not make a proposal stale; that confirmation can be retried after a partial failure and is harmless when repeated; that proposals expire, are capped per user and are superseded according to fixed rules; that a confirmation applies the staged copy rather than the request, and that a proposal identifier cannot address other files; and that undo restores the previous text and references, including after a patch or a deletion. These tests check the mechanism, not its effect on task performance, which we do not evaluate.
Boundaries of the user state. Skills are not inert text. A skill can name registered plugins, which are mounted when the skill is loaded, and it carries reference files that the agent reads on demand. A skill therefore shapes which existing tools the agent has at hand, although it cannot add tool implementations or change the model. This coupling between state and tools makes explicit user control over skill changes important.
What is not claimed. The improvement procedure itself, that is, the review prompts, the extraction rules and the update logic, is fixed: the system improves the state it reads, not the procedure that produces the improvements, so we do not claim recursive self-improvement. Our experiments (Section [4\)](#page-9-1) compare EvoAgent-enhanced and bare models on a fixed set of test queries; they do not measure how performance changes as state accumulates over sessions. The mechanisms in this subsection describe the released implementation and are not evaluated here.
#### 4 Experiments
All experiments in this section were run on the stable business version of EvoAgent that was deployed at the time (the *evaluated version* below), with an embedding match threshold of 0.75. The results are reported as originally measured, in a single run on that version; because the business data cannot be released, they are for reference only (see Section [4.4\)](#page-14-0).
This section presents experiments centered around three Research Questions (RQs): (1) Does EvoAgent as a whole improve the responses of its backbone model in foreign trade scenarios? (2) Is EvoAgent model-agnostic in terms of capability transferability, i.e., how does its overall performance change when the underlying model is replaced? (3) What are the capability boundaries of EvoAgent?
#### 4.1 RQ1
In this experiment, GPT-5.2 is used as the base model of EvoAgent. A ReAct-based framework is designed to support complex workflows in foreign trade scenarios. To evaluate the effectiveness of the EvoAgent system as a whole, we compare two settings: (i) direct invocation of GPT-5.2, and (ii) GPT-5.2 integrated with the EvoAgent framework.
#### 4.1.1 Test Case Collection
To ensure the validity and professionalism of the test data in foreign trade scenarios, we interact with a deployed stable version of EvoAgent via scripted procedures, collecting 664 high-quality multi-turn dialogue sessions. Each session contains 8–9 interaction turns, covering typical foreign trade business scenarios and professional queries. From these sessions we distill 172 evaluation instances, each consisting of the preceding turns as context and a final query to be answered. This dataset is also used in Section [4.2](#page-11-0) to ensure consistency across experiments.
It is important to clarify that the expert-level foreign trade questions in the dataset are not manually selected from successful skill-triggering cases. Instead, user queries are programmatically generated via a parameterized script that exhaustively traverses combinations of product categories, target markets, buyer types, and 12 predefined foreign trade scenarios (e.g., market analysis, quotation response, customs clearance, payment risk, etc.).
Each query is constructed independently of EvoAgent's runtime skill matching results, and is not conditioned on whether a skill is successfully triggered or executed. Therefore, the resulting dataset represents a structured sampling of the foreign trade problem space rather than a biased selection favoring EvoAgent.
Although these queries are synthetically generated, data collection is conducted within a deployed EvoAgent environment. Therefore, the distribution is consistent with the deployment setting and is not fully independent of the system. Future work will further evaluate the framework using independently collected foreign trade corpora to test cross-distribution generalization.
#### 4.1.2 EvoAgent as a Capability Amplifier
Capability Enhancement of GPT-5.2 via EvoAgent Based on the test samples constructed in Section [4.1.1,](#page-10-0) we extract professional queries and feed them into (i) standalone GPT-5.2 and (ii) GPT-5.2 integrated with EvoAgent, respectively. In the scripts used for these experiments the standalone model receives only the final query of each instance, whereas EvoAgent runs its full loop on the same query (see Section [4.4\)](#page-14-0). The outputs are then evaluated across multiple dimensions.
Evaluation Design for Model Responses We evaluate responses with an LLM-as-Judge approach tailored to our scenario [31](#page-16-16) (see Table [2\)](#page-10-1), scoring them across five dimensions: professionalism, accuracy, completeness, practicality, and language quality. Each dimension is scored on a 1–5 Likert scale, covering terminology correctness, factual accuracy, coverage completeness, actionable feasibility, and linguistic fluency.
To reduce position bias, we randomly shuffle the order of candidate responses during evaluation. In those scripts, each pair of responses is judged in a single call at temperature 0, and the per-dimension means are taken over the pairs that could be scored. Final scores are computed by aggregating the five dimensions, followed by grouping analysis based on intent type and task difficulty.
Dimension Label Description Professionalism professionalism Correctness of domain terminology and logic Accuracy accuracy Factual/policy/data correctness Completeness completeness Coverage of all key aspects of the query Practicality practicality Actionability of the response Language Quality language quality Fluency, format, and readability
Table 2: Evaluation Dimensions and Descriptions
Results Comparison We compare GPT-5.2 with and without EvoAgent integration. Results are shown in Table [3.](#page-11-1)
In the professionalism dimension, EvoAgent-enhanced GPT achieves 4.762, substantially higher than the baseline (2.703), with an improvement of 2.059. In accuracy, EvoAgent achieves 4.238 compared to 2.907, improving by 1.331.
For completeness, the difference is marginal (4.215 vs. 4.331, -0.116), indicating stability. In practicality and language quality, EvoAgent also shows consistent improvements, reaching 4.709 and 4.779 respectively.
Overall, the average score increases from 3.547 (GPT-5.2) to 4.541 (EvoAgent + GPT-5.2), representing an improvement of about 28%. These results indicate that EvoAgent substantially improves judged model performance in professionalism, accuracy, practicality, and language quality, while maintaining stability in completeness.
| Dimension | GPT | EvoAgent GPT | Difference |
|------------------|-------|--------------|------------|
| professionalism | 2.703 | 4.762 | 2.059 |
| accuracy | 2.907 | 4.238 | 1.331 |
| completeness | 4.331 | 4.215 | −0.116 |
| practicality | 3.744 | 4.709 | 0.965 |
| language quality | 4.052 | 4.779 | 0.727 |
| Total / Avg | 3.547 | 4.541 | 28.0% |
Table 3: Comparison of GPT and EvoAgent-Enhanced GPT Across Five Dimensions
#### 4.2 RQ2
Model Selection Unlike research-oriented evolutionary agents, EvoAgent is deployed in a real-world foreign trade assistant system. Therefore, in evaluating model transferability, inference cost and deployment feasibility are also key considerations. GPT-5.2 relies on API calls, which can be costly at scale. To examine whether other backbones can be used with EvoAgent, we conduct model substitution experiments.
We select GPT-4.1 [32](#page-16-17) and Qwen3.5-35B-A3B [33](#page-16-18) as baselines, representing closed-source API-based and open-source local deployment paradigms respectively.
Results Evaluation metrics are consistent with Section [4.1.](#page-10-2) We focus on (1) performance change after EvoAgent integration, and (2) performance gap relative to GPT-5.2.
GPT-4.1 Analysis After integration with EvoAgent, GPT-4.1 shows an average performance drop of approximately 13% across five dimensions. Compared to EvoAgent-enhanced GPT-5.2, its overall performance is about 75%.
This suggests that EvoAgent does not improve GPT-4.1 under the current configuration, and even introduces performance degradation. This may be due not only to model capability differences, but also to prompt-style mismatch and instructionfollowing stability issues. Thus, results reflect the interaction between model and system implementation rather than pure architectural gain.
#### Qwen3.5-35B-A3B Analysis For Qwen, results show that:
(1) After EvoAgent integration, performance drops to about 85% of its standalone version; (2) Compared to EvoAgentenhanced GPT-5.2, Qwen achieves 74.5%.
Figure [2](#page-12-0) shows the change of each model relative to its own standalone score, and Figure [3](#page-12-1) shows GPT-4.1 and Qwen with EvoAgent relative to EvoAgent-enhanced GPT-5.2. Both figures are normalized and show relative changes only: we report no absolute scores for GPT-4.1 and Qwen, and we did not measure inference cost, so we draw no conclusion about cost-performance trade-offs. Because the judge in those scripts followed the backbone under test (Section [4.4\)](#page-14-0), the comparison across backbones in Figure [3](#page-12-1) is indicative only.
Impact of EvoAgent on Model Capability Overall, EvoAgent exhibits heterogeneous effects across models. For GPT-5.2, its structured workflow and multi-stage constraints align well with strong reasoning and tool-use capabilities, leading to performance gains.
In contrast, GPT-4.1 and Qwen show performance instability under structured multi-stage constraints. This may be jointly influenced by model capability, prompt compatibility, skill injection format, and context compression strategies. Without ablation studies, we cannot isolate the contribution of each factor.

Figure 2: Performance before and after EvoAgent integration, relative to each model's own standalone score (= 100). GPT-5.2 improves by about 28% (Table [3\)](#page-11-1); GPT-4.1 and Qwen3.5-35B-A3B decrease by about 13% and 15%.

Figure 3: GPT-4.1 and Qwen3.5-35B-A3B with EvoAgent, relative to EvoAgent-enhanced GPT-5.2 (= 100). The values are relative changes only; absolute scores for these models are not reported.
Thus, we interpret model performance as an interaction between intrinsic reasoning capability and system-level compatibility:
$$Model\_capability = Model\_Inference\_Capability \times Agent\_Implementation\_Compatibility$$
(9)
In this form, the compatibility term acts as a factor on the model's standalone capability: a value above one means that the agent system amplifies the model, as observed for GPT-5.2, and a value below one means that it reduces it, as observed for GPT-4.1 and Qwen. We use this form only as an interpretive device; neither term is estimated.
#### 4.3 RQ3
#### 4.3.1 Capability Boundary
What EvoAgent Can Do EvoAgent is a foreign trade-oriented intelligent agent system with self-evolution capabilities, comprising three core functional modules.
First, product reconstruction. Given competitor links, product images, or related materials, the system can automatically analyze product structure and generate structured output including value propositions, frameworks, and product page copywriting.
Second, inquiry response generation. Given customer inquiries, the system generates multiple versions of response emails (e.g., initial reply, quotation confirmation, cold outreach), with controllable tone, length, and strategy.
Third, foreign trade knowledge QA. The system provides structured answers to professional foreign trade questions, optionally supported by knowledge base references (in private deployments).
Additionally, EvoAgent supports extensibility via API-based skill management and automatic skill synchronization for new users.
Key System Metrics In performance testing, we evaluate memory capacity and response latency.
For memory, the system supports up to 420 dialogue turns with 6 compression events without runtime errors. Within 120-turn scenarios, no memory errors are observed across 17 tests. Even at 200 turns without compression, full accuracy is maintained. After compression, while some raw details are lost, core semantics are preserved. The stress-test script of that version covers the turn count, the compression events and errors; it does not include the memory-accuracy checks described here, and it is not part of the current branch.
Compression is triggered when total context exceeds 64K tokens, balancing memory integrity and system stability. We do not conduct strict benchmark comparisons with standalone GPT-5.2 under identical conditions; thus, no direct quantitative comparison is provided.
Overall, EvoAgent demonstrates stable long-horizon operation with only 6 compression events over 420 turns without failures.
For latency, average response time is approximately 12s in the early stage (the first 40 turns) and stabilizes at 24s beyond 120 turns. In our deployment, external tool calls add 5–30s latency depending on complexity; this figure is an operating observation and is not produced by that script. The script reports average latency only for the first 40 turns and after turn 120.
#### 4.3.2 Limitations and Future Work
What EvoAgent Cannot Do The limitations of the evaluated version include:
First, memory constraints: compression leads to irreversible loss of early dialogue details, and long-term memory lacks automatic pruning mechanisms.
Second, user profiling: updates rely on heuristic frequency thresholds and lack deep semantic inference; cross-user knowledge sharing is not supported.
Third, skill execution: only single-skill invocation is supported; no multi-skill orchestration or parallel execution exists.
Fourth, system engineering: lacks cost tracking, monitoring dashboards, and enterprise-grade authentication (e.g., JWT/OAuth).
Fifth, longitudinal evidence: the evaluation compares systems at a point in time and does not measure improvement as state accumulates over sessions; an ablation over the user state (none, profile only, plus memory, plus skills) and a performance curve over session count remain future work.
From a Harness Engineering perspective, the fundamental limitation is the unidirectional coupling between online execution and offline evolution loops. Evolution is triggered on demand, outside the online loop, preventing real-time adaptation to skill degradation or intent shifts. In other words, EvoAgent supports delayed learning but not real-time adaptation. Addressing this limitation is a key direction for future system evolution. Several of the limitations above have since been partially addressed in later open-source releases; Appendix C summarizes those changes, which are not evaluated in this paper.
#### 4.4 Threats to Validity
Baseline configuration. In the scripts used for these experiments, the baseline is a single call to the backbone model at temperature 0 that receives only the final query of each instance, without a system prompt, dialogue context, user profile, memory or skills. The EvoAgent condition runs the full loop on the same query with the case's user and session identifiers, so it can draw on the stored session history, profile, memory and skills. The measured gain is therefore the gain of the harness as a whole, including context that the baseline never sees; it does not isolate the contribution of the evolution mechanism, and we report no ablation over components. The scripts in the current repository add a context-matched baseline that sees the same dialogue, persona, profile and memory but has no tools or skills; the reported numbers do not use it.
Judge. Responses are scored by an LLM judge (Section [4.1\)](#page-10-2). In those scripts the judge model followed the same model setting as the system under test. In RQ1 the backbone therefore judges its own outputs, which can favor its own style, and in RQ2 each swapped backbone judges its own pair of responses, so the scores of different backbones are not produced by a common judge and the relative comparisons in Section [4.2](#page-11-0) are indicative only. Each pair is scored once with the order of the two responses randomized, which controls position bias but not variance across judge calls; pairs whose judgment cannot be parsed are skipped; and those scripts include no calibration of the judge against human ratings. The scripts in the current repository require the judge to be named and to differ from the model under test, can judge every pair in both presentation orders, and report the pairs that cannot be scored; the reported numbers do not use them.
Statistics. Each instance is run once per condition, and we report means without confidence intervals or significance tests. We therefore describe differences as substantial rather than significant.
Data. The 172 evaluation instances are distilled from 664 sessions that were generated by a parameterized script inside a deployed EvoAgent environment, so their distribution is not independent of the system (Section [4.1.1\)](#page-10-0). The corpus is proprietary and cannot be released, so the numbers are for reference only; the evaluation scripts and the input schema are released in the repository so that others can evaluate on their own data.
Scope. The experiments use the evaluated version. The mechanisms of Section [3.4](#page-9-0) and Appendix C are not evaluated here, and we do not measure how performance changes as state accumulates over sessions.
## 5 Conclusion
This paper proposes EvoAgent, an evolvable unified agent framework designed for real-world foreign trade scenarios. Through structured skill representation, a user-driven self-evolution mechanism, and a hierarchical task delegation architecture, EvoAgent establishes a closed-loop system that integrates skill learning, task execution, and long-term memory management within a harness of reasoning, context engineering and tools, and confines self-improvement to a persistent, user-owned state of profile, memory and skills.
From a theoretical perspective, we formalize the evolutionary process as a Markov Decision Process (MDP) and introduce an analytical view in which overall model capability is jointly determined by intrinsic inference ability and agent–model synergy. Empirically, experimental results indicate that EvoAgent substantially improves the judged performance of high-capability backbone models, while also revealing that the degree of structural coupling between the model and the agent architecture plays a critical role in determining final system effectiveness.
Although the current system still faces limitations in memory compression, multi-skill coordination, and operational support, EvoAgent provides a systematic pathway and practical foundation for building next-generation autonomous agent systems aimed at continuous capability growth and real-world deployment. Measuring how performance evolves as state accumulates over sessions, and extending the same confirmation-gated loop to the improvement procedure itself, are directions for future work.
Scope of this report. This paper is an engineering report: it shares practical techniques from building and operating EvoAgent in a foreign trade setting, and the experiments illustrate how these techniques behave in that setting rather than serving as a controlled benchmark. The business data behind the experiments cannot be open-sourced, so the reported results are for reference only; the released code and evaluation scripts document the techniques, not the data.
## Acknowledgment
This work was conducted as part of an internal industry project at Focus Technology Co., Ltd. The authors would like to thank the engineering and product teams for their support in system deployment and real-world testing. The views expressed in this paper are solely those of the authors and do not necessarily represent the official position of the company.
## References
- [1] Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, et al. A survey on large language model based autonomous agents. *Frontiers of Computer Science*, 18:186345, 2024.
- [2] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. In *The eleventh international conference on learning representations*, 2022.
- [3] Timo Schick, Jane Dwivedi-Yu, Roberto Dess`ı, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. *Advances in neural information processing systems*, 36:68539–68551, 2023.
- [4] Hanrong Zhang, Shicheng Fan, Henry Peng Zou, Yankai Chen, Zhenting Wang, Jiayu Zhou, Chengze Li, Wei-Chieh Huang, Yifei Yao, Kening Zheng, et al. Coevoskills: Self-evolving agent skills via co-evolutionary verification. *arXiv preprint arXiv:2604.01687*, 2026. Accepted at COLM.
- [5] Anthropic. Agent skills overview. *https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview*, 2025.
- [6] Renjun Xu and Yang Yan. Agent skills for large language models: Architecture, acquisition, security, and the path forward. *arXiv preprint arXiv:2602.12430*, 2026. Accepted at the Agent Skills '26 Workshop, ACM Conference on AI and Agentic Systems 2026.
- [7] Xiangyi Li, Wenbo Chen, Yimin Liu, Shenghan Zheng, Xiaokun Chen, Yifeng He, Yubo Li, Bingran You, Haotian Shen, Jiankai Sun, et al. Skillsbench: Benchmarking how well agent skills work across diverse tasks. *arXiv preprint arXiv:2602.12670*, 2026.
- [8] Zhaohan Feng, Ruiqi Xue, Lei Yuan, Yang Yu, Ning Ding, Meiqin Liu, Bingzhao Gao, Jian Sun, Xinhu Zheng, and Gang Wang. Multi-agent embodied ai: Advances and future directions. *Science China Information Sciences*, 69(5):151202, 2026.
- [9] Khanh-Tung Tran, Dung Dao, Minh-Duong Nguyen, Quoc-Viet Pham, Barry O'Sullivan, and Hoang D Nguyen. Multi-agent collaboration mechanisms: A survey of llms. *arXiv preprint arXiv:2501.06322*, 2025.
- [10] Mitchell Hashimoto. My AI adoption journey, February 2026. Personal blog post. Accessed: 2026-11-05. .
- [11] OpenAI. Harness engineering: leveraging codex in an agent-first world, February 2026. Accessed: 2026-02-11.
- [12] Birgitta Bockeler. Harness engineering for coding agent users, April 2026. martinfowler.com. Accessed: 2026-11- ¨ 05. .
- [13] Paul Iusztin. Agentic harness engineering: LLMs as the new OS, March 2026. Decoding AI Magazine, engineering blog post. .
- [14] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, et al. Toolllm: Facilitating large language models to master 16000+ real-world apis. *arXiv preprint arXiv:2307.16789*, 2023.
- [15] Anthropic. Equipping agents for the real world with Agent Skills, October 2025. Engineering blog post. Accessed: 2026-11-05. [https://www.anthropic.com/engineering/](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) [equipping-agents-for-the-real-world-with-agent-skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills).
- [16] Yutao Yang, Junsong Li, Qianjun Pan, Bihao Zhan, Yuxuan Cai, Lin Du, Jie Zhou, Kai Chen, Qin Chen, Xin Li, et al. Autoskill: Experience-driven lifelong learning via skill self-evolution. *arXiv preprint arXiv:2603.01145*, 2026.
- [17] Libin Qiu, Zhirong Gao, Junfu Chen, Yuhang Ye, Liangyu Li, Weizhi Huang, Xiaobo Xue, Wenkai Qiu, and Shuo Tang. Autorefine: Compiling trajectories into validated typed agent artifacts. *arXiv preprint arXiv:2601.22758*, 2026.
- [18] Tarisai Mugambiwa and Belinda Ndlovu. Multi-agent retrieval augmented generation for clinical decision support: A systematic review and integrative conceptual framework. *Journal of Applied Informatics and Computing*, 10(1):171–183, 2026.
- [19] Yuxiang Zhou, Jichang Li, Yanhao Zhang, Haonan Lu, and Guanbin Li. Mobile-agent-rag: Driving smart multiagent coordination with contextual knowledge empowerment for long-horizon mobile automation. In *Proceedings of the AAAI Conference on Artificial Intelligence*, volume 40, pages 29939–29947, 2026.
- [20] Zeyi Sun, Ziyu Liu, Yuhang Zang, Yuhang Cao, Xiaoyi Dong, Tong Wu, Dahua Lin, and Jiaqi Wang. Seagent: Self-evolving computer use agent with autonomous learning from experience. *arXiv preprint arXiv:2508.04700*, 2025.
- [21] Guanzhi Wang et al. Voyager: An open-ended embodied agent with large language models. *Transactions on Machine Learning Research*, 2024. arXiv:2305.16291.
- [22] Nous Research. Hermes agent. , 2026.
- [23] Guohao Li et al. Camel: Communicative agents for "mind" exploration of large language model society. In *Advances in Neural Information Processing Systems 36 (NeurIPS)*, 2023. arXiv:2303.17760.
- [24] Qingyun Wu et al. Autogen: Enabling next-gen llm applications via multi-agent conversation. In *First Conference on Language Modeling (COLM)*, 2024. arXiv:2308.08155.
- [25] Yali Zhu, Kang Zhou, Dingbang Wu, and Gaofeng Meng. Ultrasoundagents: Hierarchical multi-agent evidencechain reasoning for breast ultrasound diagnosis. *arXiv preprint arXiv:2603.10852*, 2026.
- [26] Alejandro Breen Herrera, Aayush Sheth, Steven G. Xu, Zhucheng Zhan, et al. Build, judge, optimize: A blueprint for continuous improvement of multi-agent consumer assistants. *arXiv preprint arXiv:2603.03565*, 2026.
- [27] Noah Shinn et al. Reflexion: Language agents with verbal reinforcement learning. In *Advances in Neural Information Processing Systems 36 (NeurIPS)*, 2023. arXiv:2303.11366.
- [28] Joon Sung Park et al. Generative agents: Interactive simulacra of human behavior. In *UIST*, 2023.
- [29] Prithvi Rajasekaran. Harness design for long-running application development, March 2026. Anthropic engineering blog post. Accessed: 2026-11-05. [https://www.anthropic.com/engineering/](https://www.anthropic.com/engineering/harness-design-long-running-apps) [harness-design-long-running-apps](https://www.anthropic.com/engineering/harness-design-long-running-apps).
- [30] Xingjiao Wu, Luwei Xiao, Yixuan Sun, Junhang Zhang, Tianlong Ma, and Liang He. A survey of human-in-theloop for machine learning. *Future Generation Computer Systems*, 135:364–381, 2022.
- [31] Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, and et al. Judging llm-as-a-judge with mt-bench and chatbot arena. In *Advances in Neural Information Processing Systems 36 (NeurIPS), Datasets and Benchmarks Track*, 2023. arXiv:2306.05685.
- [32] OpenAI. Introducing GPT-4.1 in the API. , April 2025.
- [33] Qwen Team. Qwen3.5. , February 2026.
#### Appendices
#### Appendix A: EvoAgent Self-Evolution Process Pseudocode
```
1 Algorithm : EvoAgent Skill Evolution
2 % Note : This pseudocode follows the current open - source release ( OpenAI Agents SDK
) .
3 % Tags : [ CE ] context engineering , [ R ] reasoning , [ T ] tools . Phase - to - stage map (
Section 3.3) :
```
```
4 % phases 2 -3 = stages 1 -2; phases 1 , 3.5 , 4 = stage 3; phase 6 = stages 4 -5; phase
7 = stage 6.
6 Input :
7 u - User input
8 S_skills - Skills Base
9 u_profile - USER . md
10 h - Conversation History
11 lambda - History Compression Threshold ( MAX_HISTORY_TOKENS x
COMPRESSION_THRESHOLD )
12 theta - Embedding Match Threshold ( Default 0.75)
14 Output :
15 s_out - Matched Skill
16 h ' - Updated Conversation History
17 u_profile ' - Updated User Profile
18 S_skills ' - Updated Skill Base
19 c ' - Updated Compression Status
21 ----------------------------------------
23 1: // Initialization
24 2: user_id <- extract_user_id ( u )
25 3: session_id <- extract_session_id ( u )
26 4: ws <- Workspace ( user_id )
27 5: h , SOUL , u_profile , memory <- ws . load ( session_id ) // SOUL : fixed persona ;
u_profile , memory : user state ; h : agent state
28
29 6: // -- Phase 1: History Compression ( before skill injection ) [ CE ] --
30 7: if tokens ( h ) >= lambda then
31 8: assets <- extract_asset_index ( h ) // skills , references , images ,
URLs
32 9: summary <- llm_generate_summary ( h ) // six - section < summary > block
33 10: h <- { summary , assets } + recent_tail ( h ) // tool calls and results stay
paired
34 11: end if
36 12: // -- Phase 2: Skill Matching ( Three Stages ) [ CE ] --
37 13: skill <- NONE
38 14: // Stage 1: Keyword Matching
39 15: for each sk in S_skills do
40 16: for each t in sk . triggers do
41 17: if t . lower () in u . lower () then
42 18: skill <- sk
43 19: match_type <- " keyword "
44 20: confidence <- 1.0
45 21: goto PHASE3
46 22: end if
47 23: end for
48 24: end for
49
50 25: // Stage 2: Embedding Matching ( cosine similarity )
51 26: if skill = NONE then
52 27: e_u <- get_embedding ( u ) // Call embedding API
53 28: best_score <- 0
54 29: for each sk in S_skills do
55 30: e_sk <- get_skill_embedding ( sk ) // Cached per skill description
56 31: score <- cosine_similarity ( e_u , e_sk )
57 32: if score > best_score then
58 33: best_score <- score
59 34: skill <- sk
60 35: end if
61 36: end for
62 37: if best_score >= theta then
63 38: match_type <- " embedding "
```
```
64 39: confidence <- best_score
65 40: else
66 41: skill <- NONE
67 42: end if
68 43: end if
69
70 44: // Stage 3: LLM Matching ( semantic fallback )
71 45: if skill = NONE then
72 46: skill <- LLM_intent_classify (u , S_skills )
73 47: if skill != NONE then
74 48: match_type <- " llm "
75 49: confidence <- 0.7
76 50: end if
77 51: end if
78
79 52: PHASE3 :
80 53: // -- Phase 3: Skill Injection & Context Assembly [ CE ] --
81 54: if skill != NONE and skill not in h then
82 55: // Inject the skill through a synthetic skill ( get ) call
83 56: h <- h + { role : " assistant " , tool_calls : [{
84 57: id : " skill_autoload_ " + uuid () ,
85 58: function : { name : " skill " ,
86 59: arguments : { action : " get " , name : skill . name }}
87 60: }]}
88 61: h <- h + { role : " tool " , content : format_skill_content ( skill ) }
89
90 62: // Increment usage tracking metadata
91 63: skill . usage_count <- skill . usage_count + 1
92 64: skill . updated_at <- now ()
93 65: ws . skill_set ( skill . name , skill_to_md ( skill ) )
94 66: end if
96 67: // -- Phase 3.5: Optional Sub - Agent Handoff ( if required by skill ) [ T ] --
97 68: if skill != NONE and skill . requires_sub_agent then
98 69: h <- h + { role : " user " , content : u }
99 70: // The child runs in its own context and streams its output to the user
100 71: receipt <- delegate ( skill . sub_agent_name or skill . name , task =u ,
101 72: task_id = automatic_task_id ( skill . name ) )
102 73: h <- h + receipt // the parent keeps only the
delivery receipt
103 74: goto PHASE5
104 75: end if
106 76: // -- Phase 4: Task Execution ( Main Agent ) [ R + T ] --
107 77: instructions <- build_instructions ( SOUL , u_profile , memory_index ,
skill_catalog )
108 78: main_agent <- Agent ( name =" EvoAgent " ,
109 79: instructions = instructions ,
110 80: tools = internal_tools + plugins )
111 81: // The history is compacted again between tool steps when it exceeds lambda
112 82: result <- Runner . run_streamed ( main_agent , input =h , max_turns = MAX_STEPS )
113 83: h <- h + result . to_input_list ()
114
115 84: PHASE5 :
116 85: // -- Phase 5: Persist Session ( agent state ) --
117 86: ws . history_save ( session_id , h ) // also after an interruption ,
with partial results
118
119 87: // -- Phase 6: Offline Evolution ( on demand ; writes only user state ) --
120 88: // Started by the memory - update action , or by delegating to the session -
reviewer sub - agent
121 89: if review_requested then
122 90: review_agent <- Agent (
123 91: name =" SessionUpdater " ,
124 92: instructions = SESSION_UPDATE + SKILL_EXTRACT ,
```
```
125 93: tools =[ update_user_profile , memory , skill ]
126 94: )
127 95: review_result <- Runner . run_streamed ( review_agent , input =h , max_turns =10)
128
129 96: // update_user_profile and memory calls write USER . md and MEMORY . md
130 97: // ( conservative update principle : only explicit , reliable information ;
131 // suggestions from evidence repeated across conversations wait for user
confirmation )
132 98: u_profile <- ws . read_prompt (" USER ")
134 99: // The skill tool cannot write skills : it can only propose them
135 100: for each p in review_result . skill_proposals do // skill ( action =" propose ")
136 101: stage ( p ) // validated , stored on the
server , shown to the user
137 102: if user_confirms ( p ) and base_unchanged ( p ) then
138 103: apply ( p ) // create | update | patch ;
previous version kept
139 104: end if
140 105: end for
141 106: end if
143 107: // -- Phase 7: Skill Maturity Assessment ( frontend display ) --
144 108: if skill != NONE then
145 109: n_uses <- skill . usage_count
146 110: sr <- skill . success_rate // initialized to 1.0; not
updated in this release
147 111: if n_uses >= 10 and sr >= 0.85 then
148 112: maturity <- " Expert "
149 113: else if n_uses >= 4 and sr >= 0.7 then
150 114: maturity <- " Established "
151 115: else if n_uses >= 1 then
152 116: maturity <- " Growing "
153 117: else
154 118: maturity <- " Emerging "
155 119: end if
156 120: end if
158 121: return skill , h , u_profile , S_skills , c
```
#### Appendix B: EvoAgent Git
EvoAgent: . The scripts used for RQ1–RQ3 are no longer part of the current branch; it keeps two updated scripts in the evaluation/ directory, one that generates responses under each condition and one that scores them with an LLM judge; the evaluation corpus contains proprietary business data that cannot be released, so the reported results are for reference only.
#### Appendix C: Changes Since the Earlier Open-Source Release
The experiments were run on the evaluated version (Section [4\)](#page-9-1). Section [3,](#page-4-0) Figure [1](#page-5-0) and Appendix A describe the current open-source release. The main differences from the earlier open-source release (v1.0), whose code we compared with the current one, are listed below; none of them is covered by the experiments above:
- Cloud workspace. A configuration switch selects object-store-backed workspaces in place of the local filesystem. Code execution and stdio MCP servers can run in a per-session Docker container that mounts the workspace; skill and memory tools access storage directly, and concurrent updates to memory files and skill text use conditional writes.
- Confirmed skill changes. In the earlier open-source release the confirmation of an extracted skill was enforced only by the front end. Now the skill tool offers read actions and propose, so agents cannot write skills at all; a proposal (create, update, or exact-fragment patch) is validated, stored on the server, shown to the user with every file, and applied only on confirmation. An update is refused if the skill changed in the meantime,
reference sizes are bounded, and one previous version is kept so that a change or deletion can be undone (see Section [3.4\)](#page-9-0).
- Tool search and MCP. Tool schemas can be loaded on demand, and MCP tools can be mounted for a request.
- Delegation. Sub-agent tasks carry task identifiers, so independent tasks can run in parallel and be revised later; the parent receives a delivery receipt rather than the child's transcript.
- Context compression. The summary prompt has six sections (earlier release: nine parts) and covers the complete transcript within token-bounded fragments; an index of recoverable resources is kept, compression can run between tool steps, and skill guides are unloaded together with their tool grants.
- Runtime contracts. Typed tool outcomes, question routing, measured provider usage, a Prometheus metrics endpoint, and saving of partial results when a request is interrupted.