Search the documentation
7 pages for --system-prompt.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…ile instead of passing it as a string. The SDK maps this to the CLI [`--system-prompt-file`](/docs/en/cli-reference#system-prompt-flags) flag. Use the file form when the prompt is large: the SDK passe…
CLI reference
Claude Code CLI · in the page
cli-reference
…same task. Only applies with the default system prompt; ignored when `--system-prompt` or `--system-prompt-file` is set. Use with `-p` for scripted, multi-user workloads…
Error reference
Claude Code CLI · in the page
errors
…ode doesn't pass back to the restarted process. These flags include [`--system-prompt`](/docs/en/cli-reference#cli-flags), `--system-prompt-file`, `--append-system-prompt-file`, a [`--tools`](/docs/en…
Fullscreen rendering
Claude Code CLI · in the page
fullscreen
…cess. Restrictions it can't pass include: * Launch flags such as a [`--system-prompt`](/docs/en/cli-reference#cli-flags) replacement, a [`--tools`](/docs/en/cli-reference#cli-flags) allowlist, or [`-…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…ocs/en/cli-reference#system-prompt-flags) for more options including `--system-prompt` to fully replace the default prompt. ### Continue conversations Use `--continue` to continue the most recent co…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…system prompt text you provide via the `systemPrompt` SDK option or `--system-prompt` and `--append-system-prompt` flags, truncated at the content limit (60 KB by default), and is emitted once per se…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…places the default Claude Code system prompt entirely, the same way [`--system-prompt`](/docs/en/cli-reference) does. `CLAUDE.md` files and project memory still load through the normal message flow. T…