Distributed Approach to Haskell Based Applications Refactoring with LLMs Based Multi-Agent Systems
Fuente:
arXiv
Gespeichert in:
| Hauptverfasser: | , , , , , , , , |
|---|---|
| Format: | Preprint |
| Veröffentlicht: |
2025
|
| Schlagworte: | |
| Online-Zugang: | |
| Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
| _version_ | 1866913686562537472 |
|---|---|
| author | Siddeeq, Shahbaz Rasheed, Zeeshan Sami, Malik Abdul Hasan, Mahade Waseem, Muhammad Rasku, Jussi Saari, Mika Kemell, Kai-Kristian Abrahamsson, Pekka |
| author_facet | Siddeeq, Shahbaz Rasheed, Zeeshan Sami, Malik Abdul Hasan, Mahade Waseem, Muhammad Rasku, Jussi Saari, Mika Kemell, Kai-Kristian Abrahamsson, Pekka |
| contents | We present a large language models (LLMs) based multi-agent system to automate the refactoring of Haskell codebases. The multi-agent system consists of specialized agents performing tasks such as context analysis, refactoring, validation, and testing. Refactoring improvements are using metrics such as cyclomatic complexity, run-time, and memory allocation. Experimental evaluations conducted on Haskell codebases demonstrate improvements in code quality. Cyclomatic complexity was reduced by 13.64% and 47.06% in the respective codebases. Memory allocation improved by 4.17% and 41.73%, while runtime efficiency increased by up to 50%. These metrics highlight the systems ability to optimize Haskells functional paradigms while maintaining correctness and scalability. Results show reductions in complexity and performance enhancements across codebases. The integration of LLMs based multi-agent system enables precise task execution and inter-agent collaboration, addressing the challenges of refactoring in functional programming. This approach aims to address the challenges of refactoring functional programming languages through distributed and modular systems. |
| format | Preprint |
| id |
arxiv_https___arxiv_org_abs_2502_07928 |
| institution | arXiv |
| publishDate | 2025 |
| record_format | arxiv |
| spellingShingle | Distributed Approach to Haskell Based Applications Refactoring with LLMs Based Multi-Agent Systems Siddeeq, Shahbaz Rasheed, Zeeshan Sami, Malik Abdul Hasan, Mahade Waseem, Muhammad Rasku, Jussi Saari, Mika Kemell, Kai-Kristian Abrahamsson, Pekka Software Engineering We present a large language models (LLMs) based multi-agent system to automate the refactoring of Haskell codebases. The multi-agent system consists of specialized agents performing tasks such as context analysis, refactoring, validation, and testing. Refactoring improvements are using metrics such as cyclomatic complexity, run-time, and memory allocation. Experimental evaluations conducted on Haskell codebases demonstrate improvements in code quality. Cyclomatic complexity was reduced by 13.64% and 47.06% in the respective codebases. Memory allocation improved by 4.17% and 41.73%, while runtime efficiency increased by up to 50%. These metrics highlight the systems ability to optimize Haskells functional paradigms while maintaining correctness and scalability. Results show reductions in complexity and performance enhancements across codebases. The integration of LLMs based multi-agent system enables precise task execution and inter-agent collaboration, addressing the challenges of refactoring in functional programming. This approach aims to address the challenges of refactoring functional programming languages through distributed and modular systems. |
| title | Distributed Approach to Haskell Based Applications Refactoring with LLMs Based Multi-Agent Systems |
| topic | Software Engineering |
| url | https://arxiv.org/abs/2502.07928 |