A model in a chat window writes the code and hands it to you, and getting it into a file is your job. A coding agent talks to the same model, but it runs the tools the model asks for in your repo by itself.
The agent splits a job into steps, works through them in order and looks at the result of each step before it picks the next. If a test goes red, it fixes the code and runs the test again. The permission settings decide which commands it can run without asking you.
Claude Code is Anthropic's coding agent. In the free program it writes the test first and then the code, following the plan you approved, and every time the one who presses merge is you.