Skip to content

Ability to bypass/disable AGENTS.md pipeline (CLI) #5983

Closed as not planned
Closed as not planned

Description

@robertmsale

What feature would you like to see?

This is a two-part feature.

  1. Ability to disable AGENTS chain loading completely with CLI argument
  2. Ability to offer alternative

For example:

codex --bypass-agents
codex --bypass-agents "$(cat alternative.md)"

Additional information

I think this would be very handy for a number of reasons.

  1. Helps with troubleshooting AGENTS pipeline
  2. 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)
  3. 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!

Activity

  1. added
    enhancement
    on Oct 30, 2025
  2. added
    context
    on Nov 16, 2025
  3. guidedways commented on Nov 22, 2025

    @guidedways
    Contributor

    @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:

    1. Setup AGENTS.md with baseline instructions
    2. 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.

    This works wonderfully.

  4. steve-a-jones commented on Nov 25, 2025

    @steve-a-jones

    @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 :)

  5. guidedways commented on Nov 25, 2025

    @guidedways
    Contributor

    @steve-a-jones done, please find a tutorial here: #7296

  6. robertmsale commented on Nov 29, 2025

    @robertmsale
    Author

    @robertmsale you can do this already somewhat with --config developer_instructions="...."

    Gotcha, so I guess my feature request is to simply --bypass-agents or something of that nature. I've been doing stuff like

    #!/usr/bin/env bash
    
    echo "" > ~/.codex/AGENTS.override.md
    echo "" > "$PWD/AGENTS.override.md"
    codex
    rm "$PWD/AGENTS.override.md"
    rm ~/.codex/AGENTS.override.md
    

    Simply 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.

  7. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contextenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions