Agent vs Bot: What Is the Difference?
Many people cannot tell Agent and Bot apart.
It takes one sentence: an Agent is a freelance contractor called in for a one-off job, a Bot is a full-time employee you actually hired.
The contractor: you brief them from scratch every time
When a temp worker shows up, you have to explain how the place works, where the tools are and what must not be touched. When they leave, everything they learned leaves with them. Next time a different stranger shows up, and you brief them all over again.
That is exactly what an Agent Session is: a one-shot process. Parameters and context are stuffed in right before execution, the process exits when it is done, all memory is released. Nothing of this run survives into the next one.
The employee: they arrive with a mission
A Bot has its role defined at the moment it is created. Think of day one at the office: the desk, the badge, the keys, the permissions and the responsibilities are all set up, and it comes into the world already carrying its own mission.
Every time you come back, it only handles the task of the day. The meeting ends with that conversation — its people, its responsibilities and its growing understanding of you all remain.
A Session is clocking in, not quitting
Opening a Session on a Bot is like your employee clocking in for work. Leaving the office at the end of the day is not the same as quitting.
So a Bot is not "a smarter Session". It is a different kind of thing: it runs the same kind of task over and over, and each round leaves behind more memory and more skill, so it can evolve.
It all comes down to who owns the state
| Agent Session | Bot | |
|---|---|---|
| Runtime | A one-shot process, parameters stuffed in on demand | A resident service with a config file, persistent storage and permissions |
| Context | Prepared on the fly through Context before execution | The execution environment is set up once and reused |
| Mission | Passed through Context again every time a Session starts | Assigned at creation, and never lost |
| When it ends | The process exits, all memory is released: a one-off task | Only the current conversation is released; the mission and the task remain |
| Accumulation | None | Memory and skills keep building up across Sessions |
An Agent Session is a one-shot process with parameters stuffed in on demand. A Bot is a resident service that is always ready to take a task, with data continuously written to the database.
A Bot has its own desk
Its own memory, permissions, skills and MCP settings, plus its own working directory — this is the Bot's execution environment, not something assembled on the fly for each conversation.
For exactly that reason, a Bot is assigned its mission when it is created. There is no need to pass it through Context again every time you open a Session on it.
When a Session finishes, only the information of the current conversation is released. The mission and the task are still there, and memory and skill keep accumulating as Session after Session runs.
Being fair about it: Bot is a commercial packaging concept
Packaging "long-term execution + memory accumulation + independent permissions" into a product form is what a Bot is. Under the hood it is still the Agent execution capability doing the work, and the only real difference is who owns the state.
- The state belongs to this one execution → that is a Session
- The state belongs to this identity → that is a Bot
So do not judge something by its name. Two questions are enough:
- After switching to another Session, are the mission and the configuration still there?
- When doing the same kind of task for the second and third time, is it more skilled than the first time?
If neither holds, it is most likely an Agent Session wearing a Bot costume.
Which one to pick
- A one-off task, done is done → an Agent Session is enough
- The same kind of task, repeated, getting better each round → a Bot
- Long-running automation that needs to stay alive → a Bot
- Just asking a few questions and exploring → an Agent Session, do not over-engineer
Ultimately, an Agent Session is a one-off task and a Bot is an evolvable resident employee. The value of a Bot is not that it is "smarter", but that the state belongs to a different owner.
Related Posts
- ChatGPT, Work and Codex in One Minute--- title: 'ChatGPT, Work and Codex in One Minute' createTime: 2026-10-18 20:45…AI2026-10-18
- How to Write Custom Middleware in FastAPI--- title: How to Write Custom Middleware in FastAPI createTime: 2024-10-31 18:3…FastAPI2024-10-31
- ContextVar: Context Management for Async Programming--- title: 'ContextVar: Context Management for Async Programming' createTime: 20…Python2025-10-13
- Claude Agentic Ecosystem Guide--- title: Claude Agentic Ecosystem Guide createTime: 2026-1-14 13:30 sticky: tr…AI2026-01-14
Changelog
8049d-update docson
