Agent
An AI agent is a program built on an artificial intelligence model that doesn't stop at written answers: it carries out the steps of a task on its own, reading files, running commands, making changes and checking the result. It works in a loop of gathering information, acting and verifying, repeating until the job is done. Claude Code is a coding agent because it has tools that let it act inside your project.
An artificial intelligence program that doesn’t just answer, but also takes steps by itself: it reads files, runs commands, makes changes. You give it the task, and it sees it through.
How it shows up in Claude Code
A regular chat gives you text that you apply yourself. Claude Code, as an agent, does the work: it opens files, writes code, runs the tests, reads the errors and tries again. Every action is a tool, and each tool's result decides the next step. You can step in at any moment to redirect it, and risky actions go through your permissions first.
An agent can also launch other agents: subagents take one piece of the task and return only their conclusion.
Example
You tell Claude Code:
The contact form tests are failing. Find out why and fix it, then run the tests again.
The agent reads the test, finds the form's code, runs the tests, sees the error, changes the code and runs them again until they pass. You see every step and approve whatever needs your permission.
Common mistakes
- Treating it like a chat and copying code out of the answer yourself. Let it make the changes, then review them.
- Not giving it a way to check its work. An agent does better with a clear test: a test suite, a command, a screenshot.
- Giving it access to everything on day one. Start with tight permissions and widen them as you build trust.
Related terms and where you learn it
Anthropic's best-known coding agent is Claude Code. What you tell it is a prompt, and its tools can be extended with MCP. The idea of an agent comes up from the lesson “What is Claude Code?” in the free module 00 · Installation and first steps.
Source: Claude Code docs: Glossary
How it appears in the course
It’s an agent (an assistant that receives a task, makes its own plan and carries out the steps one by one). You say what you want; it works out how and does it.
What is Claude Code? · Module 00, Installation and first steps · free
Claude is an agent: it takes steps on its own. With Shift+Tab you choose whether it asks you before it changes anything.
Key takeaways · Module 00, Installation and first steps · free
Now it only reminds you to ask Claude or to edit the .claude/agents/ folder directly.
How do you make your own subagent? · Module 06, Subagents: separate helpers
Learn Claude Code from zero, in plain English
12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.