What is an agent, really? One agent, four organs, switch one off and watch it break.
Foundation Track 02. The zoom-in on a single agent. An agent is not a model: it's a model wired to three more things. This repo makes that concrete with runnable code and an interactive toggle demo.
An agent = brain (LLM) + hands (tools) + memory + loop. Take any one away and it collapses into something simpler, usually a plain chatbot. This repo makes that concrete by running the same three-turn conversation with each combination of organs.
The fastest way to understand what an organ does is to remove it:
node ablations/no-memory.js # forgets your name → continuity dies node ablations/no-tools.js # can only talk, can't act → agency dies node ablations/no-loop.js # freezes mid-tool-use → it's a chatbot
# organs added one at a time node parts/1-the-brain/demo.js node parts/2-the-memory/demo.js node parts/3-the-hands/demo.js node parts/4-the-loop/demo.js # the complete agent node full-agent/agent.js # real model (Ollama): LLM_MOCK=0 node full-agent/agent.js
GLOSSARY.md in the repo settles the words people use interchangeably: chatbot vs. assistant vs. agent vs. workflow vs. swarm. One test that cuts through all of it: “Does the system decide its own next step at runtime, and can it take more than one?” If yes → agent. If a human wrote the steps → workflow. If it answers once and stops → chatbot.
This is the zoom-in on rung 03 of AI Systems Evolution. Once you understand the atom, the team (rung 04) and swarm (rung 05) are just compositions of it. For five production-grade runnable agent systems built on these principles, see Agentic Systems.