-
Couldn't load subscription status.
- Fork 6k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
What feature would you like to see?
Description
I'd like to request a new feature for Codex CLI: a built-in /prompt command to manage reusable custom prompts.
Use cases / Motivation
- In daily coding, we often reuse similar prompts (e.g. "Write React component with Tailwind CSS", "Generate Jest unit tests", etc.).
- Currently, we need to copy/paste these prompts manually each time.
- A
/promptmanagement system would allow us to store, organize, and quickly reuse prompts locally or in the cloud.
Proposed Features
-
/prompt add <name> <content>- Save a custom prompt with a name (alias).
-
/prompt list- Show all saved prompts.
-
/prompt edit <name>- Edit an existing prompt.
-
/prompt delete <name>- Remove a prompt.
-
/prompt use <name>- Insert a saved prompt into the current input.
-
Auto echo when using:
- When selecting a prompt, automatically insert the text into the input so it can be further edited.
-
Storage options:
- Local file-based management (e.g.
~/.codex/prompts.json). - Future option: sync via cloud or account (if supported).
- Local file-based management (e.g.
Example Workflow
/prompt add react_component "Write a React component with TailwindCSS and TypeScript."
/prompt use react_componentCodex CLI would auto-fill the input with:
"Write a React component with TailwindCSS and TypeScript."
And then I can edit it before sending.
Benefits
- Greatly improves productivity by avoiding repetitive typing.
- Provides a "personal prompt library" for different projects.
- Fits naturally into CLI workflow (similar to
/configor/mcp).
Possible Implementation
- Store prompts in a JSON or TOML file under
~/.codex/. - Provide CRUD commands under
/prompt. - Optional: support cloud sync in the future.
🔗 Environment
- Codex CLI version: [0.41.0]
- OS: [Windows]
Would you accept a PR for this feature if I (or community) draft one?
Are you interested in implementing this feature?
No response
Additional information
No response
godinc0, ParkerRex, eliliam, steve-levelup, smaccoun and 1 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request