Saved in:
Bibliographic Details
Main Authors: Cao, Weili, Yin, Xunjian, Dhingra, Bhuwan, Zhou, Shuyan
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2603.20432
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917355400986624
author Cao, Weili
Yin, Xunjian
Dhingra, Bhuwan
Zhou, Shuyan
author_facet Cao, Weili
Yin, Xunjian
Dhingra, Bhuwan
Zhou, Shuyan
contents Large Language Models (LLMs) have demonstrated remarkable progress in scaling to access massive contexts. However, the access is via the latent and uninterpretable attention mechanisms, and LLMs fail to effective process long context, exhibiting significant performance degradation as context length increases. In this work, we study whether long-context processing can be externalized from latent attention into explicit, executable interactions, by allowing coding agents to organize text in file systems and manipulate it using its native tools. We evaluate off-the-shelf frontier coding agents as the general interface for tasks that require processing long contexts, including long-context reasoning, retrieval-augmented generation, and open-domain question answering with large-scale corpus contains up to three trillion tokens. Across multiple benchmarks, these agents outperform published state-of-the-art by 17.3% on average. We attribute this efficacy to two key factors: native tool proficiency, which enables agents to leverage executable code and terminal commands rather than passive semantic queries, and file system familiarity, which allows them to navigate massive text corpora as directory structures. These findings suggest that delegating long-context processing to coding agents offers an effective alternative to semantic search or context window scaling, opening new directions for long-context processing in LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2603_20432
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Coding Agents are Effective Long-Context Processors
Cao, Weili
Yin, Xunjian
Dhingra, Bhuwan
Zhou, Shuyan
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) have demonstrated remarkable progress in scaling to access massive contexts. However, the access is via the latent and uninterpretable attention mechanisms, and LLMs fail to effective process long context, exhibiting significant performance degradation as context length increases. In this work, we study whether long-context processing can be externalized from latent attention into explicit, executable interactions, by allowing coding agents to organize text in file systems and manipulate it using its native tools. We evaluate off-the-shelf frontier coding agents as the general interface for tasks that require processing long contexts, including long-context reasoning, retrieval-augmented generation, and open-domain question answering with large-scale corpus contains up to three trillion tokens. Across multiple benchmarks, these agents outperform published state-of-the-art by 17.3% on average. We attribute this efficacy to two key factors: native tool proficiency, which enables agents to leverage executable code and terminal commands rather than passive semantic queries, and file system familiarity, which allows them to navigate massive text corpora as directory structures. These findings suggest that delegating long-context processing to coding agents offers an effective alternative to semantic search or context window scaling, opening new directions for long-context processing in LLMs.
title Coding Agents are Effective Long-Context Processors
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2603.20432