CLAUDE LABJP
OPUS48 — The default model on Bedrock, Vertex, and AWS is now Claude Opus 4.8. Opus 4.8 and Haiku 4.5 are also in the Messages API, with prompt caching and extended thinkingSTREAM — A Claude Code stability and quality update landed: subagent text over stream-json, stronger permission and hook handling, and better background-agent reportingFASTEND — Fast mode for Claude Opus 4.7 is removed on July 24. After that, speed: 'fast' returns an error, so migrate to fast mode on Opus 4.8TEACH — Claude for Teachers is here, giving verified US K-12 educators free premium access, plus curriculum connections aligned to standards in all 50 states and new education connectorsFIX — The update fixes issues across Chrome, Windows, Bedrock, Vertex, hooks, and session recovery, and speeds up terminal renderingIPO — Bankers are reportedly lining up investor meetings for Anthropic ahead of a possible public listing as soon as OctoberOPUS48 — The default model on Bedrock, Vertex, and AWS is now Claude Opus 4.8. Opus 4.8 and Haiku 4.5 are also in the Messages API, with prompt caching and extended thinkingSTREAM — A Claude Code stability and quality update landed: subagent text over stream-json, stronger permission and hook handling, and better background-agent reportingFASTEND — Fast mode for Claude Opus 4.7 is removed on July 24. After that, speed: 'fast' returns an error, so migrate to fast mode on Opus 4.8TEACH — Claude for Teachers is here, giving verified US K-12 educators free premium access, plus curriculum connections aligned to standards in all 50 states and new education connectorsFIX — The update fixes issues across Chrome, Windows, Bedrock, Vertex, hooks, and session recovery, and speeds up terminal renderingIPO — Bankers are reportedly lining up investor meetings for Anthropic ahead of a possible public listing as soon as October
TAG

claude-api

81 articles
Back to all tags
Related:
production44cost-optimization16tool-use11python8observability7api-sdk7agent6prompt-caching6error-handling6rate-limit5fallback5resilience5
API & SDK/2026-06-24Advanced

My Morning Batch Was Missing the Prompt Cache Every Time — Warming Cadence and the Break-Even Math for the 1-Hour TTL

Jobs that run a few hours apart cold-miss the prompt cache even with a 1-hour TTL. Here is how to back out the right warming interval from the TTL, and how to write the break-even formula that decides whether warming pays off — with numbers from a four-site daily generation pipeline.

API & SDK/2026-06-22Advanced

Claude API Streaming Breaks the "Everything Arrives" Assumption — Field Notes on Recovering from Partial Failure

Once concurrency climbs, Claude API streams disconnect mid-response, replay events, and emit half-finished tool arguments. Treating partial failure as the norm rather than an anomaly, here is how I rebuilt the implementation and monitoring to recover quietly.

API & SDK/2026-06-21Advanced

Surviving the 90-Second Code Execution Cell Limit with Checkpointed Chunking

Claude's code execution tool now enforces a 90-second per-cell limit. Here is how to keep a long batch from getting cut off there: persist progress to the container filesystem and resume across cells, with working code for timing, idempotent checkpoints, and knowing when to offload.

API & SDK/2026-06-21Advanced

Don't Carry Search Results Twice: Trimming Consumed Blocks with response_inclusion

When an agent runs dynamic filtering, output tokens balloon because the raw search-result blocks a code execution call already consumed get echoed back into the response. Here is when response_inclusion: excluded is safe to use, when you must keep full, with implementation and a decision table.

API & SDK/2026-06-19Advanced

When Your Claude × Playwright Browser Agent Fails While Reporting Success — Verifying Actions and Catching UI Drift

A vision-driven Claude + Playwright browser agent fails quietly: it reports success while nothing actually changed. Here is how to stop trusting self-reports, verify each action against the goal, and detect UI drift before it breaks you.

API & SDK/2026-06-18Advanced

When Your Claude API Response Cache Returns Stale Answers and Near-Miss Wrong Ones — Field Notes on Freshness and False-Hit Suppression

A Claude API response cache improves latency and cost immediately, but the problems that hurt in production are not average hit rate — they are stale hits and semantic false hits. Here is the key design, freshness management, false-hit suppression, and observability that keep a cache honest.

API & SDK/2026-06-16Advanced

PII Masking for Claude API Lives or Dies on the Ledger — Restore, Encrypt, Measure

The hard part of masking PII before Claude API isn't detection — it's operating the token ledger you restore from. Encrypted storage, multi-instance sharing, and a daily leak-rate loop, with working code.

API & SDK/2026-06-15Advanced

When a Model Disappears Without Warning: A State Machine for Retirement, Withdrawal, and Overload

A model can become unusable in hours for reasons that have nothing to do with a technical outage. This guide models three distinct flavors of 'unavailable'—retirement, withdrawal, and transient overload—as one availability state machine, with a router that keeps automated pipelines running. Working TypeScript and Python included.

API & SDK/2026-06-13Intermediate

Managed Agents Adds Scheduled Deploys, a Vault, and Session Webhooks — Deciding What Leaves My Cron Setup

Scheduled deploys, vault credentials, and session-thread webhooks just landed in Claude Managed Agents. How I triaged my self-hosted cron jobs: what moves, what stays, and why idempotency decides.

API & SDK/2026-06-12Intermediate

Handing Monthly Revenue CSVs to the Claude API Code Execution Tool — Files API Wiring, Container Reuse, and Billing Traps

How I moved monthly revenue-CSV reconciliation for four apps into the Claude API Code Execution tool — Files API integration, container reuse, the 5-minute billing minimum, and the file-preload charge that surprises almost everyone.

API & SDK/2026-06-03Advanced

An Anti-Corruption Layer for Claude API Models — Keeping Generation Changes Out of Your Business Logic

Hard-coding model strings into business logic means production breaks quietly every time a generation is retired. Here is an anti-corruption layer that separates logical roles from physical model IDs, with working TypeScript and Python, migration costs, and the judgment calls behind it.

API & SDK/2026-05-29Intermediate

Diagnosing invalid_request_error When You Pass an Image URL to the Claude API

When the Claude API rejects an image you passed via `source.type: url`, the root cause almost always lives in one of four buckets: scheme, MIME, size, or reachability. Here is the diagnostic order I use in production.