WhoBuilt

Claude Agent SDK

Jan 5, 2026· 1 h 52 min· 155K views·Watch on YouTube

Speaker

Thariq Shihipar of Anthropic explains how to design agents with the Claude Agent SDK at an AI Engineer workshop.

What the Agent SDK provides

Shihipar distinguishes single-model features, structured workflows, and agents that build context and choose actions more autonomously. He says the Agent SDK packages capabilities developed for Claude Code, including tools, file-system access, skills, subagents, compaction, hooks, and memory.

Choosing tools, Bash, and code generation

Shihipar argues that Bash and the file system let agents compose commands, scripts, and existing software without requiring a new tool for every task. He contrasts structured tools, which suit controlled atomic actions such as sending email, with Bash for composable work and code generation for dynamic tasks such as data analysis. For an email agent tallying ride-share expenses, scripts can search messages, extract prices, and make results easier to check.

Designing the agent loop

He recommends repeatedly reading agent transcripts to understand what the system did and where it needs help. His three-part loop is gathering relevant context, taking action, and verifying the result. Verification is strongest when it can be deterministic, such as linting code or checking constraints, and can happen at several points in the process.

Managing context, risk, and state

Shihipar describes subagents as a way to handle substantial work without filling the main agent's context, such as assigning separate spreadsheet sheets for review. He recommends deterministic checks where possible and designing reversible operations or checkpoints for tasks that can damage user data. For large spreadsheets, the agent should search selectively, keep notes, and load more context as needed rather than ingesting everything at once.

Prototyping and deploying an agent

Shihipar recommends prototyping with Claude Code first, using real scripts, APIs, and data to expose domain-specific problems before writing a small Agent SDK application. His workshop example builds a Pokémon agent around PokéAPI, first with API tools and then with scripts and file-system context; it analyzes Pokémon data to suggest a Venusaur team. He describes local installation and sandbox hosting as deployment options, with a sandbox per user in the example.

Takeaways

  • Start agent design with context gathering, action, and verification, then inspect transcripts to find weak points.
  • Use structured tools for atomic actions that need tight control, and Bash or code generation for work that benefits from composition.
  • Build deterministic checks into the loop wherever possible, and add checkpoints when mistakes could alter user data.
  • Keep large data out of the context window; search selectively, save findings, and delegate bounded research to subagents.
  • Prototype against real APIs and data before moving the working approach into a small Agent SDK application.

Mentioned in this talk

Search inside this talk

What was claimed 5

Related talks