Custom Slash Commands
Custom slash commands are personalized shortcuts to run recipes. If you have a recipe that runs a daily report, you can create a custom slash command to invoke that recipe from within a session:
/daily-report
Create Slash Commands
Assign a custom command to a recipe.
- goose Desktop
- goose CLI
- Click the button in the top-left to open the sidebar
- Click
Recipesin the sidebar - Find the recipe you want to use and click the button
- In the modal that pops up, type your custom command (without the leading
/) - Click
Save
The command appears under the recipe in your Recipes menu. For recipes that aren't in your Recipe Library, follow the goose CLI steps.
Configure slash commands in your configuration file. List the command (without the leading /) along with the path to the recipe file on your computer:
slash_commands:
- command: "run-tests"
recipe_path: "/path/to/recipe.yaml"
- command: "daily-report"
recipe_path: "/Users/me/.local/share/goose/recipes/report.yaml"
Use Slash Commands
In any chat session, type your custom command with a leading slash at the start of your message:
- goose Desktop
- goose CLI
/run-tests
Typing / in goose Desktop shows a popup menu with the available slash commands.
Context: ●○○○○○○○○○ 5% (9695/200000 tokens)
( O)> /run-tests
You can pass one parameter after the command (if needed). Quotation marks are optional:
/translator where is the library
When you run a recipe using a slash command, the recipe's instructions and prompt fields are sent to your model and loaded into the conversation, but not displayed in chat. The model responds using the recipe's context and instructions just as if you opened it directly.
Limitations
- Slash commands accept only one parameter. Any additional parameters in the recipe must have default values.
- Command names are case-insensitive (
/Bugand/bugare treated as the same command). - Command names must be unique and contain no spaces.
- You cannot use names that conflict with built-in CLI slash commands like
/recipe,/compact, or/help. - If the recipe file is missing or invalid, the command will be treated as regular text sent to the model.