[2603.01896] Agentic Code Reasoning
About this article
Abstract page for arXiv paper 2603.01896: Agentic Code Reasoning
Computer Science > Software Engineering arXiv:2603.01896 (cs) [Submitted on 2 Mar 2026] Title:Agentic Code Reasoning Authors:Shubham Ugare, Satish Chandra View a PDF of the paper titled Agentic Code Reasoning, by Shubham Ugare and 1 other authors View PDF HTML (experimental) Abstract: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 me...