mlsanityData to 14 Oct 2026

StaAgent: An Agentic Framework for Testing Static Analyzers

arXiv 2507.15892 ↗First posted 20 Jul 2025cs.SEcited by 0

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

Abstract (arXiv)

Static analyzers play a critical role in identifying bugs early in the software development lifecycle, but their rule implementations are often under-tested and prone to inconsistencies. To address this, we propose StaAgent, an agentic framework that harnesses the generative capabilities of Large Language Models (LLMs) to systematically evaluate static analyzer rules. StaAgent comprises four specialized agents: a Seed Generation Agent that translates bug detection rules into concrete, bug-inducing seed programs; a Code Validation Agent that ensures the correctness of these seeds; a Mutation Generation Agent that produces semantically equivalent mutants; and an Analyzer Evaluation Agent that performs metamorphic testing by comparing the static analyzer's behavior on seeds and their corresponding mutants. By revealing inconsistent behaviors, StaAgent helps uncover flaws in rule implementations. This LLM-driven, multi-agent framework offers a scalable and adaptable solution to improve the reliability of static analyzers. We evaluated StaAgent with five state-of-the-art LLMs (CodeL-lama, DeepSeek, Codestral, Qwen, and GPT-4o) across five widely used static analyzers (SpotBugs, SonarQube, ErrorProne, Infer, and PMD). The experimental results show that our approach can help reveal 64 problematic rules in the latest versions of these five static analyzers (i.e., 28 in SpotBugs, 18 in SonarQube, 6 in ErrorProne, 4 in Infer, and 8 in PMD). In addition, 53 out of the 64 bugs cannot be detected by the SOTA baseline. We have reported all the bugs to developers, with two of them already fixed. Three more have been confirmed by developers, while the rest are awaiting response. These results demonstrate the effectiveness of our approach and underscore the promise of agentic, LLM-driven data synthesis to advance software engineering.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 14 of its 48 references that are in the map. First posted on arXiv 20 Jul 2025.

Builds on

14 of 48 references.

References · 14

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2023Mistral 7Bcited by 3,164
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  7. 2024On LLMs-Driven Synthetic Data Generation, Curation, and Evaluation: A Surveycited by 244
  8. 2023Increasing Diversity While Maintaining Accuracy: Text Data Generation with Large Language Models and Human Interventionscited by 125
  9. 2024Planning In Natural Language Improves LLM Search For Code Generationcited by 83
  10. 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 66
  11. 2023LLM-powered Data Augmentation for Enhanced Cross-lingual Performancecited by 51
  12. 2024Progress or Regress? Self-Improvement Reversal in Post-trainingcited by 23
2 more
  1. 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?cited by 10
  2. 2024In-Context Learning for Preserving Patient Privacy: A Framework for Synthesizing Realistic Patient Portal Messagescited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026CheckerBench: Can Long-Horizon Agents Synthesize Static-Analysis Checkers?
  2. 2026Agentic Fuzzing: Opportunities and Challenges
  3. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents
  4. 2025InspectCoder: Dynamic Analysis-Enabled Self Repair through interactive LLM-Debugger Collaboration
  5. 2026Kozuchi Agent: A Language-Agnostic Open-Weight Agent for Software Repair
  6. 2026AgentStepper: Interactive Debugging of Software Development Agents
  7. 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oracle
  8. 2026AnyPoC: Universal Proof-of-Concept Test Generation for Scalable LLM-Based Bug Detection