mlsanityData to 24 Nov 2026

How Should Agents See Code? Rethinking Code Representations for Agentic Software Engineering

arXiv 2611.07286 ↗Submitted 5 Nov 2026cs.SE cs.AIcited by 0

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

also in 1 more
Abstract (arXiv)

LLM agents are increasingly used for repository-level software engineering tasks. However, most agents still access repositories through raw files, lexical search, and shell commands, treating code primarily as text. This paper investigates map-based code-representation workflows as a design variable in agentic software engineering, examining how different repository views change agents' retrieval behavior, task success, token use, and latency. In this paper, we study five code-representation workflows: abstract syntax trees, call graphs, module dependencies, documentation-enriched search, and a hybrid workflow that combines them. Each workflow exposes a repository map that the agent can query during a task. We evaluate Claude Code with Haiku 4.5 against a raw-tool baseline on four repository-level tasks: fault localization with LinuxFLBench, repository-level code generation and repair with SWE-bench Pro, test generation with SWT-bench, and security patching with SecBench. The results show that representation workflows are most useful as token-saving tools when localization is the bottleneck, while their success gains narrow when the decisive step is patch or test authoring. On LinuxFLBench, all five workflows improve recall@10 over the baseline (0.757-0.829 vs. 0.717) and reduce token usage by 25-39%. On SWE-bench Pro, resolution remains close to the baseline (44.3-50.6% vs. 49.0%) while token usage drops by 17-26%. On SecBench, Callgraph has the highest patch-resolution rate in this sample (34.3% vs. 28.9%) and uses fewer tokens, but all workflows increase latency. On SWT-bench, Hybrid and Docs have the highest reproducing-test rates in this sample (47.8% and 47.2% vs. 44.7%), but all workflows use more tokens and take longer. Overall, map-based workflows change both what the agent inspects and how much it spends, but their benefits are task-dependent rather than universal.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 25 of its 36 references that are in the map. Submitted 5 Nov 2026.

Builds on

25 of 36 references.

References · 25

  1. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,155
  4. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 622
  5. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 423
  6. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 387
  7. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 384
  8. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
  9. 2024AutoCodeRover: Autonomous Program Improvementcited by 303
  10. 2018code2vec: Learning Distributed Representations of Codecited by 255
  11. 2017Learning to Represent Programs with Graphscited by 222
  12. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 193
13 more
  1. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 192
  2. 2022DocPrompting: Generating Code by Retrieving the Docscited by 165
  3. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 153
  4. 2024RepoGraph: Enhancing AI Software Engineering with Repository-level Code Graphcited by 104
  5. 2025LocAgent: Graph-Guided LLM Agents for Code Localizationcited by 99
  6. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 88
  7. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 61
  8. 2024Repoformer: Selective Retrieval for Repository-Level Code Completioncited by 59
  9. 2025OrcaLoca: An LLM Agent Framework for Software Issue Localizationcited by 54
  10. 2024RepoQA: Evaluating Long Context Code Understandingcited by 45
  11. 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 41
  12. 2026RepoRepair: Leveraging Code Documentation for Repository-Level Automated Program Repaircited by 7
  13. 2025Taming System Complexity: Demystifying Software Engineering Agents in Diagnosing Linux Kernel Faultscited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Retrieval-Oriented Code Representations in Agentic Bug Localization
  2. 2026An Exploratory Study of Agent Plans for Agentic AI Coding Tools in Open-Source Software
  3. 2026LLM Agents Can See Code Repositories
  4. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding
  5. 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories
  6. 2026Projecting the Emerging Mindset of SWE Agent by Launching a Wild Code Understanding Journey
  7. 2026ARISE: A Repository-level Graph Representation and Toolset for Agentic Program Repair and Fault Localization
  8. 2026Harness Engineering for Agentic AI Coding Tools: An Exploratory Study