Kozuchi Agent: A Language-Agnostic Open-Weight Agent for Software Repair
Kozuchi Agent is a language-agnostic, open-weight software repair system that leverages a persistent-state, CI-operated pipeline to achieve state-of-the-art performance on SWE-bench Verified and Multi-SWE-bench benchmarks without fine-tuning, demonstrating that its remaining limitations stem primarily from semantic correctness and selection errors rather than formatting or proprietary model access.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the vast, intricate world of software engineering, code is the foundation upon which modern life is built, yet it is prone to breaking. When a program malfunctions, it generates a report describing the error, and a human developer must then diagnose the problem, locate the flaw within thousands of lines of text, and write a correction that fixes the issue without breaking anything else. This process is slow, difficult, and expensive. Recently, a new generation of artificial intelligence has emerged that can read these reports and attempt to write the fixes itself. These systems, often called agents, act like digital apprentices that can navigate a computer's file system, run tests, and edit code. However, teaching these agents to work reliably over long periods has been a major hurdle. They often get lost in the details, forget what they learned in earlier steps, or make mistakes when trying to use the tools needed to fix the code. The challenge for researchers has been to build a system that keeps these digital workers focused, organized, and accountable, allowing them to solve complex problems without constant human supervision.
A team of researchers from Fujitsu Research has addressed this challenge by creating a system called the Kozuchi Agent. Their work focuses on a specific type of artificial intelligence that does not require special training on new data but instead relies on a carefully designed framework to guide its behavior. The researchers built a digital environment where the agent operates in distinct, clearly defined stages. Instead of letting the agent wander freely through a problem, the system forces it to move through a sequence of steps: first reproducing the error to confirm it exists, then locating the exact source of the trouble, and finally writing and testing the fix. At each stage, the agent must produce a specific result before moving to the next, and the system keeps a permanent record of everything the agent does. This structure prevents the agent from getting confused or repeating the same mistakes, turning a chaotic search into a disciplined, auditable process.
The team tested this system on a large collection of real-world software problems, specifically targeting a set of five hundred issues from the Python programming language. They used a powerful, open-source artificial intelligence model that was not modified or retrained for this specific task. To ensure the results were robust, they ran the agent eight separate times on each problem, generating eight different potential solutions. The system then compared these solutions against one another using a clever selection method. Instead of relying on a hidden answer key to pick the best fix, the system used the tests generated by each of the eight runs to evaluate the others. If a fix passed the tests created by another attempt, it was considered a strong candidate. This approach allowed the system to identify the most reliable solution without needing to know the correct answer in advance.
The results were significant. The Kozuchi Agent successfully resolved three hundred and seventy-four out of the five hundred Python problems, a success rate of nearly seventy-five percent. This performance placed the system among the top performers in the field, ranking twelfth overall when compared to all submissions, but ranking first among systems that use open, publicly available models. The researchers also tested the same system on a different set of problems written in the Java programming language. Despite the differences between the two languages, the system performed with similar consistency, solving forty-one out of one hundred and twenty-eight Java issues. This demonstrated that the framework was not tied to a single language but could be applied broadly to different types of software.
A key finding of the study was that the failures that did occur were not due to the agent writing messy or broken code. In fact, nearly all the patches produced by the agent were applied cleanly to the software. The problems lay in the logic of the fix itself; the agent often wrote a correction that looked correct but did not actually solve the underlying issue. This distinction is crucial because it suggests that the main barrier to improvement is not the format of the code or the ability to use tools, but rather the deep understanding of the problem's meaning. The researchers also found that the system was highly efficient in its operations. By automating the workflow and allowing different parts of the process to be reused, they reduced the amount of human effort required to run these tests from five separate manual steps down to a single automated action.
The study explicitly ruled out the idea that the system's success came from simply guessing or from using a massive, proprietary model that only a few companies could access. The agent used a model with twenty-seven billion parameters, which is large but far smaller than the most powerful models available today, and it achieved its results without any special fine-tuning. The researchers also showed that the system did not rely on luck; the performance was consistent across different runs and different types of software repositories. While the system is not perfect and still struggles with the most difficult semantic problems, it represents a major step forward in making artificial intelligence a reliable partner in software engineering. By combining a structured workflow with a smart selection process, the Kozuchi Agent has shown that open, accessible technology can compete with the most advanced systems in solving real-world coding challenges.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.