The most common "agent" is an letting an LLM run a while loop (“multi-step agent”) [1]

[1] https://huggingface.co/docs/smolagents/conceptual_guides/int...

That's not how Claude Code works (or Gemini, Cursor, or Codex).