AI News HubLIVE
Original source3 min read

What Context Does a Coding Agent Actually Need to Act?

A new study reveals that coding agents need minimal context when editing code: the signal is only in the code being edited, natural-language summaries fail to answer behavioral questions, surrounding context (UML skeletons) performs no better than deleting it, and compressed context matches full files at one-third the tokens. Temperature-0 inference introduces a ~9% noise floor. The authors release their instrument including gold-validated environments, deterministic patches, and pre-registered hypotheses.

SourcearXiv Machine LearningAuthor: Brian Sam-Bodden

-->

[Submitted on 19 Jun 2026]

Title:What Context Does a Coding Agent Actually Need to Act?

View a PDF of the paper titled What Context Does a Coding Agent Actually Need to Act?, by Brian Sam-Bodden

View PDF HTML (experimental)

Abstract:A modern coding agent can hold an entire repository in its context window. Most of its reading is wasted -- and the interesting question is not how much context an agent can use, but what it actually \emph{needs}. We study that question at the moment it matters most: when the agent must \emph{edit} code. Separating \emph{finding} the work site from \emph{acting} on it, we hold localization fixed with an oracle, vary only how the code is represented, and score context against real issue resolution on SWE-bench Verified. The answer is starkly minimal. The signal lives in the code being edited itself: natural-language summaries of it answer almost none of the behavioral questions that the source answers ($4/45$ vs.\ $27/45$, held-out repositories, independent judge), and the gap belongs to the representation, not the summarizer -- a frontier model's summaries score exactly as poorly as a 3B model's. The surrounding context hardly matters either: across every multi-file instance in Verified, under a protocol frozen before any data, rendering a file's remainder as UML skeletons and signatures resolves no more issues than deleting that remainder outright ($N{=}70$, exact McNemar $p{=}0.75$). That was our registered hypothesis, and it failed. Compressed context, meanwhile, matches whole files at a third of the tokens: a resolved issue costs $19$K context tokens, not $94$K. The instrument also yielded a finding the field should keep: temperature-0 API inference flips ${\sim}9\%$ of per-instance outcomes between byte-identical runs. That is a noise floor under every small effect reported on this benchmark, including ours. We release the instrument -- gold-validated environments, per-instance proof that every reference edit is expressible from every arm's context, deterministic patch construction, and pre-registered hypotheses whose nulls we publish.

Subjects:

Machine Learning (cs.LG); Artificial Intelligence (cs.AI)

MSC classes: 68T50 (Primary) 68T05, 68N30 (Secondary)

ACM classes: D.2.5; I.2.2; I.2.7; D.2.8

Cite as: arXiv:2607.09691 [cs.LG]

(or arXiv:2607.09691v1 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2607.09691

arXiv-issued DOI via DataCite

Submission history

From: Brian Sam-Bodden [view email] [v1] Fri, 19 Jun 2026 04:22:17 UTC (109 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled What Context Does a Coding Agent Actually Need to Act?, by Brian Sam-Bodden

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.LG

new | recent | 2026-07

Change to browse by:

cs cs.AI

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

IArxiv recommender toggle

IArxiv Recommender (What is IArxiv?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)