add custom models and role prompts#20911
Closed
friel-openai wants to merge 2 commits into
Closed
Conversation
2b1ee31 to
1080a93
Compare
7278c91 to
26e169d
Compare
1080a93 to
005bb00
Compare
26e169d to
8011a01
Compare
005bb00 to
ba7aa4c
Compare
8011a01 to
34d0787
Compare
ba7aa4c to
6cc570e
Compare
34d0787 to
2380cb2
Compare
6cc570e to
00ef375
Compare
2380cb2 to
b899578
Compare
00ef375 to
92faa9e
Compare
b899578 to
de8cf4d
Compare
92faa9e to
f44de61
Compare
de8cf4d to
983bea6
Compare
Co-authored-by: Codex <noreply@openai.com>
983bea6 to
a5b4f85
Compare
a31c129 to
4f3b42c
Compare
This was referenced May 4, 2026
Contributor
|
Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds role-aware prompt injection and custom model aliases to Codex.
This PR adds root, subagent, and watchdog prompt files; supports
AGENTS.root.md,AGENTS.subagent.md, andAGENTS.watchdog.md; and inserts developer prompts based on the active agent role. It also adds top-levelcustom_models,request_model, alias display with the backing request slug, context-window overrides, and auto-compact limit overrides.Validation
cargo test -p codex-models-managerCODEX_SKIP_VENDORED_BWRAP=1 cargo build -p codex-cli --bin codex