Why AI agents need a process outside the prompt.
Prompting until it looks right works once. A process that gives each step its own context works every time.
What. An agent drifts from a process written in its prompt, and the bigger the prompt, the sooner.
Why. Keeping the process outside the agent, with only each step's context, gives results you can verify and repeat.
Decision. Write your process as numbered steps outside the prompt, and check each result before the next step.
Vibe coding works once, and the lessons go.
The simplest way to work with an agent is a system prompt and a prompt. Both exist to generate content: code, a document, a design. The agent produces what its context lets it produce.
Vibe coding means working by feel. You give the agent context, read what comes back, and add more until the result is right. It works because you're the check.
Every correction is a small lesson about how to get this result. Those lessons live in the session, and when it ends they go.
Model providers learn from usage in general. They build for everyone, so what you taught won't be tuned to your work.
Bigger context makes agents less reliable.
As people get better with agents, they write rules files and agent skills so the agent can repeat what worked. The context window, everything the agent can see at once, gets bigger and broader, not more targeted.
Researchers call the loss of reliability as a context fills context rot. Reliability drops as the input grows, even on simple tasks. Context Rot, Chroma, 2025
The agent now has two jobs at once. It must work out which part of a large pile of context matters for this step. It must also follow a process written as text.
Agent drift is an agent moving away from its instructions as a long run goes on. In our own runs, a written checklist became a shortened loop within a few dozen runs. Published research measures the same pattern.
- Several turns are worse than one. Leading models did worse over several turns than with a single prompt, by an average of 39% across six tasks. Laban and colleagues, ICLR 2026
- Behaviour drifts early in real sessions. In 57 long coding sessions, assistant behaviour drifted in 17 of 23 models tested. ContextEcho, 2026
- Restating the instructions doesn't fix it. Agents drifted from a procedure over long runs, and a check kept outside the model held it. Keeping Agents on Procedure, 2026
- A bigger rules file adds cost. Context files didn't significantly improve task success and raised cost by over 20%. Gloaguen and colleagues, ICLR 2026
Run the process outside the agent.
Context engineering is deciding what the agent sees at each step and keeping it small and relevant. Anthropic on context engineering makes the same case.
Our fix goes one step further: govern the agent with a harness. A harness is everything around the model that isn't the model. It holds the steps, rules, tools and checks that make the agent reliable.
Building one is called harness engineering, and Anthropic has written about it for long-running agents. Ours is a deterministic workflow that lives outside the agent. The process decides the steps, and each prompt covers only the piece of work in hand.
It's how you'd work with a capable junior colleague. You break the work down, say what this step needs, and check the result before the next step starts.
The agent does one piece of work at a time, with only the context for that piece.
This gives you four things.
- A result you can verify. Each step is checked before the next one starts, so you know what met the need.
- The same steps every time. The process runs the same way whoever is at the keyboard.
- Small, focused context. The agent sees what this step needs, so it has less to sift through.
- Lessons that carry forward. A correction becomes a lesson for its step, so the next run starts with it.
Larger models take on part of this by breaking the work down out of sight. As we see it, you're better served when you can see and control the breakdown.
Our own runs showed three patterns.
We ran thousands of agent runs on our own work and recorded every correction. Three patterns kept appearing, and each changed how we work.
- Agents skip steps written as prose. Turning the checklist into a tool fixed it.
- Lessons nobody reads. We recorded hundreds, and no later run used them. Lessons now go into every run they apply to.
- Findings lost between attempts. Findings now reach the next attempt in full.
Try it this week.
- Write the process as numbered steps in a file that the agent doesn't carry in its prompt.
- For each step, write a prompt with only the context that step needs.
- Check each result before the next step, and write any correction down as a lesson for that step.
Sulis does this for a team's standards, so the process and the checks are part of the product. See how the guardrails work and how a change moves through the five steps.
Related: agent team structure and why agents need a worker. To run agents through a process, follow the worker install guide.
We define the terms in plain language.
Working with agents
Vibe coding
Working by feel, adjusting the prompt until the result looks right.
Context window
Everything the agent can see at once: prompts, files, history and tool results.
AGENTS.md and CLAUDE.md
Plain files of rules and conventions that coding agents read.
Agent skills
Packaged instructions an agent can load for a type of task.
Why they fail
Context rot
The loss of reliability as the context window fills.
Agent drift
An agent moving away from its instructions as a long run goes on.
How to fix it
Context engineering
Choosing what the agent sees at each step, so it stays small and relevant.
Agent harness
Everything around the model that isn't the model: its steps, rules, tools and checks.
Harness engineering
Designing that surrounding system so the agent works reliably, with guidance, checks and control.
Deterministic workflow
A process that runs the same steps in the same order every time.
Become a design partner.
We work alongside your team, write your standards down, and bring back a product tuned to them.
Become a design partner