Back home

Agent engineering first tightens the context and sensors

From Fragments: July 13, what we see is not new model capabilities, but harness entering daily engineering first.

Looking at a group of discussions about Harness Engineering these days, the most intuitive feeling is not that “Agent has added a new layer of capabilities”, but that the focus of engineering discussions has changed. In the past, we often asked whether the model was strong enough. Now we first focus on how much context to put in, how long to put in the rule file, and what signal the sensor gives. The model is still in the middle, but what really begins to determine stability is the outer harness.

The larger the context window, the more stable the attention will be.

Someone in the retreat mentioned that agents.md should be controlled to less than 200 lines. This number is not pretentious or line-number worshipping, but more of a budget reminder. The larger the context window only means that more content can be crammed into it, but it does not mean that the model will more stably grasp the part that should be grasped. Models often only focus on a small part of the context, and even if the rest of the content is in the window, not all of it may be in focus.

This is very annoying in engineering. The more rules there are, the easier it is to write “constraints” as “noise”; the longer the instructions, the easier it is to bury what really must be observed in a corner. Keeping the file very short is not about making the document look neat, but about forcing constraints to become visible. What the model faces is not an encyclopedia, but a limited operating contract.

The sensor does not feed the log again

Another obvious change is that the discussion has begun to move up to computational sensors. The sensors here are not simply buried, nor are system logs inserted intact into the model, but the runtime status is compressed into a small number of usable signals. What it does is filter out the noise, not create new contextual burdens.

This is why “switch to Rust instead of Python” is said. The focus is not on taking sides with language, but on control. Once a sensor relies on runtime boundaries, resource constraints, exception paths, and deterministic output to ensure quality, the language and execution environment are no longer just implementation details, but part of the sensor itself. If the signal is unstable, no matter how strong the model is, it will only make guesses on the unstable input.

Sending raw data directly into the model may seem more informative in the short term, but often just makes the scene noisier in the long term. A truly useful sensor should first compress “what happened” into a few clear states, and then decide which details are left to humans and which to tools.

The responsibility of the harness is to cut the world into pieces that can be fed to the model

Once this kind of discussion matures, it starts to look more like system design than prompt techniques. The harness is responsible for boundaries: what goes into the context, what stays out of the context, what state can be relied upon by the model, and what state must be reconfirmed by tools. It is not a shell, but a layer of filter and closer.

This is also the most underestimated cost in the Agent system. Model replacement is fast, but harness is much slower because it directly binds the action chain, signal chain and failure chain. Context budget, sensor design, permission boundaries, fallback paths, all ultimately fall on this layer. As long as this layer is not tight, the stronger the model, the easier it is for the system to spread instability further.

Looking at this type of fragments now, the most valuable part is not a single conclusion, but that it clearly states the focus of the project: the agent is no longer just “whether it can do things”, but “whether the external system has collected attention and signals.” This step is not stable, and further improvement in model capabilities will only amplify the chaos faster.