mlsanityData to 7 Oct 2026

Agentic Code Reasoning

arXiv 2603.01896 ↗First posted 2 Mar 2026cs.SE cs.AI cs.PLcited by 4

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Can LLM agents explore codebases and reason about code semantics without executing the code? We study this capability, which we call agentic code reasoning, and introduce semi-formal reasoning: a structured prompting methodology that requires agents to construct explicit premises, trace execution paths, and derive formal conclusions. Unlike unstructured chain-of-thought, semi-formal reasoning acts as a certificate: the agent cannot skip cases or make unsupported claims. We evaluate across three tasks (patch equivalence verification, fault localization, and code question answering) and show that semi-formal reasoning consistently improves accuracy on all of them. For patch equivalence, accuracy improves from 78% to 88% on curated examples and reaches 93% on real-world agent-generated patches, approaching the reliability needed for execution-free RL reward signals. For code question answering on RubberDuckBench Mohammad et al. (2026), semi-formal reasoning achieves 87% accuracy. For fault localization on Defects4J Just et al. (2014), semi-formal reasoning improves Top-5 accuracy by 5 percentage points over standard reasoning. These results demonstrate that structured agentic reasoning enables meaningful semantic code analysis without execution, opening practical applications in RL training pipelines, code review, and static program analysis.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 18 of its 31 references that are in the map. First posted on arXiv 2 Mar 2026.

Builds on

18 of 31 references.

Closest ancestors · 5

Same direction, newest first

  1. 2026LLMs versus the Halting Problem: Characterizing Program Termination Reasoning26 Jan
  2. 2026Agentic Rubrics as Contextual Verifiers for SWE Agents7 Jan
  3. 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
  4. 2025Towards Verified Code Reasoning by LLMs30 Sep
  5. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr

Other references · 13

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2024Executable Code Actions Elicit Better LLM Agentscited by 537
  3. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  4. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
  5. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
  6. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
  7. 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
  8. 2025Aristotle: IMO-level Automated Theorem Provingcited by 47
  9. 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 41
  10. 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
  11. 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
  12. 2024Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verificationcited by 8
1 more
  1. 2024FlexFL: Flexible and Effective Fault Localization with Open-Source Large Language Modelscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025textttReMind: Understanding Deductive Code Reasoning in LLMs
  2. 2026Agentic Fuzzing: Opportunities and Challenges
  3. 2026TDD-Agent: Test-Driven Reasoning for Code Generation
  4. 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
  5. 2026Automating Formal Verification with Agent-Guided Tree Search
  6. 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agents
  7. 2026Pseudo2CodeQA: A Benchmark for LLM-Based Structured Algorithmic Reasoning in Code Generation
  8. 2026Agentified Assessment of Logical Reasoning Agents