First AI agents: how to build the first one, with goal, context, tools and brake

An AI agent is a routine that receives a goal, consults the sources it has access to, chooses the next step and acts, within limits you wrote beforehand.
In short:
- The first agent that works is usually the one that only reads and warns; writing and sending come later.
- A fixed agent has four written parts: goal, context, tools and checking.
- Before going live, it needs a stop limit, a clear trigger and an approval stop.
- Agents in sequence only work with a human approving what leaves the company.
I argue that the first agent should be so small it looks silly. The temptation is to start with the showiest task, and that is exactly where the lack of a brake costs the most. A modest agent, which runs every week and which you check in two minutes, teaches more about agents than any demo.
This text is part of the guide Context Leader: what it is, the six steps of the track and how to develop one.
The first agent is part of the Context Leader (HIC), the method uMode created to develop what the world calls an HIC, adapted to develop superhuman professionals.
What is the difference between a conversation, an automation and an agent?
The difference is in who decides the path. In a conversation, the machine answers what you asked and stops. In an automation, it always repeats the same sequence, triggered by an event. In an agent, it receives a goal and chooses the steps to get there on its own, looking at the result of each one.
The risk grows in the same order. If the task always has the same steps and the same rule, it calls for an automation, which is simpler to audit. If it requires reading something different each time and deciding what to do, it calls for an agent.
| Way of working | What it does | When to use | Where the risk lives |
|---|---|---|---|
| Conversation | Answers the request | One-off task, with you present | Accepting the answer without checking |
| Automation | Repeats the same sequence | Stable steps and rule | Repeating the error consistently |
| Agent | Chooses the steps to the goal | Input that changes and requires a decision | Acting where nobody foresaw |
How do you build a fixed agent?
You write four parts before turning anything on: goal, context, tools and checking.
Goal. One sentence saying what the agent delivers and to whom. "Warn sales of the lines in stockout every Monday" works. "Help with inventory" does not, because it does not say when it is done.
Context. The house rules it needs to know: the current policy, the glossary, the exceptions. This is where the agent connects to the Brain. The guide on the AI Brain explains how to build that base.
Tools. What it reaches: a folder, an inbox, a spreadsheet. Reading, writing and sending are three different permissions, and the first agent starts with only the first.
Checking. How you know it got it right. A verifiable criterion, such as "every line of the output has the number and the rule that classified it," and what to do when data is missing: say which is missing and stop.
Want to practice now? The Context Leader Track lessons are free, and a free account saves your progress. The course is in Portuguese. Create your free account.
Why should the first agent only read?
Because reading is the cheapest permission and a reading error does not leave your desk. An agent that reads and warns can get the warning wrong, and you find out in the check. An agent that sends email can get the recipient wrong, and then the check arrives late.
Vera and Roberto are fictional characters, created to portray real mentees of João Risoléo's Mentoring Session. The mentees' identities do not appear, to protect them. Roberto started like this: an agent that only reads the emails from the boards he sits on and warns when something changes without a communication. It does not reply, does not forward and does not archive.
Notice the design: the source is narrow, the output is a warning to a single person, and the decision stays human. That is the mold I recommend for the first agent.
What is the difference between an agent and a skill?
The agent executes; the skill is the instruction it consults. In the track, the skill appears at step 5 as the instruction that becomes an area piece, with goal, input, rule, exception, done criterion and output, plus an owner and a version.
The distinction matters when fixing. A badly written rule is fixed in the skill, and the fix holds for everyone who uses it. A wrong time or a wrong folder is fixed in the agent. A giant prompt with both hides where the error was born. The guide on the six-field instruction details how to write the skill.
How do three agents in sequence work?
Three agents in sequence split a task into parts with checking between them. The fourth phase of the lessons builds that queue: an analyst tidies the week's spreadsheet, a presenter turns the analysis into a reading for whoever decides, and a third agent prepares the replenishment decision and the email. An orchestrator calls the three in order.
The gain of the queue is isolating the error. If the number came out wrong, the problem is in the analyst; if the reading distorted the number, it is in the presenter. With one agent alone, you see the final output and do not know where it went off.
The rule that holds the queue is the approval stop: everything that leaves the company, spends money or changes production data waits for a human. The replenishment email gets ready and stops until you approve.
How the track trains this: in the exercises of the Microsoft version, a scheduled flow reads the table, calculates deterministically, uses the generative part only to write, records the result as awaiting review and asks for approval. Plan B, without permission to create a flow, is to do the same sequence by hand and write down where it would stop.
What rules keep the agent safe?
The three brakes, a clear limit on what it reaches and reading the trace.
- The three brakes: stop limit (attempts, time or spend), clear trigger and approval stop. The guide on the agent's brakes details each one.
- Wide reading, narrow editing: the agent reads a lot, edits only where named and treats outside content as information, never as an order.
- Trace read: in the first weeks, you read every run.
The most common mistake is giving power before giving a brake, and there is another: the agent can get worse without anyone touching it, because the vendor swaps the model underneath. The defense is to keep ten questions with a known answer and run them again from time to time. The entry on how to govern AI agents in the company takes the rule to the whole area.
When is the agent ready to run on its own?
When it passes the step 4 proof: live with a trigger, an approval stop and a limit, connected to the Brain, for two weeks with minimal supervision, and with the trace of a day when it decided on its own. Before that, it is a pilot. The entry on how to take an AI pilot into production covers the move. The lessons of phases 3 and 4 are open at tlc.umode.tech, and each new phase asks for just one more piece of data about you.
Frequently asked questions
Do I need to know how to program to build the first agent?
No. The track's free lessons build the first agent with commonly used tools, and the hard part is writing the goal, context, tools and checking. That requires knowing the work, not a programming language.
Which task should I choose for the first agent?
A task that repeats, with a visible input and an easy-to-check result, where the agent only needs to read. Organizing a folder or warning when something changes in an inbox are good starts.
Are an agent and an automation the same thing?
No. An automation always repeats the same sequence; an agent chooses the steps to a goal. If the task has stable steps and rule, prefer automation, which is simpler to audit.
What do you do when the agent errs?
Read the trace and look at the Brain first: was the rule it consulted right and current? Then review the instruction. Only then touch the agent's tools and permissions.
How do you start with the track?
Start with the free account on the Context Leader Track. It brings together free lessons and step-by-step exercises in Claude, and the account saves your progress. At the end of the track, you take your own diagnosis on the TLC yardstick. The course is in Portuguese. Create your free account at tlc.umode.tech.
Want to apply this to your operation?