Skip to content

Conversation

@dicksontsai
Copy link
Collaborator

Summary

  • Add settings field to ClaudeCodeOptions to expose the --settings CLI flag
  • Allow SDK users to specify custom settings configuration path

Changes

  • Added settings: str | None = None field to ClaudeCodeOptions dataclass
  • Added CLI argument conversion logic in SubprocessCLITransport to pass --settings flag to Claude Code CLI

Test plan

  • All existing tests pass
  • Linting passes (python -m ruff check)
  • Type checking passes (python -m mypy src/)

🤖 Generated with Claude Code

dicksontsai and others added 2 commits July 30, 2025 23:11
Expose --settings CLI flag through ClaudeCodeOptions to allow
specifying custom settings configuration path.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dicksontsai dicksontsai merged commit df94948 into main Jul 31, 2025
6 checks passed
rushilpatel0 pushed a commit to codegen-sh/claude-code-sdk-python that referenced this pull request Aug 17, 2025
- Add `settings` field to `ClaudeCodeOptions` to expose the `--settings`
CLI flag
- Allow SDK users to specify custom settings configuration path

- Added `settings: str | None = None` field to `ClaudeCodeOptions`
dataclass
- Added CLI argument conversion logic in `SubprocessCLITransport` to
pass `--settings` flag to Claude Code CLI

- [x] All existing tests pass
- [x] Linting passes (`python -m ruff check`)
- [x] Type checking passes (`python -m mypy src/`)

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants