Source: raw/anthropic-watch-claude-code-tag-v2-1-{140,141,142,143}.md (release notes), raw/anthropic-watch-anthropic-sdk-python-tag-v0-102-0.md + raw/anthropic-watch-anthropic-sdk-typescript-tag-sdk-v0-96-0.md (SDK releases), four anthropics/claude-cookbooks commits (a0902061, e7b800d4, 96442914, b5b727b7 — CMA Sessions API MCP server + Linear stateless webhook bridge), raw/reddit-1tc9oa0.md (Claude Code weekly limits +50%, ClaudeOfficial 754 score), raw/reddit-1tcetsd.md (--print → SDK credit split June 15, 452 score / 211 comments), raw/reddit-1td4dl1.md (Extended Thinking deprecation r/ClaudeAI 211 score), raw/reddit-1td8oku.md (Sonnet→Opus silent routing bug r/Anthropic 11 score), YouTube transcripts on the dethroning-and-counter-promo arc, the /goal deep-dive, and Sigrid Jin’s harness-vs-context portability framing on the +50% news

Week 21 is the commercial-model + business-adoption inflection: Anthropic passes OpenAI in business adoption for the first time (per the same week’s industry data), Claude Code weekly limits jump +50% through July 13, and claude --print flips from CLI-credit usage to SDK-credit programmatic billing on June 15. On the engineering side, v2.1.140 + v2.1.141 + v2.1.142 + v2.1.143 ship hook desktop-notification surfaces, workspace-federation auth, agent-view CWD scoping, the Rewind menu’s “Summarize up to here,” background-session daemon fixes (macOS clock-jump handling, post-upgrade daemon exit, worktree re-recognition), eight new claude agents configuration flags, a Fast-mode default flip from Opus 4.6 → Opus 4.7, plugin dependency enforcement with transitive enable/disable + projected per-turn token cost in the /plugin marketplace browse pane, worktree.bgIsolation: "none" for in-place background editing, PowerShell -ExecutionPolicy Bypass default (on by default for Bedrock/Vertex/Foundry), and a stop-hook infinite-loop guard (8-block cap, CLAUDE_CODE_STOP_HOOK_BLOCK_CAP override); Python SDK v0.102.0 + TS sdk-v0.96.0 add the BetaManagedAgentsSearchResultBlock types and cache-diagnostics beta; the cookbook ships the first CMA Sessions API as MCP server + Linear stateless webhook bridge template — Managed Agents now has an off-the-shelf MCP integration surface and a no-SSE/no-DB webhook-bridge pattern; and on the model surface, manual extended-thinking configuration is deprecated — thinking: {type: "enabled", budget_tokens: N} now returns 400 on Opus 4.7 and is sunset-tracked on Opus 4.6 / Sonnet 4.6. Cross-cutting refreshes for v2.1.143 also landed in hooks.md, plugins-and-marketplaces.md, and cli-reference.md.

Headline changes

Claude Code v2.1.143 (May 15)

