Run agents with a CLI flag
Open 💬 0 comments Opened May 14, 2026 by piotrgwiazda
What variant of Codex are you using?
CLI
What feature would you like to see?
Have an ability to run a preconfigured agent (using subagents pattern) explicitly with a CLI flag, likecodex --agent analyst or codex --agent developer.
Support in codex exec as well
Additional information
This is to have dedicated agent configurations together with the default instructions configured in the same root folder of the project.
We were using project-level profiles before the support for this was dropped in v 0.130
This is an equivalent of using claude --agent or GitHub Copilot agent selection drop down.