In short
- Pizza rule: a chatbot gives you the recipe. An agent goes into the kitchen and cooks.
- An answer to read: a chatbot is enough. Work in your files or apps, step by step: use an agent.
- Fresh facts like today's weather: a chatbot with a search tool is enough.
- Start with chat. If you keep copying and pasting between steps, try an agent, but it costs more tokens and needs access.
The recipe or the cooking
Picture a pizza. A chatbot is like a friend who tells you the recipe: clear steps, but you do the cooking. An agent is like a cook who walks into your kitchen, uses your oven and makes the pizza.
Both are useful. The question is only which one the task needs.
The rule
- You want an answer to read (an explanation, a draft, an idea): a chatbot is enough.
- The work must happen in your files or apps, in several steps: use an agent.
5 real tasks, sorted
- Explain what an API key is: chat. You just need an explanation.
- Make my email friendlier: chat. You paste the text, read the new version and send it yourself.
- Today's weather in Paris: chat with a search tool. The model needs fresh data, so it calls a tool, but you still just read the answer.
- Fix a failing test in my code: agent. It must read the files, edit the code, run the test and check the result.
- Update one library in every file: agent. Many files, many edits, and a check at the end.
Why the failing test needs an agent
A chatbot can suggest a fix, but you would have to copy the code in, copy the fix back, run the test, copy the error in again, and repeat. An agent like Claude Code does that loop itself: it reads your codebase, edits files and runs commands, then checks whether the test passes.
That is the difference: the agent does the steps between the answers.
A simple habit
Start with chat. It is fast, cheap and you stay in control. If you notice you keep copying and pasting between steps, that is the sign an agent could help.
But an agent costs more tokens, because each step sends the conversation again, and it needs access to your files or apps. Give it only the access the task needs.
Test yourself
5 quick questions. Pick an answer to check it.
Sources
- Claude API docs: Tool use overview (client tools and server tools such as web search)
- Claude Code docs: Overview (reads your codebase, edits files, runs commands)
Checked November 23, 2026.