This directory contains 22 comprehensive examples demonstrating all features of the Claude Agent SDK for Rust. Each example is fully documented and runnable.
# Run any example
cargo run --example <name>
# For example
cargo run --example 01_hello_worldBasic SDK usage and fundamentals.
Permissions, hooks, and dynamic control.
Custom in-process tools.
Configuration options and customization.
Comprehensive patterns for common use cases.
Production-ready features.
Custom plugin loading and integration.
Beginner: 01, 02, 06 Intermediate: 04, 05, 08 Advanced: 14, 15, 16 Production: 17, 18, 21
For full details, see individual example files.