A 200K-token context window did not automatically solve a coding agent’s “forgetting” problem: during an authentication task, the agent forgot that a whitelist mechanism already existed and rewrote the code instead. We notice that large models can absorb more information, but usable context still depends on how the budget is allocated.

The author attributes this to competition for the context window among system prompts, tool definitions, code snippets, build logs, and conversation history. The value of this case lies not in the four techniques themselves, but in the engineering capability agents must add as they move from “being able to write code” to “reliably delivering software.”

What This Is

Context management determines which information an agent receives for each task and how that information is organized. The author proposes four rules: trim build logs before passing them in; start a new session for every task; write stable project conventions into files; and limit the number of files retrieved per operation. The goal is not to give the model more knowledge, but to reduce irrelevant information so that critical constraints are not drowned out.

Log trimming reduces the input for one call from roughly 30,000 tokens to about 400, while a fixed retrieval scope cuts the number of files read by the agent from 40 to three. However large the context window—the amount of information a model can receive in one call—becomes, inputs, caches, and disk writes still need to be managed like memory scheduling.

Industry View

This supports a clear conclusion: the competitive focus of coding agents is shifting from the quality of one-off code generation to the controllability of task execution. Context management, tool permissions, and project rules will determine whether agents can enter long-term maintenance workflows rather than merely complete demo tasks.

These methods, however, still lean toward individual experience and cannot be treated directly as an enterprise-grade solution. Limiting the number of files may omit critical dependencies, while opening a new session may discard decisions that have not yet been captured. Overly aggressive log filtering can also conceal related errors. The more realistic risk is that most teams misdiagnose context problems as insufficient model capability, repeatedly switch models, and never improve the quality of their inputs.

Impact on Regular People

For enterprise IT: When deploying coding agents, organizations should concurrently build project rules, logging standards, and retrieval policies, and introduce human review so that ungoverned agents are not connected to core code repositories.

For individual professionals: People who use agents will rely on more than knowing how to ask questions; they will also become better at decomposing tasks, codifying rules, and screening evidence. These capabilities will gradually become part of collaboration requirements for software roles.

For the consumer market: Consumer-facing agentic applications will encounter the same problem, although it will appear less as missing code and more as overlooked terms or ignored preferences. The resulting product experience will depend increasingly on context governance in the backend.