Logo image
Improving LLM-assisted code generation through the use of architectural documents and implementation plans
 

Improving LLM-assisted code generation through the use of architectural documents and implementation plans

Humberto Cervantes, Rick Kazman Yuanfang Cai
Proceedings of the 3rd International Workshop on Designing Software, pp 23-30
28 Jun 2026
 

(1)

url
https://doi.org/10.1145/3786152.3788588
Published, Version of Record (VoR) Open Access via Drexel Libraries Read and Publish Program 2026
Software and its engineering -- Automatic programming
In this paper, we investigate LLM-assisted code generation using architectural documentation as a first-class input. Building on prior work that guides LLMs through Attribute-Driven Design (ADD), we propose a workflow in which the LLM synthesizes an implementation plan from requirements and an architecture document, and then generates code with human oversight. Using a ReAct-style agent as a case study, we perform three experiments and evaluate architectural conformance and functional correctness of a primary use case. In addition we capture size and modularity metrics using the DV8 tool. Our results show that incorporating architectural documentation substantially improves conformance and that adding an explicit implementation plan further enhances functional correctness and modularity.
1
Logo image