Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions documentation/docs/guides/goose-cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of these are duplicated under , keyboard shortcut section

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch thank you!

- `/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