◉CLAUDE LABJP
●2.1.302 — Fork subagents are now on by default in claude -p, the Agent SDK and the desktop app. Turn them off with CLAUDE_CODE_FORK_SUBAGENT=0 (10/16)●2.1.299 — Conversations over 200K tokens left idle about 54 minutes get compacted; MCP allow rules now match only the server they name●SONNET 4.5 — Retires on the Claude API on 11/30, 43 days left. Migrate to Sonnet 5.5●WINDOWS — Reports say hooks break silently only on Japanese-locale Windows; check the character encoding first●FAST MODE — Opus 5.5 fast mode is out of research preview and no longer needs the beta header (10/15)●NEW — I Put a Ten-Line Promise File at the To…●2.1.302 — Fork subagents are now on by default in claude -p, the Agent SDK and the desktop app. Turn them off with CLAUDE_CODE_FORK_SUBAGENT=0 (10/16)●2.1.299 — Conversations over 200K tokens left idle about 54 minutes get compacted; MCP allow rules now match only the server they name●SONNET 4.5 — Retires on the Claude API on 11/30, 43 days left. Migrate to Sonnet 5.5●WINDOWS — Reports say hooks break silently only on Japanese-locale Windows; check the character encoding first●FAST MODE — Opus 5.5 fast mode is out of research preview and no longer needs the beta header (10/15)●NEW — I Put a Ten-Line Promise File at the To…
TAG

claude-api

83 articles
← Back to all tags
Related:
production44cost-optimization17tool-use11python8prompt-caching7api-sdk7observability7error-handling6agent6fallback5troubleshooting5rate-limit5
⬡ API & SDK/2026-05-08Intermediate

Type-Safe Claude API Tool Calling with Zod: Patterns for TypeScript Developers

How to implement Claude API tool calling with TypeScript and Zod for full type safety. Covers schema-to-API conversion, runtime validation, and three common pitfalls with practical code examples.

⬡ API & SDK/2026-05-06Advanced

Maximizing Profit Margins with Claude Haiku / Sonnet / Opus Model Switching

A complete implementation guide for dynamically routing Claude API requests to the right model based on task complexity. Includes cost calculation formulas, routing engine code, quality fallback logic, and real-world margin impact data.

⬡ API & SDK/2026-05-06Intermediate

Claude API × Python in Practice: Building an AI Assistant with Tool Calling and Streaming

A practical guide to combining Claude API's Tool Use and Streaming in Python. Build a working AI assistant with real tool execution, complete source code included, plus a breakdown of the tricky parts that trip up most developers.

⬡ API & SDK/2026-05-05Intermediate

Let Claude Diagnose Its Own Tool Errors — Building a Self-Correction Loop with the Anthropic API

Learn how to handle Tool Use failures gracefully by feeding error details back to Claude using the is_error flag, enabling self-diagnosis and automatic retry. Includes working Python code and production antipatterns to avoid.

⬡ API & SDK/2026-05-05Advanced

Building a 'Think-and-Search' AI Agent — Claude API Extended Thinking × Tool Use

A deep dive into combining Claude API Extended Thinking and Tool Use. Covers frequent errors, a complete research agent implementation in Python, plus cost estimation, timeout design, and error recovery for production use.

⬡ API & SDK/2026-05-02Intermediate

Cancelling Claude API Streams the Right Way: AbortController, Token Billing, and Connection Hygiene

I measured 100 cancelled Claude API streams to find out what actually gets billed. The drift numbers, the $18.70/month a missing close handler costs you, the proxy buffering trap, and a ledger that never loses a usage event — Node.js and Python.

⬡ API & SDK/2026-05-02Intermediate

Calling Claude API from iOS Shortcuts: A Personal Setup for Reshaping Selected Text on the Fly

A personal setup guide for invoking the Claude API directly from iOS Shortcuts. Reshape selected text in seconds with a Cloudflare Workers proxy that keeps your API key off the device.

⬡ API & SDK/2026-05-01Intermediate

When Your Claude API Retry Logic Made Rate Limits Worse — The Retry-After Header You Forgot to Read

If 429 errors went up after you added retry logic to your Claude API client, the cause is almost always the same: ignoring the Retry-After header and using exponential backoff without jitter. Here is how to diagnose and fix it.

⬡ API & SDK/2026-04-28Intermediate

Why "The requested model does not exist" Won't Go Away — Claude API Naming and Access Pitfalls

The model_not_found error in the Claude API is almost always a typo or a stale model alias — not a permissions issue. Here are the current model IDs as of April 2026 and a clear order for narrowing down the cause.

⬡ API & SDK/2026-04-28Advanced

Claude API × Inngest — Durable AI Workflows with Retries, Idempotency, and Human Approval

A production-grade pattern for combining Claude API with Inngest. Build TypeScript-first durable AI workflows that retry safely, stay idempotent, gate dangerous calls behind human approval, and run on Vercel or Cloudflare Workers.

⬡ API & SDK/2026-04-28Intermediate

Diagnosing Claude API Prompt Cache Misses — How to Read the usage Field

If your Claude API prompt cache isn't reducing your bill, the usage field is where to start. This guide walks through the five most common reasons cache_read_input_tokens stays at zero and how to fix each one.

⬡ API & SDK/2026-04-27Intermediate

Production Infrastructure for Claude API — 8 Things You Need Between 'It Works' and 'It Holds Up'

There is a much bigger gap than you'd think between a working Claude API call on your laptop and a service that survives real users. Here are the eight pieces of infrastructure I now consider non-negotiable, learned the hard way.