mlsanityData to 7 Oct 2026

LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Code

arXiv 2506.19481 ↗First posted 24 Jun 2025cs.SEcited by 3

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Refactoring is a constant activity in software development and maintenance. Scale and maintain software systems are based on code refactoring. However, this process is still labor intensive, as it requires programmers to analyze the codebases in detail to avoid introducing new defects. In this research, we put forward a large language model (LLM)-based multi-agent system to automate the refactoring process on Haskell code. The objective of this research is to evaluate the effect of LLM-based agents in performing structured and semantically accurate refactoring on Haskell code. Our proposed multi-agent system based on specialized agents with distinct roles, including code analysis, refactoring execution, verification, and debugging. To test the effectiveness and practical applicability of the multi-agent system, we conducted evaluations using different open-source Haskell codebases. The results of the experiments carried out showed that the proposed LLM-based multi-agent system could average 11.03% decreased complexity in code, an improvement of 22.46% in overall code quality, and increase performance efficiency by an average of 13.27%. Furthermore, memory allocation was optimized by up to 14.57%. These results highlight the ability of LLM-based multi-agent in managing refactoring tasks targeted toward functional programming paradigms. Our findings hint that LLM-based multi-agent systems integration into the refactoring of functional programming languages can enhance maintainability and support automated development workflows.

Key facts. Cited by 3 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 15 of its 42 references that are in the map. First posted on arXiv 24 Jun 2025.

Builds on

15 of 42 references.

References · 15

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
  4. 2024A Survey on Large Language Models for Code Generationcited by 646
  5. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  6. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  7. 2023War and Peace (WarAgent): Large Language Model-based Multi-Agent Simulation of World Warscited by 143
  8. 2024Exploring Large Language Model based Intelligent Agents: Definitions, Methods, and Prospectscited by 130
  9. 2023ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Designcited by 66
  10. 2023Self-Adaptive Large Language Model (LLM)-Based Multiagent Systemscited by 31
  11. 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
  12. 2024Levels of AI Agents: from Rules to Large Language Modelscited by 6
3 more
  1. 2021Refactoring Practices in the Context of Modern Code Review: An Industrial Case Study at Xeroxcited by 2
  2. 2024Genetic Auto-prompt Learning for Pre-trained Code Intelligence Language Modelscited by 2
  3. 2024Fixing Your Own Smells: Adding a Mistake-Based Familiarisation Step When Teaching Code Refactoringcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Distributed Approach to Haskell Based Applications Refactoring with LLMs Based Multi-Agent Systems
  2. 2025RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring
  3. 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review
  4. 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents
  5. 2025A Survey on Code Generation with LLM-based Agents
  6. 2025AdaCoder: An Adaptive Planning and Multi-Agent Framework for Function-Level Code Generation
  7. 2024Self-Organized Agents: A LLM Multi-Agent Framework toward Ultra Large-Scale Code Generation and Optimization
  8. 2026Developing LLM-based Multi-Agent Systems in Software Engineering: A Mixed-Method Experience Report