Sources: raw/anthropic-watch-claude-code-tag-v2-1-143.md (tagged 2026-05-15T22:28:22Z, author ashwin-ant) + ai-research/claude-code-docs-changelog-2026-05-15.md (claude.com/docs/en/release-notes changelog delta, fetched 2026-05-15).

  • Plugin dependency enforcement. claude plugin disable now refuses when another enabled plugin depends on the target — emits a copy-pasteable disable-chain hint so the user can decide whether to walk the whole chain. claude plugin enable force-enables transitive dependencies automatically. Closes the “I disabled plugin X and three other plugins silently broke” footgun. See Plugins and Marketplaces.
  • Projected context cost in /plugin marketplace browse pane. Per-turn and per-invocation token estimates shown inline while browsing. Pairs with the v2.1.139 claude plugin details projected per-session cost — the marketplace surface now answers “what does this plugin cost in context?” before install rather than after.
  • worktree.bgIsolation: "none" setting. Lets background sessions edit the working copy directly without EnterWorktree — for repos where worktrees are impractical (large checkouts, monorepos with symlink-heavy configs, build-system constraints, untracked-file-heavy projects, shared workstation setups). Companion to v2.1.142’s pre-existing-worktree recognition fix. Trade-off: background sessions lose the isolation guarantee EnterWorktree provides. See superpowers:using-git-worktrees and agent-teams.
  • PowerShell tool defaults to -ExecutionPolicy Bypass when invoking scripts. Opt-out: set CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY=1. Closes the “PowerShell tool keeps failing on locked-down Windows machines” pattern; the opt-out preserves enterprise policy enforcement for orgs that need it. PowerShell is also now enabled by default for Windows users on Bedrock, Vertex, and Foundry (opt out with CLAUDE_CODE_USE_POWERSHELL_TOOL=0).
  • Background sessions preserve model + effort level after waking from idle. Previously the model/effort silently snapped back to the parent’s defaults after a long sleep. Important for the Routines / long-running-agent patterns.
  • /bg preserves --mcp-config, --settings, --add-dir, --plugin-dir, --strict-mcp-config, --fallback-model, --allow-dangerously-skip-permissions across respawn. Previously these flags were lost on background dispatch — backgrounded workers now degrade to the fallback model on overload (instead of hard-failing) and keep bypass-permissions available in their permission cycle. claude agents now applies the same flags to the dashboard and to dispatched background sessions.
  • Background sessions honor permissions.defaultMode from settings.json — previously overridden to auto mode on dispatch from claude agents. Now respects the configured default.
  • Shift+Tab in attached agent sessions includes auto mode in the cycle. Auto mode is now a first-class cycle target alongside plan / accept-edits / etc. Companion to the W19 settings.autoMode.hard_deny and the v2.1.141 “auto mode permission dialog explains the rule” improvements — auto mode is being normalized into the same status as the other interaction modes.
  • Worktree cleanup no longer rm -rf fallback. git worktree remove failure no longer escalates to rm -rf, preventing loss of gitignored or in-progress files.
  • macOS Full Disk Access errors fixed for background jobs under ~/Documents, ~/Desktop, ~/Downloads.
  • Fix: corrupt .credentials.json with a non-array scopes value no longer hangs the CLI on startup or silently aborts OAuth token refresh. Single-file-fix for the “Claude Code won’t start, no error message” report class.
  • Fix: right-click paste in claude agents on Windows Terminal + WSL. Targeted Windows-terminal interop fix.
  • Fix: stop hooks that block repeatedly no longer loop forever — the turn now ends with a warning after 8 consecutive blocks. Override via CLAUDE_CODE_STOP_HOOK_BLOCK_CAP. Closes a class of “stop-hook accidentally builds an infinite loop and burns tokens overnight” failure modes. Materially important for users building custom stop hooks; pair with Hooks.
  • Fix: Esc / Ctrl+C now cancels a pending /loop wakeup while Claude is idle between iterations. Previously the only way to break out of a long /loop was to wait for the next wakeup. Pairs with the v2.1.140 /loop redundant-wakeup fix.
  • Fix: /goal evaluator no longer fires while background shells or delegated subagents are still running. Closes a race where the evaluator would declare the goal not-yet-met while parallel work was in flight. Important for the /goal + subagent-dispatch flow.
  • Fix: NO_COLOR / FORCE_COLOR in settings.json env no longer strips Claude Code’s own UI colors — they now apply to subprocesses only. Closes a regression where setting these env vars for child processes also flattened the parent UI.
  • Other stability fixes: agent view stale-fragment rendering, background agent false-positive stall detection after host sleep, agent view spinner / display polish.

Claude Code v2.1.142 (May 14)

Source: raw/anthropic-watch-claude-code-tag-v2-1-142.md (tagged 2026-05-14T22:55:10Z, author ashwin-ant).

  • Eight new claude agents flags for dispatched background sessions--add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, --dangerously-skip-permissions. Lets you fully configure a background-dispatched agent from the parent invocation rather than relying on the dispatching session’s defaults. Important for the agent-teams / subagents flows where each child needs distinct permissions or a different model.
  • Fast mode default model flipped Opus 4.6 → Opus 4.7. CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=1 pins Fast mode back to Opus 4.6 for users who measured a regression. Pairs with the Extended Thinking deprecation below — Anthropic is consolidating the “use the latest Opus + adaptive thinking” recommendation across surfaces.
  • Plugins with a root-level SKILL.md and no skills/ subdirectory are now surfaced as a skill. Removes the boilerplate skills/<name>/SKILL.md nesting requirement for single-skill plugins. See Agent Skills Overview + Plugins and Marketplaces.
  • /plugin details pane and claude plugin details now show LSP servers a plugin provides — visibility for the LSP-bundling pattern that landed in earlier v2.1.x releases.
  • /web-setup warns before replacing an existing GitHub App connection — fewer surprise re-installs of the Claude Code GitHub App.
  • MCP_TOOL_TIMEOUT now raises the per-request fetch timeout for remote HTTP and SSE MCP servers — previously capped at 60 seconds regardless of the configured value. Important fix for long-running MCP tool calls (e.g., Tavily multi-page extract, expensive search APIs).
  • Background sessions now recognize pre-existing git worktreesEdit was previously blocked while EnterWorktree refused to create a duplicate. Fixes the superpowers:using-git-worktrees flow when a worktree already exists.
  • macOS sleep/wake daemon fix — daemon now detects clock jumps instead of treating them as elapsed idle time. Closes the “background sessions disappear after lunch” failure mode.
  • Daemon now exits cleanly after binary upgrade (e.g., brew upgrade) — dispatched agents no longer crash-loop on the deleted binary path.
  • Background agents no longer crash-loop when the Claude-in-Chrome extension is connected without a shared tab — fixes a CI/headless interaction with the desktop browser bridge.
  • Clicking links in an attached claude agents session now works — the background worker’s headless browser shim no longer applies while attached.

