Agentic Code Reasoning
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
- 2026LLMs versus the Halting Problem: Characterizing Program Termination Reasoning26 Jan
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agents7 Jan
- 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
- 2025Towards Verified Code Reasoning by LLMs30 Sep
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr
Other references · 13
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2024Executable Code Actions Elicit Better LLM Agentscited by 537
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 300
- 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 139
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
- 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
- 2025Aristotle: IMO-level Automated Theorem Provingcited by 47
- 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 41
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
- 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
- 2024Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verificationcited by 8
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Auditing Reward Hackability in Code RL Training Environmentscited by 3
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklistscited by 2
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Studycited by 1
- 2026Agentic Interpretation: Lattice-Structured Evidence for LLM-Based Program Analysiscited by 0
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklists5 Aug 2026
- 2026Deep Agentic Search for Repository-Level Code Question Answering: An Empirical Study2 Aug 2026
- 2026Auditing Reward Hackability in Code RL Training Environments14 Jun 2026
- 2026Agentic Interpretation: Lattice-Structured Evidence for LLM-Based Program Analysis12 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs
- 2026Agentic Fuzzing: Opportunities and Challenges
- 2026TDD-Agent: Test-Driven Reasoning for Code Generation
- 2025Breakpoint: Scalable evaluation of system-level reasoning in LLM code agents
- 2026Automating Formal Verification with Agent-Guided Tree Search
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agents
- 2026Pseudo2CodeQA: A Benchmark for LLM-Based Structured Algorithmic Reasoning in Code Generation
- 2026Agentified Assessment of Logical Reasoning Agents