CODESTRUCT: Code Agents over Structured Action Spaces
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
LLM-based code agents treat repositories as unstructured text, applying edits through brittle string matching that frequently fails due to formatting drift or ambiguous patterns. We propose reframing the codebase as a structured action space where agents operate on named AST entities rather than text spans. Our framework, CODESTRUCT, provides readCode for retrieving complete syntactic units and editCode for applying syntax-validated transformations to semantic program elements. Evaluated on SWE-Bench Verified across six LLMs, CODESTRUCT improves Pass@1 accuracy by 1.2-5.0% while reducing token consumption by 12-38% for most models. Models that frequently fail to produce valid patches under text-based interfaces benefit most: GPT-5-nano improves by 20.8% as empty-patch failures drop from 46.6% to 7.2%. On CodeAssistBench, we observe consistent accuracy gains (+0.8-4.4%) with cost reductions up to 33%. Our results show that structure-aware interfaces offer a more reliable foundation for code agents.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 11 of its 29 references that are in the map. First posted on arXiv 7 Apr 2026.
Builds on
11 of 29 references.
Closest ancestors · 3
Same direction, newest first
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 8
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 94
- 2017Abstract Syntax Networks for Code Generation and Semantic Parsingcited by 92
- 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
- 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
- 2025CodeAssistBench (CAB): Dataset & Benchmarking for Multi-turn Chat-Based Code Assistancecited by 5
- 2020PSCS: A Path-based Neural Model for Semantic Code Searchcited by 3
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Dissecting model behavior through agent trajectoriescited by 2
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agentscited by 2
- 2026QuoteBench: How Matched Scores Can Hide Command-Path Failurescited by 1
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agentscited by 0
- 2026Improving Auto-Design of Neural PDE Solvers with a Domain-Specific Languagecited by 0
- 2026QuoteBench: How Matched Scores Can Hide Command-Path Failures13 Aug 2026
- 2026Improving Auto-Design of Neural PDE Solvers with a Domain-Specific Language5 Aug 2026
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents28 Jul 2026
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents20 Jul 2026
- 2026Dissecting model behavior through agent trajectories16 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges
- 2024CodeNav: Beyond tool-use to using real-world codebases with LLM agents
- 2024CodexGraph: Bridging Large Language Models and Code Repositories via Code Graph Databases
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
- 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
- 2026RepoAtlas: Guiding Coding Agents via Evolving Multimodal Repository Views