TraceDev: A Traceability-Driven Multi-agent Framework for Requirement-to-Code Development

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, extended

Summary

TraceDev is a novel multi-agent framework designed for automated software development, addressing limitations in existing Large Language Model (LLM)-based approaches that struggle with complex Natural Language Requirements (NLRs) and lack explicit traceability. It employs five specialized agents—Requirement Refiner, Designer, Developer, Tester, and Validator—to simulate the Software Development Life Cycle. Crucially, the Validator Agent constructs and maintains a heterogeneous traceability graph linking requirements, design models, and code artifacts, ensuring consistency and providing structured context for memory management. Evaluated on the ETOUR and SMOS datasets (125 use cases), TraceDev achieved a 53.63% success rate on ETOUR, outperforming baselines by up to 186.63%, and a 56.82% success rate on SMOS, exceeding baselines by up to 340.80%, demonstrating its effectiveness in repository-level code generation.

Key takeaway

For software engineering teams aiming to automate complex, requirement-driven code generation, you should consider adopting a traceability-driven multi-agent approach. TraceDev's architecture, particularly its Validator Agent and heterogeneous traceability graph, significantly enhances code completeness and functional correctness for repository-level projects. Integrating similar mechanisms into your LLM-based development workflows can reduce semantic deviations and functional omissions, improving maintainability and reducing the "cold start" problem for human engineers during the 80% maintenance phase.

Key insights

TraceDev uses a multi-agent framework with a dynamic traceability graph to generate repository-level code from complex use cases.

Principles

Method

TraceDev refines use cases, generates design models (class/sequence diagrams), implements code, and tests. A Validator Agent builds a traceability graph for consistency and memory, guiding iterative refinement.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.