diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 2da9eb16..864672e6 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -198,17 +198,38 @@ Used to show the available implementations of the agent loop itself goose agents ``` +--- +## Prompt Completion + +The CLI provides a set of slash commands that can be accessed during a session. These commands support tab completion for easier use. + +#### Available Commands +- `/exit` or `/quit` - Exit the current session +- `/t` - Toggle between Light/Dark/Ansi themes +- `/extension ` - Add a stdio extension (format: ENV1=val1 command args...) +- `/builtin ` - Add builtin extensions by name (comma-separated) +- `/prompts [--extension ]` - List all available prompts, optionally filtered by extension +- `/prompt [--info] [key=value...]` - Get prompt info or execute a prompt +- `/mode ` - Set the goose mode to use ('auto', 'approve', 'chat') +- `/?` or `/help` - Display this help message + +All commands support tab completion. Press `` after a slash (/) to cycle through available commands or to complete partial commands. + +#### Examples +```bash +# List all prompts from the developer extension +/prompts --extension developer + +# Switch to chat mode +/mode chat +``` + + --- ## Keyboard Shortcuts Goose CLI supports several shortcuts and built-in commands for easier navigation. -### Slash Commands -- **`/exit` or `/quit`** - Exit the session -- **`/t`** - Toggle between Light/Dark modes -- **`/?` or `/help`** - Display the help menu - -### Keyboard Navigation - **`Ctrl+C`** - Interrupt the current request - **`Ctrl+J`** - Add a newline - **Up/Down arrows** - Navigate through command history \ No newline at end of file