codex icon indicating copy to clipboard operation
codex copied to clipboard

Slash commands for `codex exec`

Open vjain419 opened this issue 1 year ago • 5 comments

What feature would you like to see?

currently codex doesn't allow exec slash commands using codex exec (headless codex). from my pov - idea of slash cmd (which I proposed initially and also had PR) so that repetitive workflow / prompts can be abstracted without copy paste - this also apply for headless codex - e.g I want to run codex exec /review in gitlab/github/gerrit ci but currently I can't due to this limitation.

Are you interested in implementing this feature?

I can if needs to be but I think OAI team is well staff :P - let me know if you want to me to push PR.

Additional information

No response

vjain419 avatar Sep 23 '25 21:09 vjain419

Sounds interesting! Will discuss.

dedrisian-oai avatar Sep 30 '25 19:09 dedrisian-oai

Also just filed a feedback item on this: thread id 019a52be-9d3f-7242-ac26-881a9afce7b6

Would be useful for non-github CI/CD pipelines (e.g., gitlab, which we currently use)

phillbee avatar Nov 05 '25 07:11 phillbee

Think this would be perfect to add to my local prompting, too:

Implement such and so
When done, run `yarn lint:ts && yarn test:unit && codex --review pr-style` and take care of any problem that you think is real.

Could even be a part of my AGENTS.md. The Codex reviews are outstanding. First time an LLM really provides meaningful debugging to me. 8/10 times it uncovers a deep problem I hadn't considered.

If I can tie it into my flow like this it's gonna be that much more powerful

kvz avatar Nov 25 '25 09:11 kvz

We are exploring adding hundreds of custom slash commands, and also want to be able to chain these together into configurable workflows.

A very lofty workflow: codex exec /checkout_branch codex exec /implement_feature ISSUE=123 codex exec /add_test codex exec /create_p

jbrown9513 avatar Nov 25 '25 20:11 jbrown9513

Closing as duplicate of #3641, which has more upvotes

etraut-openai avatar Jan 30 '26 23:01 etraut-openai