Claude Code v2.1.141 (May 13)

  • Hook terminalSequence JSON output — hooks can now emit desktop notifications, window titles, and bells without a controlling terminal. Closes the headless-environments gap where hooks could rule on tool use but couldn’t surface a user-visible signal. See Hooks.
  • CLAUDE_CODE_PLUGIN_PREFER_HTTPS env var — clone GitHub plugin sources over HTTPS instead of SSH for environments without a GitHub SSH key. Important for sandboxed CI, ephemeral devboxes, locked-down enterprise terminals. Pairs with plugin distribution surface improvements.
  • ANTHROPIC_WORKSPACE_ID env var for workload identity federation — scopes the minted token to a specific workspace when the federation rule covers more than one. Targeted fix for orgs whose IAM federation grants access to multiple Anthropic workspaces from one identity. See SDK releases for the matching auth surface.
  • claude agents --cwd <path> — scope the agent-view session list to a directory. Companion to the v2.1.139 agent view; the Moritz Kremb / Vibe Coding-style /clients/<client>/ folder layouts now isolate cleanly in the multi-session UI.
  • /feedback can include recent sessions (last 24h or 7d) — for issues spanning more than the current session. Materially better bug reports.
  • Rewind menu: “Summarize up to here” — compress earlier context while keeping recent turns intact. New affordance on the Rewind menu; pairs with the v2.1.139 compaction-prompt improvements.
  • Auto mode permission dialog now explains the permissions.ask rule that caused the prompt. Closes the “why is this dialog showing?” question; relevant when running in --dangerously-skip-permissions=false with curated allowlists.
  • “View diff in your IDE” restored on file-edit permission prompts when an IDE is connected. Small fix to a regression.
  • Background agents launched via /bg or ←← preserve the current permission mode — no more reverting to default. Important for the --dangerously-skip-permissions flows that the W20 agent view walkthroughs depend on.
  • claude agents: agents that finish work but leave a background shell running now move to Completed instead of staying under Working. Polish on the agent-view state machine.
  • Spinner warms to amber after 10 seconds during long thinking periods — signals Claude is still working, not stuck. Small but visible feedback fix.
  • Plugin menu navigation polish — →/Tab switch tabs, ↑ moves to the tab strip, headers + search box clickable in fullscreen mode.

Claude Code v2.1.140 (May 12)

  • Agent tool subagent_type case- and separator-insensitive matching"Code Reviewer" resolves to code-reviewer. Removes a footgun for human-typed agent invocations in agent-teams / subagents flows.
  • Updated agent color palette — cosmetic but referenced in v2.1.141 polish.
  • /goal silently hanging fix when disableAllHooks or allowManagedHooksOnly is set — now shows a clear message instead of an indeterminate indicator. Closes a class of “is /goal working or stuck?” bugs.
  • Settings hot-reload regression fix where symlinked settings files caused misattributed change events and spurious ConfigChange hooks. Relevant for users with symlinked ~/.claude/settings.json from a dotfiles repo.
  • claude --bg connection-dropped fix when the background service was about to idle-exit. Fewer “background started, immediately died” failures.
  • Background service startup time extended to accommodate enterprise endpoint security. Symptom on locked-down Windows machines was startup timing out before AV scan finished.
  • Remote managed settings: retry on 401 with a force-refreshed token. Closes a token-refresh race condition.
  • Managed extraKnownMarketplaces auto-update policy now persisted to known_marketplaces.json. Fix for enterprise marketplace pinning.
  • /loop no longer schedules redundant wakeups for background tasks that already notify on completion. Token-cost reduction for Routines users.
  • Windows event-loop stall fix when a missing executable (e.g. gh) triggered synchronous where.exe re-spawns on every check. Targeted Windows performance fix.
  • Read tool offset validation now accepts whitespace-padded or +-prefixed strings. Closes an LLM-emits-whitespace bug class.
  • Native terminal cursor stays at input caret when the terminal loses focus.
  • Plugin folder warning when a default component folder (e.g. commands/) is silently ignored because plugin.json sets the matching key. Surfaced in /doctor and plugin details.

