mlsanityData to 7 Oct 2026

ExplainBench: Evaluating Code Explanations from Agents

arXiv 2607.26451 ↗First posted 29 Jul 2026cs.SEcited by 0

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

Abstract (arXiv)

Large Language Model (LLM) agents have seen rapid adoption in software engineering. As agents take a greater role in the actual generation of code, they are making larger changes, spanning tens to hundreds of lines. This makes manual review of agent results increasingly infeasible, leading developers to turn to explanations to understand enacted changes. Despite this, there are no benchmarks that evaluate the trustworthiness of agent-generated explanations. To bridge this gap, we propose ExplainBench, a benchmark to automatically evaluate explanations from coding agents. ExplainBench is based on the intuition that informative explanations should enable an LLM to correctly answer questions, allowing quantitative comparison of explanation quality between agents. With this observation, we construct a suite of questions that evaluates whether explanations accurately describe (1) the intended behavior of buggy code and (2) the effect of applying the agent patch itself. Experiments first reveal that explanation quality is a distinct axis of agent evaluation: ExplainBench ranks agents differently from the widely-used SWE-bench Verified benchmark. A deeper breakdown of explanation quality in agents shows frequent problems in explanations, such that explanations often claim that a patch is correct when it is not. Based on this insight, we implement and evaluate an explanation audit agent which runs additional tests to validate and refine explanations. This agent improved the explanations of all evaluated agents, demonstrating agent explanations can be automatically made more trustworthy.

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

Builds on

19 of 49 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025Lingxi: Repository-Level Issue Resolution Framework Enhanced by Procedural Knowledge Guided Scaling13 Oct
  2. 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging26 Aug
  3. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
  4. 2025Unified Software Engineering Agent as AI Software Engineer17 Jun
  5. 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr
  6. 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projects13 Dec
  7. 2024SpecRover: Code Intent Extraction via LLMs5 Aug
  8. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  9. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun

Other references · 10

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  2. 2024From Crowdsourced Data to High-Quality Benchmarks: Arena-Hard and BenchBuilder Pipelinecited by 484
  3. 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
  4. 2024DSBench: How Far Are Data Science Agents from Becoming Data Science Experts?cited by 119
  5. 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 44
  6. 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 27
  7. 2021Trust Enhancement Issues in Program Repaircited by 22
  8. 2025SWE-Bench-CL: Continual Learning for Coding Agentscited by 12
  9. 2024Generative AI for Pull Request Descriptions: Adoption, Impact, and Developer Interventionscited by 10
  10. 2024Towards Explainable Vulnerability Detection with Large Language Modelscited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026CR-Bench: Evaluating the Real-World Utility of AI Code Review Agents
  2. 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering
  3. 2026XAI for Coding Agent Failures: Transforming Raw Execution Traces into Actionable Insights
  4. 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios
  5. 2025Enabling Global, Human-Centered Explanations for LLMs:From Tokens to Interpretable Code and Test Generation
  6. 2026ProgramBench: Can Language Models Rebuild Programs From Scratch?
  7. 2025Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
  8. 2026FeatureBench: Benchmarking Agentic Coding for Complex Feature Development