You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now system prompt can be switched via /prompt in interactive mode. But in non-interactive mode there is no way to do this. All conversations are sent with the default system prompt "You are Codex, based on GPT-5...".
I think codex could introduce --system-prompt <prompt> especially for codex exec just like Claude Code to allow customizing the system prompt.
Additional information
This could be extremely useful when use codex in CI or automated cases. For example, /review contains a system prompt "You are acting as a reviewer for a proposed code change made by another engineer...." but there is no way to replicate this as the system prompt when we really want to review automatically in CI, because there is neither --review to just enable this review system prompt, nor --system-prompt to switch the default prompt manually.
Activity
github-actions commentedon Oct 31, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Jan 31, 2026
We have deprecated custom prompts in interactive mode in favor of skills.
docs: add empty system prompt to codex command for speed (#1300)