Architectural analysis of codebases using agentic AI techniques
Loading...
Date
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
DOI
Abstract
Understanding an unfamiliar repository is a central part of software engineering work, and it is especially visible when grading team projects in software engineering courses. Before a submission can be judged, the grader must first recover its structure: which services it contains, which endpoints it exposes, how components communicate, which use cases are implemented, and which risks are visible in the code. Large language models (LLMs) can describe code fluently, but fluency is not enough. A hallucinated endpoint, dependency, or workflow can read as confidently as a real one.
This thesis argues that trust in automated architecture analysis should come from the scaffolding around the model, not from the model's raw capability alone. It presents INSARC, Insight into Software Architecture using AI-assisted, evidence-based analysis, a fixed pipeline that turns a source repository into an auditable architectural description. The pipeline decomposes the problem into small tasks with typed artifacts. Basic facts are extracted by deterministic extractors and also by LLM-generated parsers for a language and framework stack that are executed over the actual repository. Model-based synthesis is guided by evidence pointers. The generated claims are then marked as grounded or ungrounded, and a smaller judge model checks and classifies the grounded claims as verified, unverified, or contradicted.
The evaluation uses student projects from two courses. The main batch contains twenty-six SaaS microservice platforms, and the second one contains two SoftEng systems built as a single backend with a REST API, a web frontend, and a command-line client. Three configurations are compared: INSARC with Local models, INSARC with OpenAI models, and Claude Code as a general coding-agent baseline. On the shared subset of twelve SaaS repositories, the mean cost per repository is roughly $0.086, $2.658, and $4.337 respectively, while the full Local sweep of twenty-six repositories costs $2.40 in total. The results support a tiered conclusion. INSARC with OpenAI models is the strongest traceable configuration. Claude Code often writes the best free-form architecture explanation but lacks the same typed artifacts, claim graph, and verification trail. The Local configuration is valuable as an extremely cheap first pass for batch exploration, even though it fails to synthesise architecture summaries for most repositories.
