Skip to content

Six months ago I would have told you prompt engineering was the skill that mattered most in AI-assisted development. I no longer believe that.

The skill that actually determines whether an AI agent performs well in software engineering is context engineering: deciding what information the agent needs, in what form, at what point in the workflow. A good prompt with the wrong context still fails. A plain instruction with the right context often succeeds.

Here is where I learned this the hard way.
Our architecture decision records FlexAM were well written. Clear prose, good reasoning, the kind of documentation a new engineer could read and understand in ten minutes. When I connected AI coding agents to our development workflow, I assumed that documentation would transfer straight across.

It didn’t.
An agent reading three paragraphs of prose about why we chose an event-driven design over a simpler alternative does not reliably extract the constraint that matters: which patterns are forbidden, which trade-offs were already litigated and closed, what the actual boundary of the decision is. A human skims and infers. An agent needs the constraint stated, not implied.

So we rewrote them. Not the reasoning, that stayed. But we added a structured layer on top: explicit constraints, explicit boundaries, explicit “do not” statements sitting alongside the explanatory prose. The documentation now serves two readers instead of one, and that duplication was worth the effort.

The same principle applies wherever an agent needs domain knowledge it cannot get from source code alone. we are currently building an AI agent for regulated domain and the hardest problem was never the model or the architecture. It was capturing what a specific data field actually means, in a way a language model can use reliably. That knowledge lives with a domain expert, not with the engineer who built the pipeline. Getting it into a form the agent can consume explicit, structured, unambiguous is a documentation problem before it is an AI problem.

That is the real shift in agentic software development. Prompt engineering treats the request as the unit of work. Context engineering treats the surrounding knowledge as the unit of work, because that is what determines whether the agent’s output is trustworthy without you having to re-check every line. If you are rolling out AI coding agents and struggling with inconsistent results, look at your documentation before you look at your prompts. The gap is usually there.

Next in this series: where we decided agents should never operate alone, and why that decision came before any of the tooling.

Read also