Getting Started with Claude Agent SDK
Published by O'Reilly Media, Inc.
Building production-ready agents with Anthropic’s native framework
What you’ll learn and how you can apply it
- Set up and deploy functional AI agents using Claude's native framework with both Python and TypeScript
- Recognize how Claude agents think, reason, call tools, and respond through the complete agent execution cycle
- Apply todo lists, memory systems, subagents, hooks, and slash commands to create sophisticated, context-aware agents
- Master Claude SDK’s powerful built-in tools, then learn to extend agents further with custom tools and MCP servers
Course description
Create custom agents with Claude Agent SDK, Anthropic's production-ready framework built on the same agent harness that powers Claude Code. The SDK comes with powerful built-in capabilities such as filesystem access, web search, computer use, and automatic context management with compaction, allowing you to focus on your agent’s logic rather than its infrastructure. You’ll explore seamless extensibility through custom tools and Model Context Protocol (MCP) servers, learning when to leverage built-in capabilities versus building domain-specific extensions.
AI engineer Sajal Sharma takes you through the complete agent loop, helping you create agents with both built-in and custom tools, using structured todo lists for task planning, memory systems for context retention, and subagents for task delegation. You’ll learn to extend capabilities through MCP servers, which are key components in Claude’s SDK. In four hours, you’ll be equipped to build AI agents that leverage Claude SDK’s production-ready infrastructure for immediate productivity while autonomously accomplishing complex domain-specific, multistep tasks.
This live event is for you because...
- You’re an AI or ML engineer who’s looking to build production-ready autonomous agents with a framework specifically designed for Claude’s capabilities.
- You’re a software engineer transitioning to AI development, and you want to understand how to build intelligent tool-using agents without the complexity of general-purpose frameworks.
- You’re an application developer who wants to integrate Claude’s agentic capabilities into your products with minimal setup and maximum control.
- You’re an AI researcher or data scientist exploring agentic systems and want hands-on experience with a modern, opinionated agent framework.
Prerequisites
- Python 3.12+ with pip/uv available to install packages
- An active Anthropic API key with access to Claude models
- A code editor (VS Code recommended) and terminal access
- Intermediate knowledge of programming using Python (TypeScript helpful but not required)
- Basic understanding of LLMs and AI agents
- Familiarity with concepts like function calling, tools, and API-based workflows
- Exposure to agent frameworks (helpful but not required)
Recommended preparation:
- Download the course GitHub repository
Recommended follow-up:
- Explore Building AI Agents with LangGraph (on-demand course)
- Read AI Engineering (book)
- Read AI Agents with MCP (early release book)
- Take Building AI Agents with MCP (live online course with Lucas Soares)
Schedule
The time frames are only estimates and may vary according to how the class is progressing.
Introduction to Claude Agent SDK (75 minutes)
- Presentation: Core agentic concepts; framework landscape for building agents; introduction to Claude Agent SDK; production-ready out-of-the-box features; when to choose Claude Agent SDK; single versus streaming response modes; Python versus TypeScript build options
- Hands-on exercises: Create a simple agent with minimal configuration in Python; explore single query versus streaming modes
- Group discussion: What challenges have you faced building agents with various frameworks?
- Q&A
- Break
Deep dive into SDK features (90 minutes)
- Presentation: The Claude agent loop explained; observing and debugging agent reasoning; inspecting message types and tool calls; context management and automatic compaction; query versus continuous conversation modes; built-in tools and their advantages; comparison with implementing similar functionality in other frameworks; advanced features
- Demonstration: The complete agent loop with visible reasoning and tool calling steps
- Hands-on exercises: Create a long-running conversation to observe automatic context compaction; use built-in tools for practical tasks
- Q&A
- Break
Extending capabilities and multi-agent architecture (75 minutes)
- Presentation: When and why to extend beyond built-in tools; building custom tools; extending through Model Context Protocol (MCP); in-process versus external MCP servers; designing effective multi-agent systems; subagent architecture patterns; context isolation strategies; production deployment considerations
- Hands-on exercises: Build and integrate custom tools and MCP servers; build a multi-agent system with specialized subagents
- Q&A
Your Instructor
Sajal Sharma
Sajal Sharma is an AI engineer and technology leader with over eight years of experience in AI/ML, specializing in natural language processing. He works at Menyala, a venture studio in Singapore, where he focuses on building AI-first products and shaping technology strategies. Previously, he led AI initiatives at various consulting and product companies, developing innovative AI solutions across industries. His on-demand course, Building AI Agents with LangGraph, is available on the O’Reilly learning platform. Sajal has delivered a guest lecture at Yale University and has been a mentor for Udacity and the University of Melbourne, where he guided students in machine learning and AI. He holds a master’s degree in information technology from the University of Melbourne.