- Notifications
You must be signed in to change notification settings - Fork 362
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Issue
The v0.1.0 migration guide states:
"The SDK no longer uses Claude Code's system prompt by default."
However, this breaking change is not implemented.
Current Implementation
In subprocess_cli.py lines 99-110, when system_prompt=None (the default):
if self._options.system_prompt is None: passThe SDK passes no --system-prompt argument to the Claude CLI, which means the CLI uses its own default behavior.
This results in system_prompt=None behaving identically to system_prompt={"type": "preset", "preset": "claude_code"} - both use the Claude Code system prompt, contradicting the migration guide's statement that the default changed.
Expected Behavior
To enforce the breaking change, the SDK should explicitly pass an empty system prompt:
if self._options.system_prompt is None: cmd.extend(["--system-prompt", ""]) References
- https://docs.claude.com/ja/docs/claude-code/sdk/migration-guide
- https://github.com/anthropics/claude-agent-sdk-python/blob/v0.1.5/CHANGELOG.md#system-prompt-changes
- PR feat: refactor system_prompt to support preset and append options #183
- Code: subprocess_cli.py lines 99-110
Environment
- SDK version: 0.1.5
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working