Rethinking Code Review Workflows with LLM Assistance: An Empirical Study
Authors:
- Fannar Steinn AðalsteinssonFAFannar Steinn Aðalsteinsson
- Chih-Hong ChengCCChih-Hong Cheng
Preprint
Abstract
Code reviews are a critical yet time-consuming aspect of modern software development, increasingly challenged by growing system complexity and the demand for faster delivery. This paper presents a study conducted at WirelessCar Sweden AB, combining an exploratory field study of current code review practices with a field experiment involving two variations of an LLM-assisted code review tool. The field study identifies key challenges in traditional code reviews, including frequent context switching, insufficient contextual information, and highlights both opportunities (e.g., automatic summarization of complex pull requests) and concerns (e.g., false positives and trust issues) in using LLMs. In the field experiment, we developed two prototype variations: one offering LLM-generated reviews upfront and the other enabling on-demand interaction. Both utilize a semantic search pipeline based on retrieval-augmented generation to assemble relevant contextual information for the review, thereby tackling the uncovered challenges. Developers evaluated both variations in real-world settings: AI-led reviews are overall more preferred, while still being conditional on the reviewers' familiarity with the code base, as well as on the severity of the pull request.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Human and Machine: How Software Engineers Perceive and Engage with AI-Assisted Code Reviews Compared to Their Peers2025
- Deep Learning-based Code Reviews: A Paradigm Shift or a Double-Edged Sword?2025
- A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open QuestionsACM Transactions on Information Systems, 2025
- Large Language Models for Software Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology, 2024
- Research and scholarly methods: Semi‐structured interviewsJACCP: Journal of the American College of Clinical Pharmacy, 2021
- Comparison of Convenience Sampling and Purposive SamplingAmerican Journal of Theoretical and Applied Statistics, 2015