Everything in agentic AI rests on one idea: a model that can use tools and decide its own next step. Get this picture clear and the rest hangs off it.
The difference between 2 and 3 is who drives. With a chatbot you copy an error into the chat, read the suggestion, try it, and paste the next error. With an agent, the model runs the command, reads the error itself, and tries the fix.
Every agent you will ever build, however large, is this loop:
Two details matter and both surprise people. First, the model never runs a tool itself. It only writes a request, and your program (or Claude Code) runs it. You will see this with your own eyes in Module 4. Second, the model has no memory between calls. The loop works because the full history is sent back in every time.
You will hear both words. They are different designs, and choosing between them is most of what people mean by an architect's mindset.
| Workflow | Agent | |
|---|---|---|
| Who decides the steps | You, in code, ahead of time | The model, as it goes |
| Good for | Tasks with the same shape every time | Tasks where the path depends on what is found |
| Cost and speed | Predictable | Varies run to run |
| When it goes wrong | Easy to see which step failed | Needs logs and limits to stay safe |
A good rule to carry in: use the simplest design that works. Reach for an agent when you cannot write the steps down in advance.
| Word | Plain meaning |
|---|---|
| Prompt | Everything you send the model: instructions, context, the question. |
| System prompt | Standing instructions that set the model's role and rules for the whole conversation. |
| Context window | How much text the model can consider at once. Its working memory. |
| Token | The unit models read and bill in. Roughly three quarters of an English word. |
| Tool | A function the model is allowed to ask for, described by a name and its inputs. |
| Agent loop | Think, act, observe, repeat. |
| Human in the loop | A point where the agent must stop and get a person's approval. |
| Guardrail | A check or limit that keeps the agent inside safe bounds. |
| Orchestration | Coordinating several steps or several agents toward one result. |
No task on this page. Before moving on, answer these out loud: