CodeMind: A Unified Agentic Framework for Multi-Dimensional Repository Understanding, Change Impact Analysis, and Software Evolution Intelligence

Purpose Software repositories are complex systems. Code assistants often split source files into text chunks or analyze syntax without considering how code links at runtime or how commits are related. This study looks at whether combining abstract syntax trees, call graphs, Git commit histories, and test coverage information into one system can provide reliable repository information. Methods We built CodeMind, which uses a four-part repository graph: (1) syntactic AST hierarchies with names, (2) call graphs with PageRank centrality, (3) Git commit mining with triple-filtered association rules, and (4) test suite coverage telemetry. A planner categorizes developer queries into four profiles (UNDERSTAND, STRUCTURE, IMPACT, EVOLUTION) to run the fewest necessary analytical tools in the right order. Results We tested CodeMind on CodeMind-Bench v1.0 using an asynchronous distributed simulation engine (ResilienceOS) and the requests library. CodeMind was 100.0% accurate on 30 polymorphic identifier cases, with no false merges. In hybrid retrieval across 40 benchmark queries, CodeMind improved Mean Reciprocal Rank (MRR) by + 16.4% over vector retrieval (0.2046 vs. 0.1758). In change impact analysis across 15 scenarios (64 ground-truth items: 52 code components and 12 test suites), CodeMind improved macro recall from 0.5484 to 0.7467 (+ 19.9 percentage points, + 36.2% relative gain) and micro recall from 48.4% to 70.3% (+ 21.9 percentage points, capturing 45 of 64 items: 35 code components and 10 test suites). This accepted lower precision (0.2503 macro; 22.8% [45/197] micro) to help prevent regressions. Evolutionary mining cut 92.6% of candidate co-change noise in requests, finding four high-confidence associations without direct imports and zero false positives in the audited sample. The analytical orchestration planner reduced tool calls by 43.0% (2.85 vs. 5.00) and analytical execution latency by 60.5% (19.23 ms vs. 48.70 ms). Conclusion Combining structural, temporal, and test telemetry addresses the blind spots of vector search. CodeMind offers a recall-oriented architecture for change impact analysis with explicit precision-recall trade-offs.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-12-01
DOI
https://doi.org/10.21203/rs.3.rs-11905104/v1
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

CodeMind: A Unified Agentic Framework for Multi-Dimensional Repository Understanding, Change Impact Analysis, and Software Evolution Intelligence

Jatin Kumar, Mohammed Humza
Research Square
Software Engineering Research
preprint

CodeMind: A Unified Agentic Framework for Multi-Dimensional Repository Understanding, Change Impact Analysis, and Software Evolution Intelligence

Jatin Kumar, Mohammed Humza
preprint en

Abstract

Purpose Software repositories are complex systems. Code assistants often split source files into text chunks or analyze syntax without considering how code links at runtime or how commits are related. This study looks at whether combining abstract syntax trees, call graphs, Git commit histories, and test coverage information into one system can provide reliable repository information. Methods We built CodeMind, which uses a four-part repository graph: (1) syntactic AST hierarchies with names, (2) call graphs with PageRank centrality, (3) Git commit mining with triple-filtered association rules, and (4) test suite coverage telemetry. A planner categorizes developer queries into four profiles (UNDERSTAND, STRUCTURE, IMPACT, EVOLUTION) to run the fewest necessary analytical tools in the right order. Results We tested CodeMind on CodeMind-Bench v1.0 using an asynchronous distributed simulation engine (ResilienceOS) and the requests library. CodeMind was 100.0% accurate on 30 polymorphic identifier cases, with no false merges. In hybrid retrieval across 40 benchmark queries, CodeMind improved Mean Reciprocal Rank (MRR) by + 16.4% over vector retrieval (0.2046 vs. 0.1758). In change impact analysis across 15 scenarios (64 ground-truth items: 52 code components and 12 test suites), CodeMind improved macro recall from 0.5484 to 0.7467 (+ 19.9 percentage points, + 36.2% relative gain) and micro recall from 48.4% to 70.3% (+ 21.9 percentage points, capturing 45 of 64 items: 35 code components and 10 test suites). This accepted lower precision (0.2503 macro; 22.8% [45/197] micro) to help prevent regressions. Evolutionary mining cut 92.6% of candidate co-change noise in requests, finding four high-confidence associations without direct imports and zero false positives in the audited sample. The analytical orchestration planner reduced tool calls by 43.0% (2.85 vs. 5.00) and analytical execution latency by 60.5% (19.23 ms vs. 48.70 ms). Conclusion Combining structural, temporal, and test telemetry addresses the blind spots of vector search. CodeMind offers a recall-oriented architecture for change impact analysis with explicit precision-recall trade-offs.

Research Square
Dr. A.P.J. Abdul Kalam Technical University (IN)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon