Engineering Practices in Open-Source Agent Frameworks: A Large-Scale Empirical Study
Yibo Zhai, Junjun Si, Yan Wang et al. · 2026
The rapid development of Large Language Models (LLMs) accelerates the adoption of LLM-based agents in software engineering, data analysis, and automated decision-making. To support agent development, various open-source frameworks provide modular abstractions for planning, tool invocation, and memory management, lowering the engineering barrier. Although widely used, research mainly emphasizes capability modeling and architectural innovation, while systematic analysis of engineering practices and real-world usage remains limited. This paper presents a large-scale empirical study of mainstream open-source agent frameworks from an engineering perspective. We first identify the ten most popular frameworks in the open-source community and examine their popularity and language support. By analyzing official documentation, API interfaces, and source-level implementations, we extract common design principles and distill five best practices. We then formalize corresponding defect patterns and perform stratified proportional sampling on 73,014 downstream projects to evaluate how these practices are implemented. The results reveal recurring issues, including incomplete agent description, improper memory Strategy, insufficient monitoring and error handling, and suboptimal tool design. These defects appear across frameworks, indicating structural gaps between recommended abstractions and practical adoption. Overall, this study provides empirical evidence linking framework design choices to engineering risks and highlights the need for stronger guidance and support in agent framework development.
Cited by 0 works. doi:10.1145/3803437.3805533
Authors
References
- A survey on large language model based autonomous agents
- Large Language Models for Software Engineering: A Systematic Literature Review
- Using an LLM to Help With Code Understanding
- AIKernel Semantic DSL Compiler and Deterministic Agent Execution Architecture
- Evaluation and Benchmarking of LLM Agents: A Survey
- Agents in software engineering: survey, landscape, and vision
- Plan-Then-Execute: An Empirical Study of User Trust and Team Performance When Using LLM Agents As A Daily Assistant
- Chatbot Development Using LangChain: A Case Study to Foster Critical Thinking and Creativity
- ElderQA-GPT: A Large Language Model for Online Q&A on Geriatric Diseases Based on BGE Semantic Vector Knowledge Base and LangChain Architecture
- Using RAG, LLMs, and LangChain to Create a Query Application on Open Repositories: Demo Application on DSpace-7