A 10-chapter, hands-on tutorial on building your own coding agent with the Anthropic SDK (TypeScript + Bun).
Published with VitePress at https://yagop.github.io/coding-agents-tutorial/. Each chapter is self-contained and ships standalone, runnable examples under examples/NN-slug/. Run any example directly with bun run. See OUTLINE.md for the full chapter plan.
- The Claude SDK and Your First API Request
- Streaming Responses and Message Types
- Handling User Requests: REPL and Telegram Bot
- Context and Conversation Management
- Implementing Tools and Function Calling
- Building Tool Chains and Complex Workflows
- Advanced Agent Patterns
More chapters are tracked as issues and land here as they are written.
bun install
echo 'ANTHROPIC_API_KEY=sk-ant-...' > .env
bun run examples/01-sdk-first-request/hello.ts