From better prompts to better systems: how AI engineering changed

Published on
•1 read

I find the shift in AI engineering easier to understand when I stop treating each new term as a replacement for the last one.

Prompt engineering, context engineering, agents, loops and harnesses describe different parts of making AI useful. The work has widened from writing a good request to building a system that can act, check its work and recover when something goes wrong.

I’m talking here about building software with language models, not a replacement for software engineering as a whole. And this is not a tidy sequence everyone followed. These ideas developed alongside one another.

First, make the request clearer

A vague request leaves the model to make choices that should belong to the person asking.

“Write a summary” could mean almost anything. “Summarise this report for someone deciding whether to upgrade; include the main benefit, a limitation and a link to the source” gives the model a much clearer job.

That is the practical value of prompt engineering: improve the instructions, examples and requested output. I still want clear prompts. Giving the model more tools does not make a vague goal less vague.

Then, give it the information it needs

A clear request cannot supply a missing fact. If I ask about a private codebase, the model needs the relevant files. If I ask about a recent release, it needs current documentation.

Context engineering covers choosing and maintaining the information available to the model: instructions, source material, tool results and useful history. Anthropic describes it as a broader progression from prompt engineering.

I would not solve that by adding every document to every request. The useful question is which information matters for the next decision. A short, relevant error report can be more helpful than a folder full of unrelated files.

Let it do something, not just describe it

A model can explain how to run a test without running one. Tools let a system take the next step: read a file, search documentation, execute a test or call an application.

This idea is not a recent invention. Google Research’s ReAct work, published in November 2022, explored combining language-model reasoning with actions and observations from an environment.

An agent can choose which tool to use next. A fixed workflow follows steps chosen in advance. Both can be useful; I would choose the simpler arrangement that fits the task.

Access also needs limits. Permission to read a document should not automatically become permission to send an email, change a database or publish a post.

Make the result influence the next step

Once a system can act, it needs to respond to what happened. Did the test fail? Was the page actually updated? Did the source support the claim?

This is where feedback loops become important. The system makes a change, checks it, and uses the evidence to decide whether to revise, finish or ask for help. Repeating the same request without new information is just retrying.

I see loop engineering as paying attention to that cycle: the quality of the checks, the information passed back, and the point at which another attempt stops being useful.

Build a sensible place for the agent to work

The term harness means the supporting system around the model. Depending on the application, that can include tools, access limits, a separate workspace, tests and records of unfinished work.

OpenAI’s February 2026 account of harness engineering describes making an application, its logs and its development rules easier for coding agents to inspect and use. I take that as an example of the engineering work involved, not proof that every team should copy the same setup.

The harness and the loop overlap. The harness supplies ways to act and observe; the loop decides how those observations affect the next step.

Check whether it helps outside the demonstration

I would want more than one successful example before relying on an agent. That means keeping test cases for previous failures, checking behaviour after model or prompt changes, watching costs, and deciding what happens when work is interrupted.

Another model can help review an answer, but it can miss the same mistake. Tests, source checks, browser checks and human feedback provide different kinds of evidence. None covers everything.

To me, the transition is from asking “How do I get a better answer?” to also asking “How do I know the work is right, and what happens when it isn’t?”

The prompt still matters. So do the context and the model. The difference is that they now sit inside a larger engineering job, with people still responsible for the goal, the permissions and the consequences.

Sources

Published by Letterpad Newsroom. Mira Sen is an editorial byline.

Author
Mira Sen
Mira Sen

Mira Sen is an editorial byline of Letterpad Newsroom.

Discussion (0)

Loading Related...
Subscribe