Claude Code weekly limits +50% through July 13

Source: r/ClaudeAI 1tc9oa0 (raw/reddit-1tc9oa0.md, ClaudeOfficial post, 754 score / 162 comments, 2026-05-13).

  • All Pro, Max, Team, and seat-based Enterprise users.
  • Applies everywhere Claude Code runs — CLI, IDE extensions, desktop, web.
  • Live now, runs through July 13 at 6PM PDT / 1AM GMT (2 months from announcement).
  • Stacks with the 2× increase to 5-hour limits announced in W20 (post-conference).
  • No opt-in required; check current limits with /usage.

This is the subscription-tier counterweight to the claude --print SDK-billing split below. The weekly-limit increase and the -p repricing land within hours of each other — the framing is “more headroom on the subscription surface, less subsidy on the programmatic surface.”

claude --print → SDK credits (effective June 15)

Source: r/ClaudeAI 1tcetsd (raw/reddit-1tcetsd.md, 452 score / 211 comments, 2026-05-13). Canonical Anthropic doc: support.claude.com/en/articles/15036540-use-the-claude-agent-sdk-with-your-claude-plan.

From June 15 forward, jobs launched via claude --print (and equivalent Claude Agent SDK programmatic usage) bill against a separate monthly SDK credit bucket instead of the Pro/Max plan’s CLI tokens. The Pro/Max plans get an included SDK credit allowance (community reports suggest ~$100/mo on Max), but heavy programmatic use will exceed it.

Why this matters:

  • The “Claude Code as a free programmatic harness” gravy-train is over. Pre-June-15, users could pipe -p from supervisors, hook executors, cron jobs, and custom orchestrators — all metered against subscription tokens. Post-June-15, those workflows draw on a separate SDK bucket.
  • Targeted at always-on harnesses. OP’s post in r/ClaudeAI (452 score) describes “an autonomous self-monitoring self-orchestrating Kanban production system” — the exact pattern Anthropic is repricing. See Routines and the Printing Press CLI factory pattern for the harness-shaped workflows affected.
  • Workaround patterns surfacing in the community. Siigari/claude-heartbeat — a ~100-line stop-hook supervisor that polls an inbox file, injects messages into interactive Claude Code sessions, kills + restarts for fresh context. Achieves stateless-per-message behavior in interactive mode (which still bills against subscription tokens). Pattern unverified at scale; logged here for tracking. (Skipped from a standalone ingest pending repo verification.)
  • Distinct from Claude Platform on AWS / native API billing, which are intentional programmatic surfaces. The --print repricing aligns the CLI’s programmatic mode with those surfaces — -p was an undocumented loophole.

This is the business-model inflection of the week. Combined with the +50% weekly-limit increase, Anthropic is widening the subscription surface for interactive coding work while closing the subsidized-API loophole for programmatic agents.

Anthropic passes OpenAI in business adoption (April 2026)

Source: raw/Anthropic_Just_Dethroned_OpenAI._Here_s_What_Happens_Next..md (YouTube transcript, 2026-05-14, citing an industry-research article published the same morning).

For the first time, Anthropic has surpassed OpenAI in business adoption, per the index referenced in the source video (OpenAI led from early 2023 through March 2026; the crossover landed in April 2026). The dethroning prompted an immediate counter-move from Sam Altman: 2 months of free Codex usage for companies switching from Claude Code, posted to X. Within 45 minutes, Anthropic posted the +50% weekly-limit announcement above — the responses paired in time and intent.

The “free sample phase” framing (from the source video): both vendors are aggressively subsidizing the consumer-developer side of the market. The pace of subsidy is now the second-order tell about which lab is gaining business-share. Worth tracking the next ~60 days for further reciprocal moves.

