Claude Discovery

← All discoveries

Team of developers working together on computers in a modern tech office.
Photo by cottonbro studio on Pexels
skill

claude-api Skill Gets an `upgrade` Subcommand for the 0.x to 1.x SDK Jump

2026-08-22 ยท source:

Anthropic's claude-api Claude Agent Skill added an upgrade subcommand that walks a Python project through migrating from the anthropic 0.x SDK to 1.x, including the new httpx2 HTTP layer.

What it is

A new subcommand added to Anthropic's claude-api Claude Agent Skill, the same skill previously updated with a prompt-audit subcommand.

What it does

The `upgrade` subcommand checks a project's scope and current SDK version, greps for call sites affected by the 0.x to 1.x jump, walks through each breaking change one section at a time, verifies the result, and produces a report. It covers the switch to the httpx2 HTTP layer, the new Python 3.10 floor, and removed deprecated surface, and it documents that timeouts now use `anthropic.Timeout` instead of `httpx.Timeout`.

Why it matters

SDK major-version bumps are exactly the kind of tedious, error-prone migration an agent skill is built for: a greppable inventory beats manually hunting every affected call site across a codebase.

How to use it

Install or update the claude-api skill from anthropics/skills and invoke the upgrade subcommand inside a Python project still depending on the anthropic 0.x SDK.

Go to source →
claude-agent-skillspythonsdkmigration