Modifying system prompts changedagent-sdk/modifying-system-prompts
Recorded here
Lines+1added
Lines−1removed
From line
140
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits20to this page, all time
The whole hunk
from line 140, old and new numbered
/
from line 140
140140 const options = { settings: { outputStyle: "Explanatory" } };
141141 ```
142142
143The Python SDK does not have an option to select an output style programmatically. For code-only deployments where you can't write to `.claude/settings.local.json`, use `append` or a custom prompt string instead.
143In the Python SDK, set `outputStyle` through the `settings` option, which takes a JSON string such as `'{"outputStyle": "Explanatory"}'` or a path to a settings file that sets it.
144144
145145**Note for SDK users:** Output styles are loaded when you include `settingSources: ['user']` or `settingSources: ['project']` (TypeScript) / `setting_sources=["user"]` or `setting_sources=["project"]` (Python) in your options.
146146
No line in this hunk matches that.