-
Notifications
You must be signed in to change notification settings - Fork 6.2k
feat: support customizing system-prompt in exec #6250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Thanks for the contribution. Which bug report is this related to? The link points back to this PR rather than an issue. |
|
@etraut-openai Oh sorry, wrong link. Fixed. It should be #6023 |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Thanks for the contribution. We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. This is a feature we'd like to add, but we need to give more thought to how to expose it. We don't have the bandwidth to do the necessary design work at this time, but we will get to it eventually. We are using upvotes (thumbs-up reactions) to help inform guide our prioritization of features. |
Close #6023
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...". This PR adds support for customizing the system-prompt for the non-interactive mode (exec).
The
--system-promptparameter usage is similar to Claude Code, just accepts prompts inline.With this feature, people could have exactly the same effect as
/reviewusing the review system prompt in exec, or whatever system prompt he/she likes.I manually verified it works by reviewing the LLM stream: