Agent Tuning & Optimization 相关度: 9/10

AgentFactory: A Self-Evolving Framework Through Executable Subagent Accumulation and Reuse

Zhang Zhang, Shuqi Lu, Hongjin Qian, Di He, Zheng Liu
arXiv: 2603.18000v1 发布: 2026-03-18 更新: 2026-03-18

AI 摘要

AgentFactory提出了一种基于可执行子代理的自进化框架,通过积累和复用子代理代码实现能力增长。

主要贡献

  • 提出AgentFactory自进化框架
  • 使用可执行子代理进行知识积累和复用
  • 子代理基于执行反馈持续优化

方法论

AgentFactory将成功任务方案保存为可执行子代理代码,并通过执行反馈不断优化子代理,实现能力积累。

原文摘要

Building LLM-based agents has become increasingly important. Recent works on LLM-based agent self-evolution primarily record successful experiences as textual prompts or reflections, which cannot reliably guarantee efficient task re-execution in complex scenarios. We propose AgentFactory, a new self-evolution paradigm that preserves successful task solutions as executable subagent code rather than textual experience. Crucially, these subagents are continuously refined based on execution feedback, becoming increasingly robust and efficient as more tasks are encountered. Saved subagents are pure Python code with standardized documentation, enabling portability across any Python-capable system. We demonstrate that AgentFactory enables continuous capability accumulation: its library of executable subagents grows and improves over time, progressively reducing the effort required for similar tasks without manual intervention. Our implementation is open-sourced at https://github.com/zzatpku/AgentFactory, and our demonstration video is available at https://youtu.be/iKSsuAXJHW0.

标签

AI Agent 自进化 知识积累 代码复用

arXiv 分类

cs.AI