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
{{ message }}
Repository navigation
Ability to bypass/disable AGENTS.md pipeline (CLI) #5983
I think this would be very handy for a number of reasons.
Helps with troubleshooting AGENTS pipeline
Allows for auditing such as "explain how this feature is implemented, compare to AGENTS.md description" (Codex not pre-loaded with potentially inaccurate info, draws own conclusions)
Enables switching out personas, or customizing load order by concatenating different files on launch (less janky than renaming AGENTS.md to something else, renaming something else to AGENTS.md and launching; adding/deleting AGENTS.override.md to switch personas)
Only thing I'm not sure about is how the project_doc_max_bytes would work with an override - whether it obeys truncation rules or not. I look forward to discussing the details, if anyone else is interested of course!
@robertmsale you can do this already somewhat with --config developer_instructions="...."
I do this to create multiple 'profiles' (the profile config feature itself does not support specifying different developer_instructions) and this way am able to add additional context. So your workflow would be:
Setup AGENTS.md with baseline instructions
Add anything you want to developer_instructions separately
This way you only have the core instructions in AGENTS.md while developer_instructions drives everything else on top. I have setup aliases within .zshrc with separate instructions for the separate profiles I use.
@guidedways I'm attempting to do something similar but not having success with the developer_instructions argument. Are you passing this when you run codex exec or when you start a repl? If you don't mind sharing a full example that would be greatly appreciated :)
changed the title [-]Ability to override AGENTS.md loading with string value (CLI)[/-][+]Ability to bypass/disable AGENTS.md pipeline (CLI)[/+]on Nov 29, 2025
Activity
guidedways commentedon Nov 22, 2025
@robertmsale you can do this already somewhat with
--config developer_instructions="...."I do this to create multiple 'profiles' (the profile config feature itself does not support specifying different
developer_instructions) and this way am able to add additional context. So your workflow would be:AGENTS.mdwith baseline instructionsdeveloper_instructionsseparatelyThis way you only have the core instructions in AGENTS.md while developer_instructions drives everything else on top. I have setup aliases within
.zshrcwith separate instructions for the separateprofilesI use.This works wonderfully.
steve-a-jones commentedon Nov 25, 2025
@guidedways I'm attempting to do something similar but not having success with the
developer_instructionsargument. Are you passing this when you run codex exec or when you start a repl? If you don't mind sharing a full example that would be greatly appreciated :)guidedways commentedon Nov 25, 2025
@steve-a-jones done, please find a tutorial here: #7296
robertmsale commentedon Nov 29, 2025
Gotcha, so I guess my feature request is to simply
--bypass-agentsor something of that nature. I've been doing stuff likeSimply so I'm not deleting or renaming AGENTS.md, but just making sure those files do not load. It would be nice to opt-in to not loading them.
[-]Ability to override AGENTS.md loading with string value (CLI)[/-][+]Ability to bypass/disable AGENTS.md pipeline (CLI)[/+]