Technical
From prompts to loops: the four-layer shift your AI strategy hasn't caught up with
Prompt engineering, context engineering, harness engineering, loop engineering. Each layer vendors sell as a technical specialty is an organisational discipline your company needed before AI existed.
If your organization’s AI training still teaches people to “write better prompts,” you’re preparing them for 2023. The field has moved twice since — and each move carries a lesson your organization needs more than the technology itself.
Here’s the progression the AI engineering world now broadly agrees on, with each layer wrapping the previous one:
Prompt engineering (2022–2024): getting the words of a single instruction right.
Context engineering (2025): designing everything the model sees — documents, history, tools, memory. The insight: output quality is determined less by how you phrase the ask than by what information surrounds it.
Harness engineering (2026): building the environment around an AI agent — its tools, constraints, permissions and feedback channels.
Loop engineering (2026): designing the iterative cycle in which an agent works toward a goal: act, observe, correct, repeat — until a defined, testable “done” condition is reached.
Vendors will sell you each layer as a technical specialty. Look closer, and something more interesting appears: every layer is an organizational discipline your company was supposed to master before AI existed.
Context engineering is knowledge management with consequences
An agent performs exactly as well as the context you can assemble for it. Which raises the awkward question: can you assemble it? Where does your organization’s real knowledge live — in structured, retrievable form, or in inboxes, hallway conversations and the heads of three veterans?
I spent years on this problem at continental scale. At the European Parliament, the challenge was making tens of thousands of pages findable in 27 languages for over a million visitors a day at peak. When we first tested the navigation, the task success rate was under 20%. The fix wasn’t more content — it was ruthless curation: identifying, through 6,000+ user tests and Top Tasks Analysis, what actually mattered, and structuring everything around it. Success rose above 82%.
That is context engineering, applied to humans. The organizations struggling to feed their AI agents useful context today are the same ones that never invested in information architecture for their people. The machine just made the debt visible — and expensive.
Loop engineering is process design with a “done” condition
A working agent loop needs three things: a goal specific enough to act on, real feedback from the environment, and a testable termination condition — a check that tells the loop it’s finished, ideally verified by something more reliable than the agent’s own opinion of itself.
Read that sentence again as a description of your transformation program. Goal specific enough to act on? Real feedback? A testable definition of done, verified independently? Most programs I’ve audited in 26 years fail at least two of the three — which is why they run forever, consuming budget in circles, like a badly designed loop. The AI engineers rediscovered, under commercial pressure and with brutal clarity, what organizations have been able to fudge for decades: work without verification isn’t progress, it’s motion.
What leaders should actually do with this
Upgrade the training. Teach context thinking, not prompt tricks: what does this task need to know, where does that live, what’s missing? That skill transfers to every future tool; phrasing tricks don’t.
Audit your knowledge like infrastructure. If your best process knowledge lives in people’s heads, your AI capability has a ceiling — and so does your resilience. Treat retrievable, structured knowledge as a capital asset. (I’ve maintained a personal knowledge system for over a decade — thousands of curated resources. It’s the highest-ROI system I own, and organizations need the institutional equivalent.)
Demand termination conditions. For every AI initiative — and honestly, every initiative — require the loop-engineering question: what test tells us this is done and working? If there’s no test, there’s no loop; there’s just spend.
Don’t outsource the thinking. The four layers will keep evolving — the names barely existed eighteen months ago. What stays constant is the underlying demand: clear goals, curated knowledge, real feedback, verified outcomes. That’s not an AI stack. That’s an organization that knows what it’s doing — which is precisely why the fog-bound ones find AI so hard.
The tools are new. The discipline they demand is the one you always needed.
Sources
Keep reading
Technical • 14 Jul 2026 • EN
Your AI agents don't have a goal problem. Your organization does.
Hand your corporate objectives to an AI agent and it fails instantly, for reasons an engineer can name precisely. The same reasons your people have been quietly absorbing for years.
Technical • 25 Jun 2025 • EN
Document preparation: the key performance factor in RAG systems
In a RAG project, 80% of final quality is decided before the model: in how sources are cleaned, segmented, and indexed.