Skip to content

Commit fdcaa0d

Browse files
authored
Merge pull request #44575 from github/repo-sync
Repo sync
2 parents 1e2b515 + 82f05b3 commit fdcaa0d

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

content/copilot/concepts/agents/copilot-cli/rubber-duck.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ Or part way through a series of changes, you could prompt:
8181
Get a critique of the changes you've made so far.
8282
```
8383

84+
You can also invoke the rubber duck agent with a slash command:
85+
86+
```copilot
87+
/rubber-duck What edge cases are missing?
88+
```
89+
8490
## Benefits of using the rubber duck agent
8591

8692
* **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.

content/copilot/reference/copilot-cli-reference/cli-command-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ Holding <kbd>↑</kbd> or <kbd>↓</kbd> accelerates scrolling after the first 1
238238
| `/restart` | Restart the CLI, preserving the current session. |
239239
| `/resume [SESSION-ID]`, `/continue [SESSION-ID]` | Switch to a different session by choosing from a list (optionally specify a session ID). |
240240
| `/review [PROMPT]` | Run the code review agent to analyze changes. See [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-cli/agentic-code-review). |
241+
| `/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). |
241242
| `/sandbox [enable\|disable]` | Configure shell command sandboxing. |
242243
| `/search [QUERY]`, `/find [QUERY]` | Search the conversation timeline. {% data reusables.copilot.experimental %} |
243244
| `/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`. |

0 commit comments

Comments
 (0)