Can Coding Agents Solve Repository-Level Issues with Rendered Code? An Exploratory Study of Visual Representations

Weijie Liang, Yuanfeng Song, Xing Chen, Caleb Chen Cao, Sirui Han, Yike GuoarXiv 2026

TL;DR

This paper investigates whether rendering source code as images can serve as an efficient context compression mechanism for autonomous coding agents. While visual code consistently reduces prompt token costs by up to 2.8x without sacrificing repository repair accuracy, its benefits are non-linear and highly conditional on whether raw code reading is the primary bottleneck.

What Problem Does This Paper Address?

As context windows for Large Language Models (LLMs) expand, feeding massive codebases into agents has become technically feasible but financially and computationally prohibitive. Recent work has shown that Vision-Language Models (VLMs) can understand code rendered as images, effectively using the visual modality as a dense token compression mechanism.

However, prior evaluations were limited to static code understanding—essentially passive reading tasks. Real-world coding agents operate in dynamic, multi-turn loops: they must search repositories, locate relevant files, edit code, run tests, and iteratively fix errors. This paper addresses a critical gap: Can visually rendered code actually function as an effective operational context for autonomous coding agents during complex, repository-level software repair?

Methods

The authors design a code-rendering pipeline that maps code windows to discrete visual layouts based on a nominal compression ratio ($r$). To isolate the effects of visual code from the chaotic variance of unguided agent trajectories, they introduce a controlled evaluation framework featuring three agent configurations:

  1. mini SWE-agent: The standard baseline running an unguided, bash-first ReAct loop.
  2. Pre-Localized Bash Agent (PLB): Pre-computes an offline localization brief to give the agent a structured starting point, then renders all subsequent code-reading bash outputs as images.
  3. Locator-Editor Tool Agent (LET): A two-stage architecture that explicitly separates repository exploration (Locator phase, which uses visual code) from the trial-and-error patch refinement loop (Editor phase, which uses text).
Figure 1: Pipeline comparison between passive visual code understanding and agentic coding workflows. The top panels contrast existing code rendering/VLM understanding with Panel ❶the unguided mini SWE-agent task workflow. The bottom panels illustrate our experimental pipeline featuring two distinct agent paradigms: ❷ PLB (Pre-Localized Bash Agent), which uses an offline localization pass before a focused repair loop, and ❸LET (Locator-Editor Tool Agent), which dynamically splits repository actions into explicit Locator and Editor stages to systematically analyze the utility and limitations of rendered code context.

Datasets

The approach is evaluated on a stratified sample of 100 Python instances from SWE-bench Verified, a human-validated subset of real-world GitHub issues designed to filter out ambiguous descriptions and ensure problems are resolvable from the provided repository context.

Key Insights and Ideas

  • The Visual Cost Surface is "Bumpy": Unlike text compression, which scales relatively smoothly, visual token savings do not scale linearly with the nominal compression ratio. Small code windows quickly hit an operational cost floor due to discrete image patch boundaries and readability safeguards.
Figure 3: Single-read visual token cost across varying window sizes and nominal compression ratios. The two panels jointly show that token counts do not decrease lin- early: small windows rapidly encounter an operational cost floor because they collapse to the same rendering configuration. Higher compression ratios become ef- fective only for more extreme large-window settings, reducing cost to 15%–40% of raw text, but with dimin- ishing marginal returns and inherent readability risks.
  • Code is Visually Sparse: Code inherently contains substantial unused space due to indentation, blank lines, and short statements. Consequently, simply shrinking font sizes yields diminishing returns; the renderer must carefully balance page fragmentation against density.
  • Downstream Trial-and-Error Dominates: Analysis of agent trajectories reveals that a massive chunk of an agent's token budget is spent on the iterative edit-test-verify loop, rather than initial code exploration. Visual compression provides less leverage here because the bottleneck shifts from reading code to fixing semantic bugs.
Figure 2: Action distribution and temporal action trends of mini SWE-agent v2 on SWE-bench Verified. Read- /search actions dominate across both lower- and higher- difficulty tasks, and remain distributed throughout the normalized repair process. Difficulty groups are defined by the steps used to solve each task.

Key Results

  • Accuracy is Maintained: Across both Qwen3.5 (397B) and Kimi-K2.5 backbones, switching to visual code largely preserved end-to-end repair success rates, consistently remaining within the same 64%–73% accuracy band as text baselines.
  • Substantial Token Savings: Visual code achieved up to a 2.81x token reduction on Qwen3.5 and 2.58x on Kimi-K2.5 under the PLB configuration.
  • Aggressive Compression Destabilizes: Pushing the nominal compression ratio too high ($r=7$) degraded image readability, leading to repetitive tool calls or a drop in accuracy (down to 60% in some LET settings) as the model struggled to parse fine-grained semantic details.

Limitations and Future Work

The authors acknowledge that their study is restricted to a 100-instance subset of SWE-bench Verified and focuses entirely on Python repositories. Furthermore, the PLB and LET agent architectures are simplified abstractions designed for clean experimental control rather than exhaustive, production-grade multi-agent orchestrations.

Future directions include validating these visual representations within enterprise-scale environments and exploring how to apply visual compression to non-code agent contexts, such as massive stack traces or verbose test execution logs.

Summary updated

BibTeX
@misc{liang2026can,
  author = {Weijie Liang and Yuanfeng Song and Xing Chen and Caleb Chen Cao and Sirui Han and Yike Guo},
  title = {{Can Coding Agents Solve Repository-Level Issues with Rendered Code? An Exploratory Study of Visual Representations}},
  year = {2026},
  eprint = {2608.09268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.09268},
}
Figure