Skip to content

Claude Code & Agent SDK

One framework. Three surfaces.

Claude Code CLI for interactive work. Claude Agent SDK for production pipelines. Managed Agents for fully hosted sandboxes. The same tools, memory, and subagent system across all three.

Claude Code CLIAgent SDKManaged Agents

Three surfaces

Built-in tools

ToolWhat it doesWhen agents use it
ReadRead files, directories, and contextUnderstanding codebase, ingesting documents
WriteCreate new filesGenerating reports, scaffolding new modules
EditSurgical edits to existing filesBug fixes, config changes, refactoring
BashExecute shell commandsRunning tests, builds, deployments, scripts
Glob · GrepFile pattern matching and content searchFinding relevant files across large repos
WebSearch · WebFetchLive web search and page retrievalResearch, checking API docs, current prices
AgentSpawn a subagent with its own tools and promptParallel work, role-separated agent teams
MCP serversAny tool via Model Context ProtocolDatabases, Slack, Jira, Playwright, custom APIs

Pricing

PlanMonthlyClaude Code access
Pro$20Included — shared pool with chat
Max 5×$1005× usage limit
Max 20×$20020× usage limit
Team Premium$100/seatRequired for Claude Code; 5-seat minimum, billed annually
EnterpriseCustomAll surfaces + SSO + audit logs; tokens billed separately
API (PAYG)$1–$25/MFull cost visibility; no monthly floor; Bedrock/Vertex available
†From June 15, 2026, Agent SDK usage on subscription plans draws from a separate monthly Agent SDK credit — no longer competing with interactive chat usage. Source: claude.com/pricing — May 2026.

When to use

01

Interactive exploration — pair-programming, debugging, cross-file analysis

Use Claude Code CLI — run it in the terminal, VS Code, JetBrains, or claude.ai/code. Ask it to trace logic across a codebase, reproduce a bug and iterate on a fix, or review a regulation document. Sessions persist via CLAUDE.md; the agent reads your project’s conventions at startup and remembers them across sessions.

02

Production pipelines — CI/CD bots, automated analysis, custom applications

Use the Agent SDK — the query() async generator streams agent messages programmatically. Define subagents with their own tool sets (read-only discovery agents + write-owning parent agent = separation of duties). Use PreToolUse/PostToolUse hooks to log every action for audit trails. Deploy on Bedrock or Vertex for data residency requirements.

03

Rapid prototyping with no infrastructure to manage

Use Managed Agents — Anthropic hosts the sandbox; call the REST API and get results back. No environment setup, no binary management. Trade-off: not HIPAA BAA eligible and not Zero Data Retention eligible. For regulated data (maritime ISM records, crew data), use the self-hosted Agent SDK on Bedrock or Vertex instead.

04

Multi-agent orchestration — virtual teams running business operations

Use the Agent SDK with subagents — the agents option accepts an array of AgentDefinition objects, each with its own model, prompt, tool set, effort level, and permission mode. The parent invokes them via the Agent tool. Pattern: discovery/verification subagents get read-only tools; the parent owns all writes. Subagent messages carry parent_tool_use_id for full traceability.

Permission modes

ModeBehaviour
defaultAsks before any file write or command execution
planRead-only — the agent can explore but never write. Safe for discovery subagents
acceptEditsAuto-approves file edits; still asks for shell commands
autoModel classifier decides what to approve automatically
bypassPermissionsNo prompts — agent acts autonomously. Use only in fully isolated environments