Enhancing COBOL Code Explanations: A Multi-Agents Approach Using Large Language Models
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Common Business Oriented Language (COBOL) is a programming language used to develop business applications that are widely adopted by financial, business, and government agencies. Due to its age, complexity, and declining number of COBOL developers, maintaining COBOL codebases is becoming increasingly challenging. In particular, the lack of documentation makes it difficult for new developers to effectively understand and maintain COBOL systems. Existing research utilizes large language models (LLMs) to explain the functionality of code snippets. However, COBOL presents unique challenges due to its architectural and syntactical differences, which often cause its code to exceed the token window size of LLMs. In this work, we propose a multi-agent approach that leverages two LLM-based agents working collaboratively to generate explanations for functions, files, and the overall project. These agents incorporate together by utilizing contextual information from the codebase into the code explanation prompts. We evaluate the effectiveness of our approach using 14 open-source, real-world COBOL projects. Our results indicate that our approach performs significantly better than the baseline in function code explanation, with improvements of 12.67%, 18.59%, and 0.62% in terms of METEOR, chrF, and SentenceBERT scores, respectively. At the file level, our approach effectively explains both short and long COBOL files that exceed the token window size of LLMs and surpass the baseline by 4.21%, 10.72%, and 14.68% in explaining the purpose, functionality, and clarity of the generated explanation. At the project level, our approach generates explanations that convey the functionality and purpose of 82% of the selected projects.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 55 references that are in the map. First posted on arXiv 2 Jul 2025.
Builds on
17 of 55 references.
References · 17
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2024JudgeBench: A Benchmark for Evaluating LLM-based Judgescited by 294
- 2021Recursively Summarizing Books with Human Feedbackcited by 287
- 2023BooookScore: A systematic exploration of book-length summarization in the era of LLMscited by 137
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Distilled GPT for Source Code Summarizationcited by 30
- 2023GPTutor: a ChatGPT-powered programming tool for code explanationcited by 22
- 2022Legal Case Document Similarity: You Need Both Network and Textcited by 16
5 more
- 2024XMainframe: A Large Language Model for Mainframe Modernizationcited by 6
- 2020Including Everyone, Everywhere: Understanding Opportunities and Challenges of Geographic Gender-Inclusion in OSScited by 4
- 2023X-COBOL: A Dataset of COBOL Repositoriescited by 4
- 2021Contemporary COBOL: Developers' Perspectives on Defects and Defect Locationcited by 3
- 2022An Empirical Study On Correlation between Readme Content and Project Popularitycited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Beyond Language Barriers: Multi-Agent Coordination for Multi-Language Code Generation
- 2025Every Software as an Agent: Blueprint and Case Study
- 2026Developing LLM-based Multi-Agent Systems in Software Engineering: A Mixed-Method Experience Report
- 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence
- 2024Executable Code Actions Elicit Better LLM Agents
- 2024Large Language Model-Based Agents for Software Engineering: A Survey