← All Claude Code issues

This week in Claude Code · Jun 7, 2026

Claude Dev Weekly: SDK Middleware, Fallback Models, and Agent Control Hardening

Get the next issue in your inbox. Weekly · Free

unsubscribe anytime.

TLDR;

The past week brought a wave of meaningful Claude tooling upgrades. The TypeScript SDK v0.101-v0.102 added a client middleware layer and small Managed Agents type updates, while the Bedrock, Vertex, Foundry, and AWS SDKs followed suit. Claude Code v2.1.166 introduced fallback model chaining, glob-based tool deny rules, and tightened cross-session messaging security. On the agent side, the Claude Agent SDK (TypeScript v0.3.161-v0.3.168, Python v0.2.88-v0.2.93) shipped idempotent initialization, structured refusal stop reasons, runtime MCP server injection fixes, and abort signal propagation in hooks. Claude Opus 4.1 has been formally marked deprecated across cloud SDKs. Upgrade your SDKs now to pick up the middleware and security fixes.

API & Model Updates

TypeScript SDK v0.101.0: Client middleware support lands

  • Released 2026-06-05, this release adds a first-class middleware API to the Anthropic TypeScript client, letting builders intercept and transform requests and responses in the fetch pipeline.
  • A timeout scoping bug was also fixed so request timeouts no longer apply to the outer middleware chain.

Claude Code & CLI

Agent SDK & Managed Agents

MCP Ecosystem

Action Items

Immediate

  • Upgrade the Anthropic TypeScript SDK to v0.102.0 (or the corresponding Bedrock v0.30.1, AWS v0.4.1, Vertex v0.17.0, Foundry v0.3.0 builds) to pick up the middleware-before-signing fix and avoid auth header corruption.
  • Update Claude Agent SDK TypeScript to v0.3.168 and Python to v0.2.93 to get all MCP injection fixes, abort propagation, and idempotent initialize improvements.
  • Update Claude Code to v2.1.168 and review your fallbackModel settings in claude.json to configure up to three ordered fallback models for overload resilience.
  • Audit any tool permission rules that used specific tool names in deny positions and update them to use glob patterns now that v2.1.166 supports wildcards (note: allow rules reject non-MCP globs).
  • If you operate multi-agent pipelines using SendMessage relay, verify that relayed messages are not carrying permission requests, as v2.1.166 now blocks them when received from other Claude sessions.
  • Plan migration away from Claude Opus 4.1: all cloud SDK releases (Bedrock, AWS, Vertex, Foundry) have marked it deprecated.
  • If you use requiredMinimumVersion or requiredMaximumVersion managed settings, ensure all deployed Claude Code instances are within the allowed version range after upgrading to v2.1.163+.
  • If using the Python Agent SDK under Trio, upgrade to v0.2.88 or later to resolve the session_store crash.

All Resources

Every Monday morning

This week in Claude Code

Five minutes, every Monday — the tools, releases and tactics for shipping solo.

unsubscribe anytime.

This week for builders

Five minutes, every Monday — the tools, releases and tactics for shipping solo.

unsubscribe anytime.