| name | clade-upgrade-migration |
| description | Upgrade Anthropic SDK versions and migrate between Claude model generations.
Use when working with upgrade-migration patterns.
Trigger with "upgrade anthropic sdk", "migrate claude model",
"anthropic breaking changes", "new claude model".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(pip:*), Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","anthropic","claude","migration","upgrade"] |
| compatibility | Designed for Claude Code |
Anthropic Upgrade & Migration
Overview
Upgrade the Anthropic SDK to new versions and migrate between Claude model generations. Covers version checking, changelog review, model ID updates across the codebase, output comparison testing, and gradual rollout via environment variables.
SDK Upgrade
npm list @claude-ai/sdk
pip show anthropic
npm install @claude-ai/sdk@latest
pip install --upgrade anthropic
Model Migration Checklist
When Anthropic releases new model versions:
- Read the model card — check for behavior changes, new capabilities
- Update model IDs — find and replace old IDs
grep -r "claude-" --include="*.ts" --include="*.py" --include="*.json" .
- Test with new model — run integration tests against both old and new
- Compare outputs — spot-check key prompts for quality regression
- Update max_tokens — new models may have different limits
- Gradual rollout — use env var to control model selection
const MODEL = process.env.CLAUDE_MODEL || 'claude-sonnet-4-20250514';
const message = await client.messages.create({
model: MODEL,
max_tokens: 1024,
messages,
});
Common Migration Issues