Introduction
Software Engineering (SE) is currently undergoing a fundamental paradigm shift. For several years, Large Language Models (LLMs) like GPT-4 have been utilized primarily as sophisticated autocomplete tools or static code generators. However, these models often hit a "glass ceiling" in professional environments due to limited context windows, a tendency toward hallucinations, and a lack of true autonomy. They can suggest code, but they cannot compile, test, or iterate on it independently.
To overcome these hurdles, the research community has pivoted toward LLM-based agents. These are autonomous systems where the LLM acts as a "brain" capable of planning, using external tools (like compilers and shells), and learning from feedback. As shown in the recent literature, the volume of research into these agents has exploded, particularly in 2024, signaling a move from passive assistance to proactive problem-solving.
Defining Agency in Software Engineering
Because the term "agent" is often used loosely, this survey establishes a rigorous 6-point criteria to distinguish a true agentic system from a standard LLM implementation:
- The Brain: The LLM serves as the central reasoning engine.
- Planning: The system can decompose complex goals into actionable steps.
- Tool Use: The ability to autonomously invoke APIs, compilers, or debuggers.
- Selection: The capacity to evaluate multiple outputs and select the optimal path.
- Interaction: Maintaining deep context over multi-turn dialogues.
- Learning: The ability to adapt based on execution results or past experiences.
Domain Distribution and Methodology
The authors analyzed 139 papers published between late 2023 and late 2024, categorizing them into six core SE domains. While LLMs still maintain a strong presence in traditional areas like Requirement Engineering and Documentation, LLM-based agents are rapidly gaining ground in Autonomous Learning, Decision Making, and Software Security.
Key Insights: The Multi-Agent Revolution
A significant trend identified in the survey is the rise of Multi-Agent Systems (MAS). Frameworks like MetaGPT and ChatDev utilize "role-playing" architectures where specialized agents (e.g., a Coder, a Reviewer, and a QA Engineer) collaborate. This division of labor has been shown to significantly reduce hallucinations and improve the architectural integrity of generated software.
Furthermore, the integration of Retrieval-Augmented Generation (RAG) and explicit memory pools allows agents to mimic human experience. By "remembering" past debugging sessions, these agents can avoid repeating previous mistakes, effectively closing the loop between code generation and execution.
Benchmarking and Performance
The shift toward agency has necessitated a change in how we measure success. Traditional snippet-based benchmarks like HumanEval are being replaced by "real-world" complexity tests:
- SWE-bench: Evaluates the ability to resolve actual GitHub issues across entire repositories.
- RepairAgent: Has demonstrated the ability to fix 186 bugs in the Defects4J benchmark, outperforming traditional automated program repair tools through iterative feedback loops.
- Efficiency: In simulated environments, systems like ChatDev have generated small-scale software projects in under seven minutes for a cost of less than $1.00.
Challenges and Future Outlook
Despite the rapid progress, several bottlenecks remain. Error cascades are a primary concern; in multi-agent workflows, a single logical error by a "Product Owner" agent can lead to total system failure. Additionally, the multi-turn reasoning required for agency introduces higher latency and operational costs compared to single-shot LLM queries.
Future research is expected to focus on multimodal agents capable of interpreting UI/UX designs and more robust human-agent collaboration frameworks. As these systems become more transparent in their "thought traces," they will move from experimental prototypes to reliable partners in the professional software development lifecycle.
Summary updated