Agent SDK reference - Python changedagent-sdk/python
Nearest release: v2.1.238, published 10 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+1added
Lines−1removed
From line
815
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits62to this page, all time
The whole hunk
from line 815, old and new numbered
/
from line 815
815815| `cwd` | `str \| Path \| None` | `None` | Current working directory |
816816| `cli_path` | `str \| Path \| None` | `None` | Custom path to the Claude Code CLI executable |
817817| `settings` | `str \| None` | `None` | Path to settings file |
818| `add_dirs` | `list[str \| Path]` | `[]` | Additional directories Claude can access |
818| `add_dirs` | `list[str \| Path]` | `[]` | Additional directories Claude can access. The SDK passes each entry to Claude Code as `--add-dir`, so with the `project` setting source Claude Code also [loads the directory's skills, commands, and subagents](/docs/en/permissions#additional-directories-grant-file-access-not-configuration) |
819819| `env` | `dict[str, str]` | `{}` | Environment variables merged on top of the inherited process environment. See [Environment variables](/docs/en/env-vars) for variables the underlying CLI reads, and [Handle slow or stalled API responses](#handle-slow-or-stalled-api-responses) for timeout-related variables |
820820| `extra_args` | `dict[str, str \| None]` | `{}` | Additional CLI arguments to pass directly to the CLI |
821821| `max_buffer_size` | `int \| None` | `None` | Maximum bytes when buffering CLI stdout |
No line in this hunk matches that.