Papers › What Context Does a Coding Agent Actually Need to Act?

What Context Does a Coding Agent Actually Need to Act?

19 Jun 2026arXiv:2607.09691added by Syntology

Brian Sam-Bodden

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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 ∼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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.09691")

Code

Syntology Ran 10 of 10 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

integrallis/act-context found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 10 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from integrallis/act-context. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cheap_client integrallis/act-context/src/dhcm_ng/llm.py found in paper text by Syntology ran MIT (permissive) · 736308f98a7821d2 · report
content_hash integrallis/act-context/src/dhcm_ng/model.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 89ffdb3e66416cdb · report
cosine integrallis/act-context/src/dhcm_ng/embed.py found in paper text by Syntology ran fingerprinted MIT (permissive) · ae2a1aba1e25a436 · report
frontier_client integrallis/act-context/src/dhcm_ng/llm.py found in paper text by Syntology ran MIT (permissive) · c6f1bbb6e692d13d · report
function_signature integrallis/act-context/src/dhcm_ng/reduce.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 9d7bdee049ea7781 · report
gold_files_from_patch integrallis/act-context/src/dhcm_ng/context_arms.py found in paper text by Syntology ran fingerprinted MIT (permissive) · df6d085fb73cab5c · report
gold_hunks_from_patch integrallis/act-context/src/dhcm_ng/context_arms.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 2a5420bc4a8a6ed0 · report
redundancy integrallis/act-context/src/dhcm_ng/assemble.py found in paper text by Syntology ran MIT (permissive) · c7387a7192088136 · report
summary_for integrallis/act-context/src/dhcm_ng/descent.py found in paper text by Syntology ran MIT (permissive) · ae9810d8e8fac4e1 · report
uml_class_skeleton integrallis/act-context/src/dhcm_ng/reduce.py found in paper text by Syntology ran fingerprinted MIT (permissive) · ad54287b72e4bb9c · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.09691, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections