Skip to content

Commit af87062

Browse files
ashwin-antclaude
andauthored
changelog update (#192)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent d9dd841 commit af87062

2 files changed

Lines changed: 54 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# Changelog
22

3+
## 0.1.0
4+
5+
Introducing the Claude Agent SDK! The Claude Code SDK has been renamed to better reflect its capabilities for building AI agents across all domains, not just coding.
6+
7+
### Breaking Changes
8+
9+
#### Type Name Changes
10+
- **ClaudeCodeOptions renamed to ClaudeAgentOptions**: The options type has been renamed to match the new SDK branding. Update all imports and type references:
11+
```python
12+
# Before
13+
from claude_agent_sdk import query, ClaudeCodeOptions
14+
options = ClaudeCodeOptions(...)
15+
16+
# After
17+
from claude_agent_sdk import query, ClaudeAgentOptions
18+
options = ClaudeAgentOptions(...)
19+
```
20+
21+
#### System Prompt Changes
22+
- **Merged prompt options**: The `custom_system_prompt` and `append_system_prompt` fields have been merged into a single `system_prompt` field for simpler configuration
23+
- **No default system prompt**: The Claude Code system prompt is no longer included by default, giving you full control over agent behavior. To use the Claude Code system prompt, explicitly set:
24+
```python
25+
system_prompt={"type": "preset", "preset": "claude_code"}
26+
```
27+
28+
#### Settings Isolation
29+
- **No filesystem settings by default**: Settings files (`settings.json`, `CLAUDE.md`), slash commands, and subagents are no longer loaded automatically. This ensures SDK applications have predictable behavior independent of local filesystem configurations
30+
- **Explicit settings control**: Use the new `setting_sources` field to specify which settings locations to load: `["user", "project", "local"]`
31+
32+
For full migration instructions, see our [migration guide](https://docs.claude.com/en/docs/claude-code/sdk/migration-guide).
33+
34+
### New Features
35+
36+
- **Programmatic subagents**: Subagents can now be defined inline in code using the `agents` option, enabling dynamic agent creation without filesystem dependencies. [Learn more](https://docs.claude.com/en/api/agent-sdk/subagents)
37+
- **Session forking**: Resume sessions with the new `fork_session` option to branch conversations and explore different approaches from the same starting point. [Learn more](https://docs.claude.com/en/api/agent-sdk/sessions)
38+
- **Granular settings control**: The `setting_sources` option gives you fine-grained control over which filesystem settings to load, improving isolation for CI/CD, testing, and production deployments
39+
40+
### Documentation
41+
42+
- Comprehensive documentation now available in the [API Guide](https://docs.claude.com/en/api/agent-sdk/overview)
43+
- New guides for [Custom Tools](https://docs.claude.com/en/api/agent-sdk/custom-tools), [Permissions](https://docs.claude.com/en/api/agent-sdk/permissions), [Session Management](https://docs.claude.com/en/api/agent-sdk/sessions), and more
44+
- Complete [Python API reference](https://docs.claude.com/en/api/agent-sdk/python)
45+
346
## 0.0.22
447

548
- Introduce custom tools, implemented as in-process MCP servers.

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pip install claude-agent-sdk
1010

1111
**Prerequisites:**
1212
- Python 3.10+
13-
- Node.js
13+
- Node.js
1414
- Claude Code: `npm install -g @anthropic-ai/claude-code`
1515

1616
## Quick Start
@@ -59,7 +59,7 @@ options = ClaudeAgentOptions(
5959
)
6060

6161
async for message in query(
62-
prompt="Create a hello.py file",
62+
prompt="Create a hello.py file",
6363
options=options
6464
):
6565
# Process tool use and results
@@ -271,6 +271,15 @@ See [examples/quick_start.py](examples/quick_start.py) for a complete working ex
271271

272272
See [examples/streaming_mode.py](examples/streaming_mode.py) for comprehensive examples involving `ClaudeSDKClient`. You can even run interactive examples in IPython from [examples/streaming_mode_ipython.py](examples/streaming_mode_ipython.py).
273273

274+
## Migrating from Claude Code SDK
275+
276+
If you're upgrading from the Claude Code SDK (versions < 0.1.0), please see the [CHANGELOG.md](CHANGELOG.md#010) for details on breaking changes and new features, including:
277+
278+
- `ClaudeCodeOptions``ClaudeAgentOptions` rename
279+
- Merged system prompt configuration
280+
- Settings isolation and explicit control
281+
- New programmatic subagents and session forking features
282+
274283
## License
275284

276285
MIT

0 commit comments

Comments
 (0)