CodeInsight AI: A Context-Aware Framework for Automated Codebase Comprehension through Dependency Analysis, Interactive Visualization, and Large Language Models
Understanding an unfamiliar software repository often means piecing together information scattered across files, folders, imports, and architectural layers. Dependency tools can show how files relate to one another, while AI coding assistants can explain code, but developers do not always get these capabilities in one place. CodeInsight AI brings them together in a web-based environment. It scans ZIP archives or Git repositories, identifies supported source files, extracts imports with regular expressions, resolves local references, groups files using practical architectural heuristics, and displays the resulting dependency graph. Project information is stored in PostgreSQL, and selected details are added to the prompt sent to Gemini when a developer asks a question. In the evaluation, JavaScript/TypeScript dependency extraction achieved 86.2% precision, 96.2% recall, and an F1 score of 90.9% against Madge. The Python comparison reported 100% concordance for internal dependencies against a reference built with Python's native ast module, and architectural classification reached 97.6% accuracy. Five-run benchmarks covered repositories from 60 to 1,000 source files. In a study involving 14 undergraduate students, the CodeInsight AI group completed comprehension tasks 60.3% faster, answered more accurately (92.9% versus 64.3%), and gave the system a mean System Usability Scale score of 84.6 out of 100.
Authors
- Darshan Totagi
- Bindu N G
- Basavaraj H A
- Akhila A
- B Yashwanth
Institutions
- Visvesvaraya Technological University (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24526339
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00