Anthropic's own course makes you hand-write the agent loop first
Claude Platform 101 has you build the loop before the SDK's Tool Runner does it for you, which teaches FDEs when to keep it and when to hand it off.
In brief
- Anthropic's Claude Platform 101 has 13 lessons and a quiz, takes about 1.5 hours, and teaches building across the whole Claude Platform from the first API call.
- The course makes you write the agent loop yourself before condensing it with the SDK's Tool Runner.
- For FDEs, the main payoff is knowing when to keep the loop yourself, for instance when a client needs human approval, custom logging or conditional tool execution.
Anthropic sells a service so that customers never have to write an agent loop. Yet its own introductory course, Claude Platform 101, makes learners write that loop by hand first. Only once you understand what the SDK’s Tool Runner does on your behalf are you allowed to use it to shrink the code.
The ordering stands out because it runs against the company’s own sales pitch. In a Claude blog post on June 10, 2026, Anthropic argued that for most organizations, maintaining a harness is a cost that does not differentiate the product. Claude Managed Agents exists to carry that load.
For a Forward Deployed Engineer, the sequence is useful. When building agents for a client, calling the API is the easy part. The harder decision is which parts of the agent can go to the platform and which you must keep. Answering that requires knowing what sits inside the loop.
What the course covers
Claude Platform 101 lives on Claude Academy, at academy.claude.com/courses/claude-platform-101. The course page lists 13 lessons, about 1.5 hours and a quiz.
Its scope is wider than an agents course: the aim is to build across the whole Claude Platform, starting from the first API call, so that Claude becomes part of your product.
The agent loop is only one stage, but for FDEs it is the most valuable one.
Coursera also lists a version provided by Anthropic. According to the Coursera page, the course is free, though running the examples still requires an API key and some prepaid credit. That version carries no certificate, while the Claude Academy page mentions a completion badge.
The two versions also disagree on programming language. Claude Academy says most demos use the Python SDK, with some lessons (four, according to the page) using the TypeScript SDK. Coursera describes the demos as using the TypeScript SDK with Node and npm. Install both SDKs up front to avoid getting stuck halfway.
The loop is just a while loop
Claude’s official documentation explains why the loop exists: the model cannot run your code. With client-side tools, every tool call is a round trip. The model asks, you execute, you report the result, the model carries on. The standard form is a while loop driven by stop_reason.
Thorsten Ball, writing on ampcode.com on April 15, 2025, reduced a coding agent to three things at its core: an LLM, a loop and enough tokens. With a structure that compact, writing it yourself costs little effort. The course wants you to do so first, so that when you switch to Tool Runner you know what it is doing for you.
The biggest benefit is in debugging. Gabriel Anhaia wrote on DEV Community that anyone who can write this loop can debug every framework built on top of it.
As early as late 2024, Anthropic advised starting with the API directly and, if using a framework, understanding the code underneath. When a client’s agent calls the same tool ten times, someone who has written the while loop knows immediately where to look.
Where Tool Runner cannot stand in
Tool Runner, still in beta, handles the loop for you. But its own documentation names three cases for returning to a hand-written loop: when you need human approval (human-in-the-loop), when you need custom logging, or when you need to run tools conditionally.
Take a hypothetical e-commerce company that wants its customer-service agent to issue refunds. Reading orders can run automatically, but the refund command has to pause until a staff member clicks approve, while recording who approved it and when, for the auditors. All three needs arise at once.
Here, the stop_reason check you wrote yourself becomes the place to insert the approval step. The Python sketch below illustrates the idea; MODEL, TOOLS, ask_human, run_tool and log_audit are functions and variables you define for your own project.
import anthropic
client = anthropic.Anthropic()
messages = [{"role": "user", "content": "Refund order 1042"}]
while True:
resp = client.messages.create(model=MODEL, max_tokens=1024, tools=TOOLS, messages=messages)
messages.append({"role": "assistant", "content": resp.content})
if resp.stop_reason != "tool_use":
break # the model needs no more tools: end the loop
results = []
for block in resp.content:
if block.type != "tool_use":
continue
if block.name == "refund" and not ask_human(block.input): # human approval step
output = "A staff member declined the refund"
else:
output = run_tool(block.name, block.input) # conditional tool execution
log_audit(block.name, block.input, output) # custom audit log
results.append({"type": "tool_result", "tool_use_id": block.id, "content": output})
messages.append({"role": "user", "content": results})
The three commented lines are the three cases in which the Tool Runner documentation advises keeping a hand-written loop. Placing them yourself makes clear why this part should not be handed to a prepackaged loop.
Managed Agents is convenient, but no substitute for judgment
Claude Managed Agents, also in beta, goes further than Tool Runner. According to the documentation, instead of building the loop, tool execution and runtime yourself, you get a fully managed environment. If you need a custom loop and fine-grained control, the Messages API remains the option.
The June 10, 2026 blog post draws the line fairly clearly: for agents that need full customization, writing your own loop makes sense. The FDE’s job is to work out which side of that line a client is on.
The refund agent above sits on the hand-written side; an internal lookup agent with no risky actions could go to the platform.
An Anthropic engineering post on April 8, 2026 adds a warning that applies to every harness: it encodes assumptions about what Claude cannot do on its own, and those assumptions can go stale as models improve.
The same holds for a hand-written loop. The code you hand over today should note what it assumes about the model, so whoever takes over knows what to revisit.
Who should take it, and in what order
If you are a software engineer moving into FDE work and have never called the Claude API, follow the course in its intended order. Do not skip the hand-written loop to jump to Tool Runner. Rewrite the loop from scratch at least once without opening the demo.
If you already work as an FDE and have built agents, skim the early lessons, then read the Tool Runner and Managed Agents documentation to grasp the boundary between the two approaches. The whole course takes about 1.5 hours, far less than one debugging session on a client’s agent.
Since the Coursera version carries no certificate, the proof of skill is the code you leave behind. A repo that sets the two approaches side by side, with a README explaining the choice, tells a hiring manager more than a badge.
Anthropic may keep shrinking the share of work you have to write yourself. But when a client asks why the agent stopped at the refund step, the person who can answer is still the one who once wrote that while loop by hand.
Was this article useful?
Thanks for the feedback!
10 sources
- Claude Platform 101
- Claude Platform 101 | Coursera
- How tool use works
- Tool runner (SDK)
- Claude Managed Agents overview
- The evolution of agentic surfaces: building with Claude Managed Agents · 2026-06-10
- Scaling Managed Agents: Decoupling the brain from the hands · 2026-04-08
- Building effective agents · 2024-12-19
- Your First Tool-Calling Agent With No Framework, Just the Bare SDK
- How to Build an Agent · 2025-04-15