Every long-running agent today has a context manager. Your harness reads the transcript, decides what to keep, summarizes the rest, and writes a new prompt. The model never sees the decision. It never learns from it. It just receives whatever survived.

A paper posted to arXiv in late September argues this arrangement is backwards. Context Language Models, or CLMs, treat the context as a file the model owns and edits with unrestricted write access. The model decides what matters, what dies, and what stays.

The authors built CLMs zero-shot on top of existing models. No new training run, no scaffolding change, no swap of the agent loop. They then beat state-of-the-art context management across three benchmarks. And on the hardest task, a 24-hour multi-repository agent swarm, they improved results 65 percent more than competing approaches at identical compute.

Here is what the idea actually is, why it works, and where it breaks.

What a Context Language Model Is

The standard architecture treats context as a read-only input. The system prompt arrives, the user message arrives, the tool outputs arrive, and the model generates the next token. Context arrives assembled by someone else.

A CLM gives the model a write handle to the whole buffer. Instead of emitting only a response, it emits a response plus edits. It can delete a stale tool result, promote a fact it discovered two hundred turns ago back to the top, rewrite its own notes, or compress a sprawling failed search into two lines. Then it continues the turn from the edited state.

The critical point is who chooses. A summarizer is a fixed policy. It cannot know that a failed grep and a successful grep look identical in a transcript but mean opposite things for the next step. A model that has watched itself fail at both can tell them apart. The paper's framing is that the model learns what is worth maintaining in context as a byproduct of doing the task, rather than through a separately designed retention heuristic.

There is a second benefit that falls out of the file abstraction. In a multi-agent system, each agent's context is a file. Agents read each other's files, write into them, and hand off state without a bespoke coordination protocol. A swarm becomes a set of files mutating in a shared directory.

How This Differs From External Compaction

External compaction is a policy sitting above the model. When the window fills, a summarizer or an LLM call compresses the middle. Information gets selected by criteria fixed in advance: recency, salience, semantic similarity, a keep-first-keep-last heuristic.

Three problems follow from that. The selection criteria never adapt to the task. A coding agent and a research agent need different retention rules, yet the same compressor serves both. The summarizer also operates on text the model no longer reasons about, which means the compressed form is not guaranteed to preserve what the model would have kept. And the compressed tokens still occupy the window, so compaction trades accuracy for FLOPs instead of breaking that trade.

CLMs invert the relationship. Because the model performs the editing, the selection criteria are the model's own, learned in context from its own trajectory. The model can discover that in this task the file listing matters more than the error log, and act on it. The model also compresses by deleting rather than by rewriting into denser prose, which is where the FLOP savings come from.

The paper also frames this as unlocking in-context and parametric learning of context management. If the model chooses what to retain, you can steer that choice with an instruction, and you can train the choice directly. External policies offer neither.

The Numbers

Three benchmarks, all built zero-shot on existing models:

BrowseComp-Plus. 11.4 percent higher accuracy with 21.5 percent fewer FLOPs. Both directions at once, which is the result that matters. Most compaction trades one for the other.

EdgeBench, 12-hour agent tasks. 5 percent higher scores with 59 percent fewer FLOPs. The compute drop is the larger number. Long-horizon work spends most of its budget on re-reading context, so better retention compounds.

24-hour multi-repository agent swarm. 65 percent greater improvement at the same compute. This is where context-as-file earns its keep. With many agents writing to shared files, the management decisions multiply, and a fixed policy scales linearly in its own mistakes.

Two follow-on results round out the paper. An online reinforcement learning method for CLMs lifted Qwen3.5-9B on BrowseComp-Plus by 47.6 percent while using 12 percent fewer FLOPs, which means a 9B model trained online beats larger models that manage context the old way. And a serving technique called Suffix Cache Reuse, co-designed with CLM behavior, cut server-side compute another 35 percent against standard SGLang at matched performance. CLMs produce edit patterns that make prefix caching unusually effective, so the serving win is a direct consequence of the design.

Skill-Loop-Steered Context Rules

You can also steer a CLM with natural language without retraining anything. The authors evolve a plain-language instruction, such as a rule about what to retain and when to drop it, through a standard skill-optimization loop. The loop scores candidate rule texts on a context-management task and keeps the winners.

Held-out accuracy improved by up to 35.9 points while compute went down. A 35.9 point swing from wording a rule is a large result, and it tells you something about how much of context management is judgment rather than mechanism. The mechanism is just "edit the file." The judgment is the part worth writing down.

This is the most portable idea in the paper for anyone running agents today. You do not need the architecture to try it. You need a file, a rule, and a loop that scores rule variants.

What Breaks

Unrestricted writes are unrestricted writes. A CLM that deletes the wrong evidence loses it permanently, and there is no harness-level audit trail because the model performed the deletion. External compaction at least keeps a record of what was summarized and why.

Error accumulation compounds over long runs. A bad edit at hour one is context the model treats as ground truth at hour twelve. Summarizers drift too, but they drift inside a bounded paraphrase. File edits drift inside a state the model then reasons from.

Evaluation gets harder. You cannot score a CLM by comparing summaries to a reference, because there is no reference. Measuring this requires outcome benchmarks, which are expensive and noisy. The numbers in this paper come from long-running tasks, and long-running tasks are slow to reproduce.

The 9B result carries a caveat worth stating plainly. Online RL for a CLM is a training pipeline, and the pipeline matters. The zero-shot path and the trained path are different systems, and the paper evaluates them separately.

And a CLM still cannot reason about anything that was deleted. Better editing raises the ceiling on what stays useful. It does not create information the run never captured.

What Brian Can Do This Week

Start a skill loop on a rule, not a model. Write a candidate instruction for what to keep and drop, score three or four variants on a real task you already run, and keep the best. The paper reports up to 35.9 points from this. You can do it against any existing agent because it needs no architecture change.

Instrument deletion decisions. Before you trust a model to edit its own context, log what it removed. You want an audit trail the current harness design does not give you.

Stop writing summarizers you cannot measure. If your compaction step has never been scored on an outcome benchmark, you do not know whether it helps. A CLM gives you a comparison point for free.

Watch the FLOP side, not just accuracy. The 21.5 percent and 59 percent compute reductions are the durable win. If cost per successful task is your constraint, context-as-file attacks it from a direction prompt caching never will.

Test the small-model path. A 9B model with online RL beat bigger models here. If you are paying frontier prices for agent work, that gap is worth probing.

Paper: arXiv:2609.37725, Shao, Shen, Yin, Li, Wang, Ivison, Poovendran, Lambert, Xiao, Lewis, Yih, Zettlemoyer, and Koh. Read the zero-shot results and the skill-loop steering section first. They need no infrastructure.