Claude Code
Agentic Loop
Claude Code is best explained through the agentic loop:
- You enter a prompt into Claude Code.
- Claude gathers the context it needs by interacting with the model, which returns text or a tool call that Claude Code can execute.
- It takes action — for example, editing a file or running a command.
- It verifies the results and determines whether they achieve what your prompt set out to do.
- If they do, Claude finishes and waits for the next prompt. If they don’t, it loops back and tries again until the results are complete and verifiable.
Throughout this loop, you can add context, interrupt, or steer the model to help guide it toward your goal.
![[Pasted image 20260414192844.png]]