This pairs with the W20 Claude Platform on AWS GA (distribution) + May 7 SpaceX-Colossus capacity announcement (capacity) + Managed Agents (agent surface). The three-legged production-readiness story Anthropic threaded post-conference is now showing up in the business-adoption numbers.

Extended Thinking deprecation — manual budget_tokens is going away

Source: raw/reddit-1td4dl1.md (r/ClaudeAI 211 score / 115 comments, 2026-05-14, OP CaffeineBrogrammer) citing the official platform.claude.com/docs/en/build-with-claude/extended-thinking doc.

  • Claude Opus 4.7: thinking: {type: "enabled", budget_tokens: N} is no longer supported and returns a 400 error. Use thinking: {type: "adaptive"} with the effort parameter.
  • Claude Opus 4.6 + Sonnet 4.6: manual configuration is still functional but deprecated; will be removed in a future model release. Adaptive thinking is the recommended path.
  • The community-thread pushback (211 score) argues that for paying API customers, removing the option to opt into a fixed reasoning budget reads as cost-cutting rather than performance-enhancing. Anthropic’s framing is performance + simpler-defaults; the OP’s framing is “I’m paying for more thinking, let me pay for it.” Both can be true — track first-party benchmark notes if Anthropic publishes any to back the adaptive-is-better claim.

Why this matters for the wiki:

  • The Adaptive Thinking effort axis (effort: low | medium | high) is now the only thinking-budget surface for new Opus 4.7 work. Existing claude --thinking-budget flag in Claude Code maps onto the adaptive path. See Extended Thinking for the conceptual frame.
  • Migration script for SDK clients: grep -r 'thinking.*{[^}]*type.*enabled' . against any Claude API client code; each match needs to swap to {type: "adaptive", effort: "..."} before the model gets rotated to 4.7 in production.
  • The Fast-mode default flip (4.6 → 4.7 in v2.1.142 above) is the CLI counterpart to the API deprecation — both surfaces are converging on “use Opus 4.7 + adaptive thinking” as the default path.

Harness portability — context is the asset, harnesses are interchangeable

Source: raw/Claude_Just_Solved_Weekly_Rate_Limits_but....md (Sigrid Jin walkthrough, YouTube wiki-inbox, 2026-05-15).

Sigrid Jin’s framing on the +50% weekly-limit news pulls out a non-obvious operator point: the harness (Claude Code vs Codex) and the model (Opus 4.7 vs GPT 5.5) are both swap-replaceable in days; the asset that compounds is your context — workspace, files, skills, memory layer. He walks through Codex’s one-click import of a Claude Code workspace: CLAUDE.mdagents.md, .claude/skills/.agents/skills/, settings.json → config.toml. The migration is mostly text-file translation, which the current frontier models do in seconds.

Operator takeaways:

  • Stay flexible — try the other harness once a quarter so the muscle memory is current. Cheap insurance against a one-vendor rate-limit cliff.
  • Invest in context structure (folder layout, skills library, CLAUDE.md hygiene, memory snapshots) over harness-specific micro-optimizations. Context is the moat; harnesses are commodity.
  • The Codex install-count delta (~86M cumulative vs Claude Code ~7M cumulative, per the chart cited in the video) is the structural pressure behind Anthropic’s +50% weekly-limit move and the matching 2-month free Codex promo for enterprises switching from Claude Code (posted by @OpenAIDevs the same week).

Related: Codex 1-Hour Course for the Codex harness walkthrough; the agents.mdCLAUDE.md translation pattern; ChatGPT-subscription-OAuth as the cheapest non-open-source Codex auth.

/goal deep-dive — Claude Code + Codex head-to-head

Source: raw/The_Future_of_AI_Agents_Just_Arrived_goal_for_Claude_Code_Codex.md (YouTube transcript, 2026-05-13). Follow-up coverage of the [[claude-ai/whats-new-2026-w20|W20 /goal command]].

