STALL + : Boosting LLM-based Repository-level Code Completion with Static Analysis

Repository-level code completion refers to the challenging completion scenario involving complicated contexts from multiple files in a repository. To date, researchers have proposed two technical categories to enhance LLM-based repository-level code completion: retrieval-augmented generation (RAG) and static analysis integration. This work performs the first study on static analysis integration in LLM-based repository-level code completion by investigating integration strategies across different phases. We first implement a framework STALL + , which supports extensible, customizable integration of multiple static analysis strategies into the full pipeline of LLM-based repository-level code completion. Based on STALL + , we conduct extensive experiments including different LLMs on the latest repository-level code completion benchmark CrossCodeEval. Our findings show that integrating file-level dependencies in the prompting phase performs best, while post-processing phase integration performs worst. Additionally, we observe different improvements between dynamic and static languages, i.e., the best combination is prompting-phase with decoding-phase integration for Java, and prompting-phase with post-processing-phase integration for Python due to limitations in statically analyzing dynamic languages. We also find complementarity between RAG and static analysis integration, and that prompting-phase integration is more cost-effective than RAG.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-09-09
DOI
https://doi.org/10.1145/3846180
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

STALL + : Boosting LLM-based Repository-level Code Completion with Static Analysis

Yiling Lou, Yixuan Chen, Liu Jun-wei, Mingwei Liu et al.
ACM Transactions on Software Engineering and Methodology
Software Engineering Research
article

STALL + : Boosting LLM-based Repository-level Code Completion with Static Analysis

Yiling Lou, Yixuan Chen, Liu Jun-wei, Mingwei Liu, Xin Peng
article en

Abstract

Repository-level code completion refers to the challenging completion scenario involving complicated contexts from multiple files in a repository. To date, researchers have proposed two technical categories to enhance LLM-based repository-level code completion: retrieval-augmented generation (RAG) and static analysis integration. This work performs the first study on static analysis integration in LLM-based repository-level code completion by investigating integration strategies across different phases. We first implement a framework STALL + , which supports extensible, customizable integration of multiple static analysis strategies into the full pipeline of LLM-based repository-level code completion. Based on STALL + , we conduct extensive experiments including different LLMs on the latest repository-level code completion benchmark CrossCodeEval. Our findings show that integrating file-level dependencies in the prompting phase performs best, while post-processing phase integration performs worst. Additionally, we observe different improvements between dynamic and static languages, i.e., the best combination is prompting-phase with decoding-phase integration for Java, and prompting-phase with post-processing-phase integration for Python due to limitations in statically analyzing dynamic languages. We also find complementarity between RAG and static analysis integration, and that prompting-phase integration is more cost-effective than RAG.

ACM Transactions on Software Engineering and Methodology
University of Illinois Urbana-Champaign (US), Sun Yat-sen University (CN), Fudan University (CN)
Openalex Percentile: Top 4%
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.