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

DevFeed: [How Should Agents See Code? Rethinking Code Representations for Agentic Software Engineering](<https://devfeed.tech/articles/how-should-agents-see-code-rethinking-code-representations-for-agentic-software-engineering-120182.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.07286>)

Author: Melika Sepidband, Jiho Shin, Song Wang, Hadi Hemmati

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [code analysis](<https://devfeed.tech/topics/code-analysis.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-software](<https://devfeed.tech/tags/agentic-software.md>), [agents](<https://devfeed.tech/tags/agents.md>), [authoring](<https://devfeed.tech/tags/authoring.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [call](<https://devfeed.tech/tags/call.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [design](<https://devfeed.tech/tags/design.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [latency](<https://devfeed.tech/tags/latency.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [localization](<https://devfeed.tech/tags/localization.md>), [software](<https://devfeed.tech/tags/software.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

Map-based code views can reduce token use and improve code retrieval, but their effects on task success, cost, and latency depend on the task. In tests of Claude Code with Haiku 4.5, five workflows--ASTs, call graphs, module dependencies, documentation-enriched search, and a hybrid--improved LinuxFLBench recall@10 over raw tools (0.757-0.829 vs. 0.717) while using 25-39% fewer tokens. On SWE-bench Pro, resolution stayed near baseline (44.3-50.6% vs. 49.0%) with 17-26% fewer tokens. Callgraph led the reported SecBench patch-resolution results (34.3% vs. 28.9%) but all workflows increased latency. On SWT-bench, Hybrid and Docs had the highest reproducing-test rates (47.8% and 47.2% vs. 44.7%), while all workflows used more tokens and took longer. The evidence indicates stronger benefits when locating code is the main challenge than when authoring patches or tests is decisive.

## Source excerpt

arXiv:2611.07286v1 Announce Type: cross Abstract: 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.