From 82f05b335e156e045aeafc38b814f4fc3d8054c2 Mon Sep 17 00:00:00 2001 From: Siara <108543037+SiaraMist@users.noreply.github.com> Date: Tue, 2 Jun 2026 15:32:04 -0700 Subject: [PATCH] Add info about rubber duck slash command (#61547) --- content/copilot/concepts/agents/copilot-cli/rubber-duck.md | 6 ++++++ .../copilot-cli-reference/cli-command-reference.md | 1 + 2 files changed, 7 insertions(+) diff --git a/content/copilot/concepts/agents/copilot-cli/rubber-duck.md b/content/copilot/concepts/agents/copilot-cli/rubber-duck.md index d958a5fb0fd4..ffb01eb743ae 100644 --- a/content/copilot/concepts/agents/copilot-cli/rubber-duck.md +++ b/content/copilot/concepts/agents/copilot-cli/rubber-duck.md @@ -81,6 +81,12 @@ Or part way through a series of changes, you could prompt: Get a critique of the changes you've made so far. ``` +You can also invoke the rubber duck agent with a slash command: + +```copilot +/rubber-duck What edge cases are missing? +``` + ## Benefits of using the rubber duck agent * **Catches issues early.** Most non-trivial tasks that fail have problems that a critique could have caught at the planning stage. Getting feedback before code is written is preferable to fixing problems later in the process. diff --git a/content/copilot/reference/copilot-cli-reference/cli-command-reference.md b/content/copilot/reference/copilot-cli-reference/cli-command-reference.md index e2b64ec98791..bc47f90873cd 100644 --- a/content/copilot/reference/copilot-cli-reference/cli-command-reference.md +++ b/content/copilot/reference/copilot-cli-reference/cli-command-reference.md @@ -238,6 +238,7 @@ Holding or accelerates scrolling after the first 1 | `/restart` | Restart the CLI, preserving the current session. | | `/resume [SESSION-ID]`, `/continue [SESSION-ID]` | Switch to a different session by choosing from a list (optionally specify a session ID). | | `/review [PROMPT]` | Run the code review agent to analyze changes. See [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-cli/agentic-code-review). | +| `/rubber-duck [PROMPT]` | Consult the rubber duck agent for a second opinion on plans, code, and tests. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/rubber-duck). | | `/sandbox [enable\|disable]` | Configure shell command sandboxing. | | `/search [QUERY]`, `/find [QUERY]` | Search the conversation timeline. {% data reusables.copilot.experimental %} | | `/session [info\|checkpoints [n]\|files\|plan\|rename [NAME]\|cleanup\|prune\|delete [ID]\|delete-all]`, `/sessions [info\|checkpoints [n]\|files\|plan\|rename [NAME]\|cleanup\|prune\|delete [ID]\|delete-all]` | Show session information and manage sessions. Subcommands: `info`, `checkpoints`, `files`, `plan`, `rename`, `cleanup`, `prune`, `delete`, `delete-all`. |