You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please implement functionality to allow custom arguments (e.g., $ARGUMENTS) to be passed and rendered within the .md file when executing slash commands.
Additionally, the first line of the .md file could be used as a command title in the TUI. If the line exceeds the maximum allowed length, it should be truncated accordingly.
Once [pull request #2471](#2471) is merged, it would be great to support this functionality in custom commands as well.
Example
# Create a git commit
Based on the code changes, create a single git commit.
If `--push` argument is present, you can run `git push`.
**DO NOT** run `git add` unless asked by argument `--add`.
**DO NOT** add information that the commit is generated by Codex.
## Context- Current git status: !`git status`- Current git diff (staged and unstaged changes): !`git diff HEAD`- Current branch: !`git branch --show-current`- Recent commits: !`git log --oneline -10`## Passed arguments`$ARGUMENTS`
Are you interested in implementing this feature?
No response
Additional information
No response
Reacted by Alexander Kim, Noname Oni, Alexx, Thomas Dijkstra, Koki NAKAMURA, Paul Lewis, Xiao, Daniil Kulchenko, Felix Swinkels, aliyome and 222 more
Reacted by lightningRalf, Glenn 'devalias' Grant, Tomohiro Nishimura, Mikel Gonzalez, Youssef Mehili, Shogo Muranushi, Markus, Maciej Król, Andre Simoes, suvam-jaiswal and 160 more
It would be nice to have a more Git centric approach where codex ask if you want to create a new branch for this change.
Also does appropriate Git commits along the way so if you leave it running the user and Codex can easily step back to a point where it was in a working state regardless of Codex running or not.
This way you can see in the Git logs the branches and iterative changes over time to pick up any mistakes or changes that may be important or may have caused problems.
As this also would you help diagnose issues and looking at the state of repository with the many, many tools available for Git repository viewing and analysis out there already.
i initially thought i could use something like: /code-review pass PR link and do it, but just found out, that it doesn't accept any args... Hope they will implement this soon.
Arguments: $1..$9, $ARGUMENTS, and $$
(literal); simple quoting for paths with spaces.
“@” file picker: inserts quoted file paths (no
content inlining, no auto‑exec).
Optional frontmatter: description and argument-
hint shown in the slash palette; frontmatter is
stripped before send.
Safety/back‑compat: no changes to approvals/
sandbox; protocol only adds optional fields; existing
prompts continue to work.
Tests/docs: unit + TUI snapshot tests added; docs/
prompts.md updated.
If this approach aligns, I’ll mark #3565 ready for
review. I’m happy to modify as needed.
Reacted by abdull1986, Carsten Wawer, GK, Lakshitha Mathangadeera and xytras
Reacted by Bruno Kanazawa and Sander van Hooft
Reacted by Glenn 'devalias' Grant, Alexander Kim, Michal Kos, yee, Krzysztof Zarzycki, izumi-lufty, Felix Swinkels, Abruzz1, ashray, mlvrai and 26 more
Reacted by abdull1986, Carsten Wawer and Bruno Kanazawa
Hi @dedrisian-oai and @aibrahim-oai - PR #3565 (#3565) mentioned above which shows high demand, delivers the full custom prompt update: $1..$9/$ARGUMENTS/$$ handling, @ file picker auto-quoting, inline description + argument-hint rendering, and the docs/tests refresh. It’s rebased on current main and the sweeps (formatting, per-crate tests, cargo test --all-features) are green. It’s still in draft mode and I can’t switch it back to active - could you unlock the PR and mark it ready for review? Please me know if you’d like any changes.
Reacted by Ovi Savescu, Dan Washusen, bobcave, Glenn 'devalias' Grant, Toni DY, jonny5203, felixpie, Carsten Wawer and Edoardo Ierina
Reacted by Ovi Savescu, jonny5203, kunwar, Eli Smith, Carsten Wawer and Edoardo Ierina
We all hope for this. Codex is replacing CC for lot of us, and spec kit hype is growing fast :)
Reacted by Dimitry Polivaev, Johan Eriksson, Andrius, Maulana, Praulio, Mohammad Aubed Isfahanizadeh, VannaGamma, jonny5203, Carsten Wawer, Zacklack and 11 more
Hey guys, coming soon! @evandavid1's PR was merged into a feat branch, and I'll combine it with some named params and submit for a PR & review this week.
Reacted by Chris, Alexey Dubinin, jskorlol, LU, Lakshitha Mathangadeera, Raphael Barreiros, jonny5203, Dimitry Polivaev, Derek Chen, delrosariom-2ig and 17 more
Reacted by Dimitry Polivaev, VannaGamma, Hotion, Ross CB, Berat Berk Çalıkıran, Hugo Minh D. Nguyen, Yuji Shen, Moacir Braga, Nick Walke, Boris Dubois and 1 more
Reacted by Soichi Sumi, Alexey Dubinin, jskorlol, HaveF, LU, Blubberblub, Raphael Barreiros, jonny5203, Dimitry Polivaev, Dueen Eduarda and 14 more
Numbered args ($1, $2, $3, $ARGUMENTS) has been merged. Named args coming next!
Reacted by CatDTran
Reacted by Philip Keogh, Raphael Barreiros, NostraDavid, Hotion, Nick Walke, Adam Paterson, Blubberblub, SquarePixelBoy, Shuhao Liu, jskorlol and 9 more
just run the /constitution <input text> custom prompt on the latest build and everything looks working.
╭────────────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.43.0-alpha.6) │
│ │
│ model: gpt-5-codex /model to change │
│ directory: ~/IdeaProjects/force-navigator-reloaded-2-0 │
╰────────────────────────────────────────────────────────╯
To get started, describe a task or try one of these commands:
/init - create an AGENTS.md file with instructions for Codex
/status - show current session configuration
/approvals - choose what Codex can do without approval
/model - choose what model and reasoning effort to use
/review - review any changes and find issues
›
The user input to you can be provided directly by the agent or as a command argument - you
**MUST** consider it before proceeding with the prompt (if not empty).
User input:
This is repository containing source code for Chrome extension. Aimed to improve page navigation
inside Salesforce org. Creates a set of dynamic and static url paths, scoped to current org,
leveraging standard salesforce api.
You are updating the project constitution at `.specify/memory/constitution.md`. This file
is a TEMPLATE containing placeholder tokens in square brackets (e.g. `[PROJECT_NAME]`,
`[PRINCIPLE_1_NAME]`). Your job is to (a) collect/derive concrete values, (b) fill the template
precisely, and (c) propagate any amendments across dependent artifacts.
....
Reacted by Nick Walke, Hotion, Soichi Sumi, Salim Tekin, Eli Smith, Ozan Kaşıkçı, Glenn 'devalias' Grant, Dino, Toni DY, Fukucchi and 2 more
Latest codex cli version now supports custom commands
Reacted by Paul Capestany, Mihail Fox, Vasilii Nosikov, Hanzhi Yang, CatDTran, Hotion, Zachary Rose, Oskar Rynkiewicz, Ervin Velasco, Glenn 'devalias' Grant and 25 more
Activity
cs-asimoes commentedon Sep 1, 2025
+1, would be really useful! i was just reading the source code to understand if this was already there!
suvam-jaiswal commentedon Sep 2, 2025
+1, arguments to saved prompts and adding additional content like this is super useful
SuperPauly commentedon Sep 2, 2025
It would be nice to have a more Git centric approach where codex ask if you want to create a new branch for this change.
Also does appropriate Git commits along the way so if you leave it running the user and Codex can easily step back to a point where it was in a working state regardless of Codex running or not.
This way you can see in the Git logs the branches and iterative changes over time to pick up any mistakes or changes that may be important or may have caused problems.
As this also would you help diagnose issues and looking at the state of repository with the many, many tools available for Git repository viewing and analysis out there already.
michalkos commentedon Sep 2, 2025
@SuperPauly, how you configure the command is entirely up to you. The example simply demonstrates how to use arguments in the setup.
dedrisian-oai commentedon Sep 3, 2025
Thanks! Tracking this.
SystemicVoid commentedon Sep 3, 2025
+1 That would be very useful, thanks!
sergigp commentedon Sep 5, 2025
This will make prompts much more powerful. Imo ideally we should be able to pass multiple arguments with
$1,$2, ...avxkim commentedon Sep 10, 2025
i initially thought i could use something like:
/code-review pass PR linkand do it, but just found out, that it doesn't accept any args... Hope they will implement this soon.alexx-ftw commentedon Sep 11, 2025
This will be a game changer for me. I rely on this a ton with Claude Code. +1
evandavid1 commentedon Sep 14, 2025
Status update / proposal
(literal); simple quoting for paths with spaces.
content inlining, no auto‑exec).
hint shown in the slash palette; frontmatter is
stripped before send.
sandbox; protocol only adds optional fields; existing
prompts continue to work.
prompts.md updated.
If this approach aligns, I’ll mark #3565 ready for
review. I’m happy to modify as needed.
evandavid1 commentedon Sep 23, 2025
Hi @dedrisian-oai and @aibrahim-oai - PR #3565 (#3565) mentioned above which shows high demand, delivers the full custom prompt update: $1..$9/$ARGUMENTS/$$ handling, @ file picker auto-quoting, inline description + argument-hint rendering, and the docs/tests refresh. It’s rebased on current main and the sweeps (formatting, per-crate tests, cargo test --all-features) are green. It’s still in draft mode and I can’t switch it back to active - could you unlock the PR and mark it ready for review? Please me know if you’d like any changes.
9 remaining items
Hotion13 commentedon Sep 26, 2025
A message above said this feature is now on a branch and should be merged into main soon.
I this this is this feat : #3565
We all hope for this. Codex is replacing CC for lot of us, and spec kit hype is growing fast :)
desneck commentedon Sep 28, 2025
Hey @dedrisian-oai, will this feature be in the upcoming 0.43 release?
Thanks a lot!
dedrisian-oai commentedon Sep 29, 2025
Hey guys, coming soon! @evandavid1's PR was merged into a feat branch, and I'll combine it with some named params and submit for a PR & review this week.
dedrisian-oai commentedon Sep 30, 2025
Numbered args ($1, $2, $3, $ARGUMENTS) has been merged. Named args coming next!
Was85 commentedon Sep 30, 2025
We can't work with the GitHub Spec kit (Codex) without this.
dedrisian-oai commentedon Sep 30, 2025
Both numbered args and named args have been merged! It will be released in the next version :)
Damecek commentedon Sep 30, 2025
just run the
/constitution <input text>custom prompt on the latest build and everything looks working.0xdevalias commentedon Oct 1, 2025
Tozo1995 commentedon Oct 3, 2025
Can we officially use Codex with the Spec kit and passing an argument? Is it official or experimental?
LostPoE commentedon Oct 3, 2025
I think it might be in v0.43.0 . But its not released yet.
aybouzaglou commentedon Oct 3, 2025
Latest codex cli version now supports custom commands
tibo-openai commentedon Oct 19, 2025
Expanded documentation at:
https://github.com/openai/codex/blob/main/docs/prompts.md
Custom prompts: passing arguments ($1..$9, $ARGUMENTS) + @ file picke…