Who Owns the Loop
Manual loop vs the SDK Tool Runner vs Managed Agents vs the Claude Agent SDK — separated by who supplies the agent harness and who supplies the deployment.
Last updated
After this section you can
- Separate who supplies the agent harness from who supplies the deployment, and place all four options on those axes
- Tell the Tool Runner apart from the Claude Agent SDK, and pick the right one instead of substituting either
- Reach for the manual loop only when per-turn hooks genuinely cannot express your control flow
Who Owns the Loop
Four ways to build an agent on Claude, and the two questions that actually separate them. Nearly every mix-up here comes from treating “SDK” as one thing.
Two independent questions decide which option you want. Who supplies the harness — the agent loop and its context management? And who supplies the deployment — the machine the tools actually run on? Three of the four options answer “you” to the second question. Only one hands over both.