Most agent projects start the same way: the strongest model, a long prompt and a great demo. Then real work shows up, and within a week you get numbers that don’t match the source, lost context and, one day, a client email nobody approved.
The reflex is to switch models or rewrite the prompt. It rarely helps, because the model was never the problem. It’s one layer out of seven. Think of the agent as a new hire: a brilliant person with no onboarding, no logins, no notebook, no process and no review still fails, because nobody built the job around them.
1. Model: hire the brain
The engine that reads, plans and decides the next step. The right order: build your tests, hit the target with the most capable model, and only then move simple steps to smaller models, as long as they still pass.
- Split the job into steps (classify, extract, analyze, write).
- Build a sheet with 20 real past tasks, ugly ones included: input, expected output and pass criteria.
- Swap the model for one step at a time and rerun all 20. Keep the swap only if the pass rate holds.
2. Instructions: write the onboarding doc
Everything the model sees before it acts: role, rules, examples and the facts of the task. More context isn’t better context; the right context is. And you already have the onboarding doc: the procedures your team follows today are the starting point.
Procedure into instructions
You are writing instructions for an AI agent that will do this job. Below is the procedure our team follows today. Rewrite it as numbered steps. Rules: 1. Every step is one specific action or output. 2. Name the tool or data source used in each step. 3. List the edge cases and what to do in each one. 4. Add 2 or 3 short examples of a correct result. 5. Mark every step that sends, pays, deletes or publishes as "REQUIRES HUMAN APPROVAL". 6. If information is missing, the agent asks. It never guesses. Procedure: [paste here]
3. Tools: hand over the keys
Without tools, the agent gives advice. With tools, it does the work. A well-described tool pays off more than a polished prompt.
- List every system the job touches and mark each action as read or write.
- Give the agent its own scoped credentials, never an admin login.
- A clear name, a description of when to use it, and strict inputs (IDs, fixed dates).
If someone on your team can’t say which tool to use in a given situation, the agent won’t either.
4. Memory: give it a notebook
The context window is the desk; memory is the filing cabinet. The agent reads a notes file before it starts and, at the end, writes down only what will matter next time: a decision and why, a correction, a step that failed and the fix. One line per note, no passwords or personal data, and a cleanup every week.
5. Loop: set the work rhythm
An agent is a loop with a stop sign: act, check the result, decide, stop. Before building a team of agents, get everything you can out of one.
- Write down when to stop: task done, unfixable error, or an action that needs approval.
- Cap the number of turns and trace every step, because small errors compound.
- Recurring work goes on a schedule, and the first run is a dry run that publishes nothing.
6. Review: evals and guardrails
Evals tell you whether the agent is good; guardrails stop it when it isn’t. Rerun the 20 tasks after every change, and work in a sandbox: test database, read-only keys, no production credentials.
A quick risk check: private data + outside content + a way to send things out = a data-leak risk. That workflow sends nothing without a person in the loop.
An instruction is a wish. A permission boundary is a guardrail.
7. Approval: keep the final yes
The agent drafts; a person signs. Every tool gets a risk tier:
| Tier | How it runs | Examples |
|---|---|---|
| Low | On its own | read, summarize, classify, draft |
| Medium | On its own, leaving a trail | update a record, post to an internal channel |
| High | Only after a yes | send to a client, delete, publish, pay or buy |
An action only moves down a tier after dozens of approvals with no edits. Autonomy is earned per action, not granted per agent.
How BossaMotion builds all seven layers
This is exactly the work we do inside our clients’ operations. Our AI Analyst finds the tasks that repeat and builds the tests from real cases. Our FDE works inside the operation and builds the agent across all seven layers, with no model lock-in. And side-by-side coaching teaches the team to review, approve and turn corrections into rules. Areas and use cases are examples, not a closed list: if a task repeats, it can be automated.
Your first step, today: list 3 actions you’d never let a new hire take unsupervised, and make each one require a yes. Want help with the rest? See how we work.
Enjoyed this article?
Get the next one before it hits the blog.
A short email per issue with what actually matters about AI agents at work. No spam.