Adding a /prompt feature for repeat tasks #564

Closed
opened 2026-02-16 17:27:22 -05:00 by yindo · 3 comments
Owner

Originally created by @vaugenwake on GitHub (Jul 8, 2025).

Originally assigned to: @adamdotdevin on GitHub.

In GitHub Copilot there is a concept of "prompts" that is basically just a pre-saved block of text that can be prefixed to an instruction to cut down on typing out the same request multiple times.

I would like to add this feature into the CLI if it is of interest?

The usecase is simple for example let's say u have a prompt you use all the time like for example "write documentation" that has a list of things u want and what to do.

Currently if u want to just quickly do this I have to copy/paste it into the text field each time, not the end of the world but annoying non the less.

Solution:

  1. Add "save as prompt" ability with an friendly name for later
  2. When h type /prompts, display a list of saved prompts
  3. When selected will be prefixed to any additional instructions you give the agent.

If this is of interest to be added I am happy to work on getting it added.

Originally created by @vaugenwake on GitHub (Jul 8, 2025). Originally assigned to: @adamdotdevin on GitHub. In GitHub Copilot there is a concept of "prompts" that is basically just a pre-saved block of text that can be prefixed to an instruction to cut down on typing out the same request multiple times. I would like to add this feature into the CLI if it is of interest? The usecase is simple for example let's say u have a prompt you use all the time like for example "write documentation" that has a list of things u want and what to do. Currently if u want to just quickly do this I have to copy/paste it into the text field each time, not the end of the world but annoying non the less. **Solution:** 1. Add "save as prompt" ability with an friendly name for later 2. When h type /prompts, display a list of saved prompts 3. When selected will be prefixed to any additional instructions you give the agent. If this is of interest to be added I am happy to work on getting it added.
yindo closed this issue 2026-02-16 17:27:22 -05:00
Author
Owner

@emmanuelchucks commented on GitHub (Sep 11, 2025):

We have this now in the form of custom commands, no?

@emmanuelchucks commented on GitHub (Sep 11, 2025): We have this now in the form of custom commands, no?
Author
Owner

@jayair commented on GitHub (Sep 12, 2025):

Yeah we do https://opencode.ai/docs/commands/

@jayair commented on GitHub (Sep 12, 2025): Yeah we do https://opencode.ai/docs/commands/
Author
Owner

@rekram1-node commented on GitHub (Sep 26, 2025):

Given we have commands support now i am going to close, if there is anything missing from commands that you'd like to see lmk @vaugenwake

@rekram1-node commented on GitHub (Sep 26, 2025): Given we have commands support now i am going to close, if there is anything missing from commands that you'd like to see lmk @vaugenwake
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#564