Tooling & Frameworks

The ladder from writing your own agent loop to a fully managed one — SDKs, frameworks, MCP, and deployment.

Expands the “build vs. buy” note from The agent harness. You rarely build an agent from scratch — there’s a ladder from write everything to a provider runs it for you.

Four ways to build an agent

ApproachYou writeHarness & hostingReach for it when
Manual loopthe reason → act → observe loop yourselfyou build + you hostyou want total control, no dependency
SDK tool runnerjust your tool functionsSDK runs the loop; you hosta custom-tool agent without hand-writing the loop
Agent SDKa prompt + configSDK is a full harness with built-in tools; you hosta batteries-included coding / file agent on your infra
Managed serviceagent config + tool resultsprovider runs the loop and hosts a sandboxyou want no infra: hosted, stateful, scheduled

Concrete examples: the Anthropic API SDK’s Tool Runner (client.beta.messages.tool_runner) is a tool runner; the Claude Agent SDK is an Agent SDK (Claude Code packaged as a library); Anthropic Managed Agents is a managed service.

Don’t confuse: Tool Runner vs. Agent SDK

They sound alike but differ:

  • A tool runner is part of the model API’s SDK. It loops over tools you define — no built-in tools, no filesystem, you host the compute.
  • An Agent SDK (e.g. the Claude Agent SDK) is a full agent harness with built-in tools (read, write, edit, bash, search), context management, and subagents.

Agent frameworks

LangGraph and the Microsoft Agent Framework (MAF) are provider-agnostic orchestration libraries — you compose steps, state, and multi-agent flows, and can swap the underlying model. Use one when you want portable orchestration across models and tools rather than one vendor’s agent.

MCP servers

Whatever you build on, MCP lets it connect to tools and data through a standard interface — connect to an existing MCP server instead of hand-wiring each integration. Most SDKs and managed services can use MCP servers.

Deployment

  • Self-host — you run the loop in your own server / container and own scaling, retries, and state.
  • Managed — the provider hosts the loop and a per-session sandbox, and can run agents on a schedule.

How to choose

flowchart TD
    Start[Need an agent] --> Q1{Want a provider to host it?}
    Q1 -->|yes| Managed[Managed service]
    Q1 -->|no| Q2{Need a batteries-included coding / file agent?}
    Q2 -->|yes| SDK[Agent SDK]
    Q2 -->|no| Q3{Just custom tools, minimal code?}
    Q3 -->|yes| TR[SDK tool runner]
    Q3 -->|no| Manual[Manual loop]

Prefer the simplest option that fits — most custom-tool agents are a tool runner. Reach for a framework or a managed service only when you need what it adds.

Sources