mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 14:14:26 +01:00
docs: Add prompt completion (#1787)
This commit is contained in:
@@ -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 <command>` - Add a stdio extension (format: ENV1=val1 command args...)
|
||||
- `/builtin <names>` - Add builtin extensions by name (comma-separated)
|
||||
- `/prompts [--extension <name>]` - List all available prompts, optionally filtered by extension
|
||||
- `/prompt <n> [--info] [key=value...]` - Get prompt info or execute a prompt
|
||||
- `/mode <name>` - Set the goose mode to use ('auto', 'approve', 'chat')
|
||||
- `/?` or `/help` - Display this help message
|
||||
|
||||
All commands support tab completion. Press `<Tab>` 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
|
||||
Reference in New Issue
Block a user