The /goal command was previewed at Code with Claude and shipped in v2.1.139. This week’s deep-dive coverage confirms the patterns:

  • Long-running sessions are now mainstream. 14-hour overnight sessions are routine; the longest documented session in the source video ran 5 days straight. The Ralph-loop pattern is now built into the CLI proper.
  • Codex shipped /goal first (~2 weeks ahead of Anthropic per the source). Anthropic shipped the matching surface in v2.1.139. Same convergent pattern as the Codex-Cursor-Anthropic agent-view convergence in W20.
  • Definition-of-done is the operator skill the new command surfaces. The video frames /goal as “what the Ralph loop did, but native.” Goal-converged sibling to the schedule-driven /loop and the event-driven Monitor tool.
  • Productivity multiplier vs. wall-clock cost. The community framing is “set the goal, walk away, come back to PR-ready output.” Implication for the +50% weekly-limit increase: Anthropic is supplying more headroom precisely because /goal makes the headroom load-bearing.

Cookbook: CMA Sessions API as MCP server + Linear bridge template

Two May-13 commits to anthropics/claude-cookbooks add the Managed Agents programmatic surface to MCP and to webhook-driven bridges:

CMA Sessions API as an MCP server (stdio + HTTP)

Commits a0902061 + merge e7b800d4 (PR #617, author rlancemartin). github.com/anthropics/claude-cookbooks/commit/a0902061.

  • Thin MCP server wrapping the Managed Agents Sessions API so Claude Desktop or claude.ai can drive hosted CMA agents via tool calls. DIY bridge until “publish agent to claude.ai” is first-class.
  • 9 tools in shared src/tools.ts — 8 are 1:1 endpoint wrappers; wait_for_idle is the SSE → request/response shim.
  • Two entrypoints: server.ts (stdio, Desktop) and server-http.ts (Streamable HTTP + bearer auth, claude.ai Connector).
  • Dockerfile for Fly / Railway / Render.
  • list_agents capped + name_contains filter (busy workspaces hang auto-pagination).
  • Authoring / destructive / secret endpoints deliberately excluded — read + drive only, no admin from the MCP surface.
  • README forks on client; CLAUDE.md invokes /claude-api; skill.md has Desktop + Connector setup, relay-mode Project instructions, org-admin gating note.
  • Stdio path proven e2e in Claude Desktop; HTTP smoke-tested via ngrok.

Linear stateless webhook bridge template

Commits 96442914 + merge b5b727b7 (PR #607, author rlancemartin). github.com/anthropics/claude-cookbooks/commit/96442914.

  • Minimal TypeScript/Bun bridge connecting Linear’s Agent Platform to Managed Agents via CMA outbound webhooks — no held SSE streams, no session-map DB. session.metadata carries linear_session_id + org_id.
  • setup/create-agent.ts — one-time agent + environment (claude-opus-4-7).
  • src/agent.ts — Linear @mention → sessions.create + kickoff message.
  • src/cma-webhook.tsbeta.webhooks.unwrap → retrieve-then-filter → createAgentActivity reply.
  • src/oauth.ts — Linear OAuth (actor=app) + token store.
  • README with diagram + bun install && claude quickstart.
  • CLAUDE.md — invokes /claude-api, reads skill.md, offers extensions menu.
  • skill.md — walkthrough + gotchas (workspace-scoped webhooks, actor=app, 10s ack, retrieve-then-filter), debugging.
  • Uses @anthropic-ai/sdk ^0.95.1 (depends on beta.webhooks.unwrap). Proven e2e.

Why this matters: the two cookbook commits ship the off-the-shelf templates for the two most common Managed Agents integration shapes — MCP server (drive CMA from Desktop/claude.ai) and stateless webhook bridge (drive CMA from a third-party agent platform). Pattern likely repeats: expect similar bridges for Slack agents, GitHub agents, Notion agents over the next quarter. See Anthropic Cookbook: Managed Agents Multiagent + Outcomes for the full cookbook surface.

Python SDK v0.102.0 + TS sdk-v0.96.0

Source: raw/anthropic-watch-anthropic-sdk-python-tag-v0-102-0.md + raw/anthropic-watch-anthropic-sdk-typescript-tag-sdk-v0-96-0.md (both 2026-05-13).

Two version-locked features land in both SDKs:

  • BetaManagedAgentsSearchResultBlock types — new content-block type for Managed Agents search results, surfaced through the API spec. First-class type support for the “agent searched, here’s the result block” interaction pattern. Hooks directly into the cookbook MCP server above.
  • Cache diagnostics beta — opt-in beta for surfacing prompt-cache hit/miss diagnostics. Important for cost-optimization work; closes the “is my prompt cache actually hitting?” measurement gap for SDK clients. See Prompt Caching for Agencies for the cost-side discipline this measurement unlocks.

Python v0.102.0 also adds:

  • internal/types: support eagerly validating pydantic iterators — better validation of streaming type-checked iterators. Internal but improves type-safety surface for advanced Python users.

Python v0.102.0 bug fixes:

  • Zod v4-only types in TS (TS-side fix carried in 9e08bcc).

Full SDK refresh details in Anthropic SDK Releases — May 2026.

Smaller wins

  • W20 agent-view walkthroughs continue. raw/Claude_Code_has_a_new_UI_pair_it_with_Claude_OS.md (YouTube, 2026-05-12) — primary-source walkthrough of claude agents flow: /bg continue to migrate existing sessions into the dashboard, Ctrl-S sort by repo, shift up/down reordering, Ctrl-T pinning, spacebar to reply across sessions, terminal-only for now (desktop app surface coming). Validates the v2.1.139 agent-view design end-to-end.
  • 5-level Claude usage progression video. raw/Every_Level_of_Claude_Explained_in_21_Minutes.md covers the claude.ai consumer-surface progression (enthusiast → beginner via projects + screenshots). Maps onto the WEO Marketly Claude Onboarding course; logged here for completeness, no standalone article.
  • [Reddit signal — r/ClaudeAI 2026-05-17]: Four context tools between /clear and /compact (raw/reddit-1tfjja8.md, 127 score / 27 comments, OP lawnguyen123, primary source: code.claude.com/docs/en/best-practices). Most “manage your context” advice stops at /clear and /compact; Anthropic’s Best Practices doc actually documents four finer tools sitting between them: (1) /btw — quick-question overlay, never enters conversation history (“answer appears in a dismissible overlay”); (2) /rewind with directional summarization — Summarize from here (compresses everything after a checkpoint) vs Summarize up to here (compresses everything before — already surfaced in v2.1.141, Try It #7); (3) /compact <instructions> — direct the summary explicitly (e.g., /compact Focus on the API changes, drop debugging history); (4) CLAUDE.md compaction directives — bake preservation rules in (e.g., “When compacting, always preserve the full list of modified files and any test commands”). Decision rule from the source: /clear is admission you waited too long — the earlier instrument you reach for, the cheaper the session.
  • [Reddit signal — r/ClaudeCode 2026-05-17]: Claude Code now stops at the taste-direction layer before CSS edits (raw/reddit-1tfn31s.md, 79 score / 24 comments, OP adssidhu86). Reported behavior: given a screenshot + “make this navbar prettier”, Claude Code returns 3 design options (“Refined gold pill / Sparkle prefix / Glow halo”) and waits for user choice before editing CSS. The flow becomes visual context → design options → human choice → code edit rather than prompt → diff. Treats “make it prettier” as a taste decision, not a coding instruction. Worth verifying across W21 versions to identify which build introduced this; one operator report so far.

Known caveats (community-reported)

  • -p repricing pain points. The 211-comment thread on claude --print repricing surfaces several patterns that worked under the old billing model but are now uneconomical: long-running orchestrators, supervisor + worker patterns, always-on cron-driven agents. Migrate to native CLI workflows (interactive mode + Routines + agent view) or budget against the SDK credit bucket explicitly.
  • Managed Agents MCP server has explicit safety scope. Authoring, destructive, and secret endpoints are deliberately excluded — agent creation/deletion/secret rotation requires direct CMA API access, not the MCP bridge. Plan workflows accordingly.
  • Linear bridge gotchas documented in the cookbook: workspace-scoped webhooks (not org-scoped); actor=app (not user); 10-second webhook ack window; retrieve-then-filter pattern required.
  • Sonnet→Opus silent routing bug (v2.1.139, low-confidence)raw/reddit-1td8oku.md (r/Anthropic 11 score / 3 comments, 2026-05-14, OP Ginger_Libra on v2.1.139): all Sonnet sessions silently defaulting to Opus while the UI still shows “Sonnet”; the routing only becomes visible two steps into a session, by which point ~80% of weekly usage had burned overnight. Single-reporter signal; flag here for tracking — if a second concrete report lands, escalate. Likely fixed or fixable by upgrading to v2.1.140+; verify claude /usage and claude /model agree before long sessions.
  • Sonnet 4.6 “I’ve drifted” hallucinated-guardrails pattern at long contextraw/reddit-1tdhjz0.md (r/Anthropic 32 score / 15 comments, 2026-05-14, OP 1monster90): by ~prompt 25 in any extended Sonnet 4.6 conversation, the model self-reports drift, TOS violations, or refuses-to-continue even when no policy-relevant content is present. Haiku does not exhibit this pattern. Treated in troubleshooting-claude under Drift; for Claude Code long sessions, the recovery move is to use Rewind “Summarize up to here” (new in v2.1.141) before the threshold rather than reactively at it.

Try It

  1. Upgrade Claude Code to v2.1.143. claude update. Confirm --version shows 2.1.143. The eight new claude agents flags from v2.1.142 (--add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, --dangerously-skip-permissions) plus v2.1.143’s plugin dependency enforcement, projected context cost in /plugin marketplace browse, worktree.bgIsolation: "none", the 8-block stop-hook cap, and the macOS Full Disk Access fix are all immediately usable. macOS clock-jump daemon fix from v2.1.142 stays. If you use stop hooks that can block, test with CLAUDE_CODE_STOP_HOOK_BLOCK_CAP to tune the 8-block default.
  2. Bump Python SDK to 0.102.0 or TS SDK to 0.96.0. pip install --upgrade anthropic or npm install @anthropic-ai/sdk@latest. The cache-diagnostics beta is opt-in via header — see release notes for activation.
  3. Audit your -p workflows before June 15. Run grep -r 'claude --print\|claude -p' . against any orchestration code. Each match is a workflow to migrate or budget for under the new SDK credit bucket.
  4. Audit your Claude API code for manual extended-thinking config before rotating to Opus 4.7. grep -rE 'thinking.*type.*enabled' . — each match is a call that will start returning 400 once routed to 4.7. Migrate to {type: "adaptive", effort: "low|medium|high"}.
  5. Install the CMA Sessions MCP server in Claude Desktop. Clone the cookbook ref implementation, follow the README quickstart. Useful for any team running Managed Agents that wants to drive them from Desktop chat surfaces.
  6. Watch your /usage numbers. The +50% weekly-limit increase is automatic, but tracking your headroom under the new limit informs whether you should compress workflows further or scale them up while the headroom lasts (through July 13).
  7. Try the Rewind “Summarize up to here” option in a long-context session. Compresses earlier context while keeping recent turns intact — a less destructive alternative to /compact for sessions where you want to keep recent specifics. Pairs with the Sonnet 4.6 prompt-25 drift caveat above.
  8. Use claude agents --cwd <client-folder> to scope the agent view per-client when running the Moritz Kremb-style folder layout. Closes a real friction point in the W20 agent-view release.
  9. Try Codex once this quarter. Per Sigrid Jin’s portability framing, run a 30-minute spike against Codex’s CLI (agents.md + .agents/skills/) to keep harness-migration muscle memory current. Cheap insurance against a one-vendor cliff.
  10. Audit any custom stop hooks for unbounded-block patterns. v2.1.143 caps consecutive stop-hook blocks at 8 (override via CLAUDE_CODE_STOP_HOOK_BLOCK_CAP). If your hook intentionally blocks more than 8 times per turn, raise the cap explicitly or restructure the hook — silent token-burn from stop-hook loops is the failure mode v2.1.143 closes.
  11. Set worktree.bgIsolation: "none" in settings.json if you run background sessions against repos where worktrees are impractical. New in v2.1.143 — lets claude agents dispatched work edit the working copy directly without EnterWorktree. Default remains worktree-isolated.

Article counts

claude-ai topic: 129 → 130 → 131 → 133 articles (Nine Plugins + Seven Skills both ingested 2026-05-15). Vault total: 280 → 281 → 287 articles.

Open Questions

  • What’s the actual size of the included SDK credit bucket on Pro/Max? Community reports cluster around $100/mo on Max; official Anthropic doc framing is “a monthly credit”; needs a primary-source confirm before any cost-modeling decisions.
  • Does the cache-diagnostics beta surface cache write-cost separately? Cookbook coverage doesn’t expand. Open thread until first community measurements land.
  • Will the CMA MCP server pattern get a first-class “publish agent to claude.ai” surface? Cookbook README hints at it (“DIY bridge until…”). Worth watching Code with Claude or future Anthropic blog announcements for the productized version.
  • Anthropic-vs-OpenAI business-adoption crossover — the dethroning claim references an industry-research article quoted in the YT source. Primary source not yet captured in ai-research/; worth a research pass to confirm the exact metric and sample.
  • W17 → W18 → W19 → W20 → W21 release-cadence pattern is now five weeks deep — strong candidate for a connections article on Anthropic’s post-conference release discipline.