Skip to content

Support customizing system prompt in exec? #6023

Closed as not planned
Closed as not planned

Description

@breezewish

What feature would you like to see?

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.

BTW here is a verified implementation for this feature: https://github.com/openai/codex/compare/main...breezewish:codex:wenxuan/system-prompt?expand=1

Activity

  1. added
    enhancement
    on Oct 31, 2025
  2. github-actions commented on Oct 31, 2025

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. added
    exec
    on Nov 15, 2025
  4. etraut-openai commented on Jan 31, 2026

    @etraut-openai
    Contributor

    We have deprecated custom prompts in interactive mode in favor of skills.

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

    enhancementexec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions