Developer builds a minimal agent by hand-writing an agentic loop with Anthropic's Claude API
11/29/2026
A developer hand-writes an agentic loop with the Anthropic Claude API to build a minimal agent.
Background
The Claude API (Messages API) lets a program send requests and tool descriptions to a Claude model, and the model decides server-side whether to call a tool. This tutorial is for developers who want to understand the loop inside an agent.