cs.SEApr 9, 2026

CIAO - Code In Architecture Out - Automated Software Architecture Documentation with Large Language Models

Authors: Marco De Luca, Tiziano Santilli, Domenico Amalfitano, Anna Rita Fasolino, Patrizio Pelliccione

Organizations: University of Naples Federico II Naples, Italy · University of Southern Denmark Odense, Denmark · Gran Sasso Science Institute L’Aquila, Italy

Abstract

Software architecture documentation is essential for system comprehension, yet it is often unavailable or incomplete. While recent LLM-based techniques can generate documentation from code, they typically address local artifacts rather than producing coherent, system-level architectural descriptions. This paper presents a structured process for automatically generating system-level architectural documentation directly from GitHub repositories using Large Language Models. The process, called CIAO (Code In Architecture Out), defines an LLM-based workflow that takes a repository as input and produces system-level architectural documentation following a template derived from ISO/IEC/IEEE 42010, SEI Views & Beyond, and the C4 model. The resulting documentation can be directly added to the target repository. We evaluated the process through a study with 22 developers, each reviewing the documentation generated for a repository they had contributed to. The evaluation shows that developers generally perceive the produced documentation as valuable, comprehensible, and broadly accurate with respect to the source code, while also highlighting limitations in diagram quality, high-level context modeling, and deployment views. We also assessed the operational cost of the process, finding that generating a complete architectural document requires only a few minutes and is inexpensive to run. Overall, the results indicate that a structured, standards-oriented approach can effectively guide LLMs in producing system-level architectural documentation that is both usable and cost-effective.

Figures & tables

Explore similar work

CardsList
  1. LLM-based Automated Architecture View Generation: Where Are We Now?

    Mar 22, 2026Miryala Sathvika, Rudra Dhar, Karthik VaidhyanathanSoftware EngineeringAutomated Software Engineering

  2. Unified Architecture Metamodel of Information Systems Developed by Generative AI

    Mar 31, 2026Oleg Grynets, Vasyl LyashkevychSoftware EngineeringSoftware Architecture Design

  3. CAPRA: Scaling Feedback on Software Architecture Deliverables with a Multi-Agent LLM System

    Jun 17, 2026Marco Becattini, Niccolò Caselli, Matteo Minin +2Software EngineeringMulti-Agent LLM Systems