LLMs for Commit Messages: A Survey and an Agent-Based Evaluation Protocol on CommitBench
Open Access
Abstract
Commit messages are vital for traceability, maintenance, and onboarding in modern software projects, yet their quality is frequently inconsistent. Recent large language models (LLMs) can transform code diffs into natural language summaries, offering a path to more consistent and informative commit messages. This paper makes two contributions: (i) it provides a systematic survey of automated commit message generation with LLMs, critically comparing prompt-only, fine-tuned, and retrieval-augmented approaches; and (ii) it specifies a transparent, agent-based evaluation blueprint centered on CommitBench. Unlike prior reviews, we include a detailed dataset audit, preprocessing impacts, evaluation metrics, and error taxonomy. The protocol defines dataset usage and splits, prompting and context settings, scoring and selection rules, and reporting guidelines (results by project, language, and commit type), along with an error taxonomy to guide qualitative analysis. Importantly, this work emphasizes methodology and design rather than presenting new empirical benchmarking results. The blueprint is intended to support reproducibility and comparability in future studies.Keywords
Funding Information
- Interdisciplinary Research Center for Intelligent Secure Systems (IRC-ISS) at King Fahd University of Petroleum & Minerals (KFUPM)
This publication has 32 references indexed in Scilit:
- The Current Challenges of Software Engineering in the Era of Large Language ModelsACM Transactions on Software Engineering and Methodology, 2025
- Large Language Models for Software Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology, 2024
- Automated Commit Message Generation With Large Language Models: An Empirical Study and BeyondIEEE Transactions on Software Engineering, 2024
- Exploring the Effectiveness of LLMs in Automated Logging Statement Generation: An Empirical StudyIEEE Transactions on Software Engineering, 2024
- ChatOps for microservice systems: A low-code approach using service composition and large language modelsFuture Generation Computer Systems, 2024
- Only diff Is Not Enough: Generating Commit Messages Leveraging Reasoning and Action of Large Language ModelProceedings of the ACM on Software Engineering, 2024
- Automatic Commit Message Generation: A Critical Review and Directions for Future WorkIEEE Transactions on Software Engineering, 2024
- Automatic feedback and assessment of team-coding assignments in a DevOps contextInternational Journal of Educational Technology in Higher Education, 2023
- What makes a good commit message?2022
- CoreGen: Contextualized Code Representation Learning for Commit Message GenerationNeurocomputing, 2021