Change impact analysis (CIA) helps developers identify code entities impacted by their initial changes. While several approaches for CIA were proposed, they still struggle with either low precision or low recall, thereby increasing manual effort for developers to verify the results. Furthermore, limitations in the used datasets and experimental setups can bias the results reported by many CIA approaches. In this paper, we first address the dataset limitations by manually labeling 1,931 changed code entities stemming from 263 commits of 22 open-source Java projects. Next, we introduce two variants of katIA, our code change impact analysis approach that combines static impact analysis with the reasoning capabilities of large language models (LLMs). The first variant uses a single prompt (katIA-SP) for refining an initial static impact set while the second variant uses three specialized agents (katIA-MA). The evaluation with our curated dataset shows that katIA-SP with Gemini 2.5 Flash achieved an F1-score of 22.4% when matching impacted entities by their fully qualified names (FQN) and 27.0% when matching them by their class and entity names (CE). The latter shows an improvement of 2.0 percentage points over the state-of-the-art. This score is further improved by katIA-MA which, using Gemini 2.5 Flash, yields an FQN-matching F1-score of 29.1% and a CE-matching F1-score of 33.3%. While these improvements come at the cost of increased median generation time from 0.570 s to 11.214 s and median token usage from 1,235 to 6,462 tokens, the improved performance justifies the additional cost. The comparison of three LLMs using katIA-SP finds that Gemini 2.5 Flash is the most consistent model. These results indicate that combining static impact analysis with LLM-based refinement, particularly with the multi-agent variant, can improve code change impact analysis.
Figures & tables
Evaluator Pair
Seed
Impacted
Non-related
Overall
A–C
50%
51%
64%
55%
A–B
51%
55%
74%
60%
B–C
48%
47%
62%
52%
Average
50%
51%
67%
56%
TABLE I: Jaccard set similarities per evaluator pair and label of the shared phase.
Project
#C
#BR
#S
#I
#NR
ant-ivy
56
55
109
276
14
commons-bcel
3
3
4
37
5
commons-beanutils
5
5
9
16
1
commons-codec
2
2
3
36
0
commons-compress
19
14
37
109
2
commons-configuration
21
20
32
69
5
TABLE II: Descriptive statistics of the labeled dataset Constantinople . #C refers to the number of commits, #BR the number of bug reports in Jira, #S, #I, and #NR list the number of changed code entities labeled as seed, impacted, and non-related, respectively.
Fig. 1: Overview of the katIA approach that, given the seed changes of a commit, first constructs an initial static code change impact set that then is refined either with a single prompt (katIA-SP) or three agents (katIA-MA).
Model
Context
OpenRouter Identifier
Provider
GPT-5.4 Mini
400K
openai/gpt-5.4-mini
OpenAI
Qwen3 Coder Plus
1M
qwen/qwen3-coder-plus
Alibaba Cloud Int.
Gemini 2.5 Flash
1M
google/gemini-2.5-flash
Google Vertex (EU)
TABLE III: Selected LLMs, their context size, their OpenRouter identifiers, and pinned providers.
FQN-matching
CE-matching
Configuration
Prec
Rec
F1
Prec
Rec
F1
Static analysis
15.8%
23.5%
14.6%
16.9%
24.9%
15.6%
katIA-SP (GPT-5.4 Mini)
18.7%
19.8%
15.8%
22.1%
22.9%
18.5%
katIA-SP (Gemini 2.5 Flash)
31.9%
23.1%
22.4%
39.9%
26.7%
27.0%
katIA-SP (Qwen3 Coder Plus)
32.2%
28.6%
25.2%
36.4%
32.3%
28.5%
katIA-MA (Gemini 2.5 Flash)
32.9%
33.8%
29.1%
37.8%
38.0%
33.3%
TABLE IV: Macro-averaged precision (Prec), recall (Rec), and F1-score for FQN-matching and CE-matching of the static analysis, katIA-SP across the three models, katIA-MA using Gemini 2.5 Flash, and Ripple † .
Variant
Generation Time
Token Usage
OpenRouter Cost
(s)
( ×103 )
(US cents)
katIA-SP
0.570 [
0.444,
0.738]
1.235 [
1.023,
1.774]
0.048 [
0.036,
0.064]
katIA-MA
11.214 [
8.298,
14.301]
6.462 [
4.953,
8.836]
0.626 [
0.472,
0.807]
TABLE V: Resource usage of katIA-SP and katIA-MA with the model Gemini 2.5 Flash. Median and the first and third quartiles ( [Q1,Q3] ) were extracted across all 263 commits using their median over the three respective repetitions. All values were extracted from the corresponding OpenRouter logs.
Faculty of Information Technology and Communication Sciences, Tampere University, Tampere, Finland · Computing, University of Derby, Derby, United Kingdom