Collaborative Agents for Automated Program Repair in Ruby

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Akbarpour, Nikta, Benis, Mahdieh Sadat, Fard, Fatemeh Hendijani, Ouni, Ali, Saied, Mohamed Aymen
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909889538818048
author Akbarpour, Nikta
Benis, Mahdieh Sadat
Fard, Fatemeh Hendijani
Ouni, Ali
Saied, Mohamed Aymen
author_facet Akbarpour, Nikta
Benis, Mahdieh Sadat
Fard, Fatemeh Hendijani
Ouni, Ali
Saied, Mohamed Aymen
contents Automated Program Repair (APR) has advanced rapidly with Large Language Models (LLMs), but most existing methods remain computationally expensive, and focused on a small set of languages. Ruby, despite its widespread use in web development and the persistent challenges faced by its developers, has received little attention in APR research. In this paper, we introduce RAMP, a novel lightweight framework that formulates program repair as a feedback-driven, iterative process for Ruby. RAMP employs a team of collaborative agents that generate targeted tests, reflect on errors, and refine candidate fixes until a correct solution is found. Unlike prior approaches, RAMP is designed to avoid reliance on large multilingual repair databases or costly fine-tuning, instead operating directly on Ruby through lightweight prompting and test-driven feedback. Evaluation on the XCodeEval benchmark shows that RAMP achieves a pass@1 of 67% on Ruby, outper-forming prior approaches. RAMP converges quickly within five iterations, and ablation studies confirm that test generation and self-reflection are key drivers of its performance. Further analysis shows that RAMP is particularly effective at repairing wrong answers, compilation errors, and runtime errors. Our approach provides new insights into multi-agent repair strategies, and establishes a foundation for extending LLM-based debugging tools to under-studied languages.
format Preprint
id arxiv_https___arxiv_org_abs_2511_03925
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Collaborative Agents for Automated Program Repair in Ruby
Akbarpour, Nikta
Benis, Mahdieh Sadat
Fard, Fatemeh Hendijani
Ouni, Ali
Saied, Mohamed Aymen
Software Engineering
Artificial Intelligence
Automated Program Repair (APR) has advanced rapidly with Large Language Models (LLMs), but most existing methods remain computationally expensive, and focused on a small set of languages. Ruby, despite its widespread use in web development and the persistent challenges faced by its developers, has received little attention in APR research. In this paper, we introduce RAMP, a novel lightweight framework that formulates program repair as a feedback-driven, iterative process for Ruby. RAMP employs a team of collaborative agents that generate targeted tests, reflect on errors, and refine candidate fixes until a correct solution is found. Unlike prior approaches, RAMP is designed to avoid reliance on large multilingual repair databases or costly fine-tuning, instead operating directly on Ruby through lightweight prompting and test-driven feedback. Evaluation on the XCodeEval benchmark shows that RAMP achieves a pass@1 of 67% on Ruby, outper-forming prior approaches. RAMP converges quickly within five iterations, and ablation studies confirm that test generation and self-reflection are key drivers of its performance. Further analysis shows that RAMP is particularly effective at repairing wrong answers, compilation errors, and runtime errors. Our approach provides new insights into multi-agent repair strategies, and establishes a foundation for extending LLM-based debugging tools to under-studied languages.
title Collaborative Agents for Automated Program Repair in Ruby
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2511.03925