From 0314f84f3ae4b26b336c7df3e5b9b69de84c0a5b Mon Sep 17 00:00:00 2001 From: Adewale Abati Date: Thu, 20 Mar 2025 12:21:46 +0100 Subject: [PATCH 1/3] Add prompt completion --- .../docs/guides/goose-cli-commands.md | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 2da9eb1619c2..45cb18769fa2 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -35,12 +35,12 @@ goose configure **Options:** - **`-n, --name `** + **`-n, --name `** **Usage:** ```bash - goose session --name + goose session --name ``` - Resume a previous session @@ -52,7 +52,7 @@ goose configure **Usage:** ```bash - goose session --resume --name + goose session --resume --name ``` - Start a session with the specified extension @@ -156,11 +156,11 @@ goose update --reconfigure ### mcp -Run an enabled MCP server specified by `` (e.g. 'Google Drive') +Run an enabled MCP server specified by `` (e.g. 'Google Drive') **Usage:** ```bash -goose mcp +goose mcp ``` --- @@ -174,11 +174,11 @@ Execute commands from an instruction file or stdin. Check out the [full guide](/ - **`-i, --instructions `**: Path to instruction file containing commands. Use - for stdin. - **`-t, --text `**: Input text to provide to Goose directly - **`-s, --interactive`**: Continue in interactive mode after processing initial input -- **`-n, --name `**: Name for this run session (e.g. 'daily-tasks') +- **`-n, --name `**: Name for this run session (e.g. 'daily-tasks') - **`-r, --resume`**: Resume from a previous run - **`-p, --path `**: Path for this run session (e.g. './playground.jsonl') - **`--with-extension `**: Add stdio extensions (can be used multiple times in the same command) -- **`--with-builtin `**: Add builtin extensions by name (e.g., 'developer' or multiple: 'developer,github') +- **`--with-builtin `**: Add builtin extensions by name (e.g., 'developer' or multiple: 'developer,github') **Usage:** @@ -198,6 +198,33 @@ 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 From ed3c4fa2518c062048789315d44fbcedd47b6158 Mon Sep 17 00:00:00 2001 From: Adewale Abati Date: Thu, 20 Mar 2025 12:25:49 +0100 Subject: [PATCH 2/3] undo name updates --- documentation/docs/guides/goose-cli-commands.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 45cb18769fa2..c524620ffc24 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -35,12 +35,12 @@ goose configure **Options:** - **`-n, --name `** + **`-n, --name `** **Usage:** ```bash - goose session --name + goose session --name ``` - Resume a previous session @@ -52,7 +52,7 @@ goose configure **Usage:** ```bash - goose session --resume --name + goose session --resume --name ``` - Start a session with the specified extension @@ -156,11 +156,11 @@ goose update --reconfigure ### mcp -Run an enabled MCP server specified by `` (e.g. 'Google Drive') +Run an enabled MCP server specified by `` (e.g. 'Google Drive') **Usage:** ```bash -goose mcp +goose mcp ``` --- @@ -174,11 +174,11 @@ Execute commands from an instruction file or stdin. Check out the [full guide](/ - **`-i, --instructions `**: Path to instruction file containing commands. Use - for stdin. - **`-t, --text `**: Input text to provide to Goose directly - **`-s, --interactive`**: Continue in interactive mode after processing initial input -- **`-n, --name `**: Name for this run session (e.g. 'daily-tasks') +- **`-n, --name `**: Name for this run session (e.g. 'daily-tasks') - **`-r, --resume`**: Resume from a previous run - **`-p, --path `**: Path for this run session (e.g. './playground.jsonl') - **`--with-extension `**: Add stdio extensions (can be used multiple times in the same command) -- **`--with-builtin `**: Add builtin extensions by name (e.g., 'developer' or multiple: 'developer,github') +- **`--with-builtin `**: Add builtin extensions by name (e.g., 'developer' or multiple: 'developer,github') **Usage:** From 669a613e5f661da7b335435f4fb61eb83f61b9b8 Mon Sep 17 00:00:00 2001 From: Adewale Abati Date: Thu, 20 Mar 2025 12:42:26 +0100 Subject: [PATCH 3/3] update keyboard shortcuts --- documentation/docs/guides/goose-cli-commands.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index c524620ffc24..864672e63c03 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -230,12 +230,6 @@ All commands support tab completion. Press `` after a slash (/) to cycle th 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