FastAPI + Claude API: Production Streaming API — SSE & Retry
A production FastAPI streaming guide with Anthropic SDK. SSE endpoints, exponential backoff retry, error classification, and Docker deployment covered.
archive
356 · Page 10
A production FastAPI streaming guide with Anthropic SDK. SSE endpoints, exponential backoff retry, error classification, and Docker deployment covered.
Automate with Claude Code: slash commands for tasks, hooks for event triggers, subagents for delegation. A 3-step workflow guide using a real blog system.
anthropic 0.100.0 vs openai 2.36.0, installed side by side: 408 vs 230 exported types, input_schema vs function.parameters, and which SDK really fits your work.
OpenAI Codex became cloud-agent-only in April 2026. Architecture, benchmarks, cost, and workflow fit vs Claude Code — a clear May 2026 verdict for engineering teams.
uv 0.11, the Rust-based Python package manager, installs 16 packages with anthropic in 0.874 seconds. Set up a Claude SDK project, pin versions, run CI/CD.
Gemini 2.5 Flash API: 4 cost-cutting techniques from direct experiments. Thinking tokens, Context Caching, Flash-Lite, Batch API. Real data proves 99% savings.
Upload documents once with Anthropic Files API and reuse across requests. Python SDK batch code, prompt-caching cost tradeoffs, and file_id management.
Google ADK vs LangGraph in 2026: sandbox comparison of code, deps, state management, branching, and CLI. Pick the right AI agent framework for your use case.
Run Langfuse v3 on your own infrastructure with Docker Compose: Python SDK 4.x instrumentation, RAG tracing, cost dashboards, and no cloud vendor lock-in.
On April 4, 2026, Anthropic blocked Claude Pro/Max subscriptions from powering third-party agent tools. Add the Fast Mode 6x price multiplier, and this is a structural overhaul worth running the numbers on.
Claude Opus 4.7 (April 16) and Managed Agents beta (April 8) landed in the same month. Benchmarks are record-breaking but the community reaction is split.
Automate PR reviews with GitHub Actions and Claude Code CLI. Covers --bare, --dangerously-skip-permissions, and --max-budget-usd flags for safe CI execution, with complete YAML workflow examples.