A Long Non-Streaming Response Was Billed Twice Past the 10-Minute Wall: Redesigning the SDK's Default Timeout and Retries
The Anthropic SDK's default 10-minute timeout and two automatic retries can silently re-run a long non-streaming response and bill you twice. Here is how the trap works, and how to close it with streaming, explicit timeout/max_retries, and a small local ledger — with measured before/after numbers.
7 Design Principles for Production-Grade Autonomous Agents with Claude Code SDK
Building a Claude Code SDK agent that works is easy. Building one that keeps working in production is hard. Here are the 7 design principles I extracted from running content automation systems at scale.
7 Common Errors When Getting Started with Claude API in Python (With Fixes)
A practical troubleshooting guide covering the 7 most common errors Python developers hit when starting with the Claude API SDK — from AuthenticationError and RateLimitError to response parsing mistakes and streaming pitfalls.
Building a Custom Autonomous Agent Loop with Claude Code SDK — Beyond the CLI
Understand the internals of the Claude Code SDK and build custom autonomous agent loops in Python and TypeScript. Covers tool permissions, error recovery, and streaming, plus the cost instrumentation and monthly model audits I rely on in real operation.
Claude API × Kotlin Multiplatform — Building Production AI Features for iOS and Android
Integrating Claude API with Kotlin Multiplatform (KMP) to ship production-quality AI assistant features on iOS and Android. Streaming, error handling, retry strategies, and testing — written from a personal app developer's production experience.
Building Automated Agentic Loops with Claude SDK Tool Runner
Learn how to use Claude SDK's Tool Runner and Tool Helpers to build automated tool-calling loops (agentic loops) with practical code examples in Python and TypeScript.
Claude API Error Handling and Retry Strategies
Learn about Claude API error codes, retry strategies, and rate limit handling. Best practices for building robust API integrations in production.
Claude API Quickstart — Your First API Call in 5 Minutes
Get started with the Claude API. From obtaining your API key to making your first request with Python and TypeScript SDKs — a 5-minute quickstart guide.