110# Before110# Before
111from claude_code_sdk import query, ClaudeCodeOptions111from claude_code_sdk import query, ClaudeCodeOptions
112 112
113113options = ClaudeCodeOptions(model="claude-opus-4-6")options = ClaudeCodeOptions(model="claude-opus-4-7")
114 114
115# After115# After
116from claude_agent_sdk import query, ClaudeAgentOptions116from claude_agent_sdk import query, ClaudeAgentOptions
117 117
118118options = ClaudeAgentOptions(model="claude-opus-4-6")options = ClaudeAgentOptions(model="claude-opus-4-7")
119```119```
120 120
121**5. Review [breaking changes](#breaking-changes)**121**5. Review [breaking changes](#breaking-changes)**
138# BEFORE (claude-code-sdk)138# BEFORE (claude-code-sdk)
139from claude_code_sdk import query, ClaudeCodeOptions139from claude_code_sdk import query, ClaudeCodeOptions
140 140
141141options = ClaudeCodeOptions(model="claude-opus-4-6", permission_mode="acceptEdits")options = ClaudeCodeOptions(model="claude-opus-4-7", permission_mode="acceptEdits")
142 142
143# AFTER (claude-agent-sdk)143# AFTER (claude-agent-sdk)
144from claude_agent_sdk import query, ClaudeAgentOptions144from claude_agent_sdk import query, ClaudeAgentOptions
145 145
146146options = ClaudeAgentOptions(model="claude-opus-4-6", permission_mode="acceptEdits")options = ClaudeAgentOptions(model="claude-opus-4-7", permission_mode="acceptEdits")
147```147```
148 148
149**Why this changed:** The type name now matches the "Claude Agent SDK" branding and provides consistency across the SDK's naming conventions.149**Why this changed:** The type name now matches the "Claude Agent SDK" branding and provides consistency across the SDK's naming conventions.
279* **Testing** - Isolated test environments279* **Testing** - Isolated test environments
280* **Multi-tenant systems** - Prevent settings leakage between users280* **Multi-tenant systems** - Prevent settings leakage between users
281 281
282282<Note><Warning>
283283 **Backward compatibility:** If your application relied on filesystem settings (custom slash commands, CLAUDE.md instructions, etc.), add `settingSources: ['user', 'project', 'local']` to your options. Current SDK releases have reverted this default for `query()`: omitting the option once again loads user, project, and local settings, matching the CLI. Pass `settingSources: []` in TypeScript or `setting_sources=[]` in Python if your application depends on the isolated behavior described above. Python SDK 0.1.59 and earlier treated an empty list the same as omitting the option, so upgrade before relying on `setting_sources=[]`. See [What settingSources does not control](/en/agent-sdk/claude-code-features#what-settingsources-does-not-control) for inputs that are read even when `settingSources` is `[]`.
284284</Note></Warning>
285 285
286## Why the Rename?286## Why the Rename?
287 287