Add skip_git_repo_check to config.toml options
What variant of Codex are you using?
CLI
What feature would you like to see?
Current Behavior
The documented way to have the codex CLI skip the git repo check is with
codex exec --skip-git-repo-check "say hello"
Proposed Changes:
Add skip_git_repo_check to the configuration options in config.toml
Additional information
This is a follow up to: https://github.com/openai/codex/issues/3511
This request is not to change the default behavior for everyone (like 3511), which could be a breaking change. It is to enable the configuration so that developers can choose.
In my main use case, I have workflows that involve multiple repos (ops, mobile client, and server) rather than a monorepo. Executing from the parent directory simplifies some processes. In another, I have an agent creating a directory and initiating a repo for a new project, so there is not yet a repo to check against.
Acknowledged there are workarounds, but this reduces friction in using the CLI.