Reproduce “CodeCureAgent: Automatic Classification and Repair of Static Analysis Warnings” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Pascal Joos, Islem Bouzenia, Michael Pradel

CodeCureAgent investigates SonarQube warnings, including cases such as Nukkit’s Lombok-generated methods making an apparently unused field necessary. Its LLM agents classify warnings, propose fixes or suppressions, and revise changes using build, analysis, and test feedback. Across 1,000 warnings, 968 passed automated checks; reviewers judged 251 of 291 sampled fixes correct. The study covers Java and SonarQube.

Key insights

  • An iterative, agentic LLM architecture, supported by dynamic tool use and comprehensive context gathering, can effectively classify and resolve complex static analysis warnings, including those requiring multi-file modifications.
  • Explicitly classifying warnings as true or false positives before attempting a fix is crucial for the effectiveness of automated repair, preventing unnecessary or incorrect modifications.
  • Robust, multi-stage validation (build, re-analyze, test) with feedback loops is essential for ensuring the quality of automated code changes, significantly increasing the reliability of generated fixes and allowing the agent to refine its attempts.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.