We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Context engineering as an experience map for software engineers — everything the model sees, the idea of minimal effective context, and why reliability often starts with what you put in the window.
Part 2 of 4 · ← Previous: agents & skills · Next: RAG →
In the first post I shared what “agent” meant after I stopped guessing: an LLM with tools and guidance in a loop, plus skills when the task playbook keeps changing.
That clarity did not make agents reliable by itself. Prompt tweaks were not enough either. The craft that kept showing up — in study and in practice — was context engineering: designing everything the model sees before it answers.
Prompt engineering is mostly about one string (or a few): the instruction, the wording, the examples.
Context engineering is designing dynamic systems that give an LLM the right information and capabilities, in the right format, at the right time. It is about the whole window — not a cleverer paragraph.
That shift mattered for me as a software engineer. It reframed agent work as systems design: what enters the request, what stays out, what is retrieved on demand, and what the harness is responsible for.
Before the model answers, context can include:
Tools are part of that picture. They are not the whole picture. Skills, history, retrieved knowledge, instructions, and output contracts shape behavior as much as which functions exist.
It helps to separate two layers:
A lot of “agent engineering” is harness judgment. Demo agents that feel magical often assemble context well — calendar, past messages, contacts, the right tools for this turn — more than they invent a unique model.
The line that stuck from the writing I studied: many agent failures are context failures, not model failures.
Three labels were enough to make messy demos discussable:
| Term | What it feels like |
|---|---|
| Context rot | Quality drops as the window fills — often well before the advertised limit |
| Context pollution | Irrelevant, redundant, or conflicting information distracts the model |
| Context confusion | Instructions blur into data; rules conflict; similar capabilities fight each other |
Related ideas you will hear: offloading, reduction, retrieval, isolation. As experience, they all point the same way — do not treat the context window as a junk drawer.
The goal is not “stuff more into the window.” The goal is the minimal effective context for the next step.
That sounds obvious. It is hard in practice. Agents accumulate history. Tool results are verbose. Retrieved snippets pile up. Instructions grow. Suddenly the model is negotiating noise.
Industry write-ups go deep on tactics — stable prefixes, reversible memory, small action spaces, how sub-agents should communicate instead of dumping full shared history. I took the principle, not a playbook: prefer less, better-timed context; retrieve when needed; keep failures visible enough to learn from; avoid turning every capability into permanent clutter.
I am still figuring out how to manage context well while shipping. When you create an agent, that is the hard part. Model choice matters; context judgment matters more day to day.
For another software engineer on this path:
Useful reading that shaped this map (principles, not a tutorial syllabus):
One of the biggest context levers is knowledge that is not already in the weights or the chat: retrieval from your own datastore — and, when the question is about meaning, finding the right pieces semantically.