Manuscript Offprint

arXiv:2609.07357

EnvPilot: Systematic Design and Evaluation of an Experience-Augmented Agent for Software Environment Setup

Hanwu Chen, Hanyu Lin, Zhanjiang Yang, Linhao Zhang, Aoyan Li, Jinxi Li, Meng Li, Yin Chen, Daoguang Zan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

HANWU CHEN*, Shenzhen Technology University, China

HANYU LIN*, Shenzhen University, China

ZHANJIANG YANG, Shenzhen Technology University, China

LINHAO ZHANG, Shandong University, China

AOYAN LI, Huazhong University of Science and Technology, China

JINXI LI, Shenzhen Technology University, China

MENG LI, Shenzhen Technology University, China

YIN CHEN†, Shenzhen Technology University, China

DAOGUANG ZAN†, Institute of Software, Chinese Academy of Sciences, China

Environment Setup is a critical yet complex task in software engineering that relies heavily on expert knowledge. Existing automated environment setup methods lack the ability to accumulate experience from past execution trajectories and to evolve over time. As a result, their performance is limited because they often perform redundant exploration, ignore useful past solutions, and fail to generalize across diverse software ecosystems. We present the systematic design and empirical validation of EnvPilot, an experience-augmented agent that operationalizes trajectory-derived experience reuse for software environment setup. EnvPilot maintains an expandable Trajectory-Derived Memory (TDM), initialized with 667 high-quality experiences. It systematically transforms implicit knowledge from historical execution trajectories into structured experience and retrieves the most relevant guidance during task execution through the Context-aware Retrieval mechanism. This enables EnvPilot to combine multiple validated setup strategies, providing more precise and detailed guidance than methods that rely solely on static project files or web retrieval. To evaluate EnvPilot, we construct AES-Bench, a multilingual benchmark of 112 real-world GitHub instances across 9 programming languages. Experiments show that EnvPilot achieves a new state-of-the-art (SOTA) with a 75.00% Pass@1 success rate while reducing reasoning costs. Our empirical study shows that both the structured experience representation and the Context-aware Retrieval mechanism are essential.

CCS Concepts: • Software and its engineering → Software maintenance tools; Software configuration management and version control systems; • Computing methodologies → Natural language processing; Machine learning.

*. These authors contributed equally to this work. †. For correspondence, please contact Yin Chen and Daoguang Zan.

Hanwu Chen, Shenzhen Technology University, China; Hanyu Lin, Shenzhen University, China; Zhanjiang Yang, Shenzhen Technology University, China; Linhao Zhang, Shandong University, China; Aoyan Li, Huazhong University of Science and Technology, China; Jinxi Li, Shenzhen Technology University, China; Meng Li, Shenzhen Technology University, China; Yin Chen, Shenzhen Technology University, China; Daoguang Zan, Institute of Software, Chinese Academy of Sciences, China.

*For correspondence, please contact Yin Chen (chenyin@sztu.edu.cn) and Daoguang Zan (daoguang@iscas.ac.cn).

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM 1557-7392/2026/6-ART

Additional Key Words and Phrases: Automated Environment Setup, Software Engineering Agent, Large Language Models, Experience Reuse

ACM Reference Format:

Hanwu Chen, Hanyu Lin, Zhanjiang Yang, Linhao Zhang, Aoyan Li, Jinxi Li, Meng Li, Yin Chen†, and Daoguang Zan†. 2026. EnvPilot: Systematic Design and Evaluation of an Experience-Augmented Agent for Software Environment Setup. ACM Trans. Softw. Eng. Methodol. 1, 1 (June 2026), 49 pages.

References (50)