Learning resourcesReviewed · GitHub

Getting a second opinion with the rubber duck agent

This GitHub guide shows developers using Copilot CLI or the Copilot app how to request an AI critique, with extra waiting time and model usage for each review. It covers manual prompts, the /rubber-duck command and optional automatic invocation in CLI. The reviewer uses a different model and leaves changes to the main session agent.

Researched 15 Nov 2026

In short.

This GitHub guide teaches developers using Copilot CLI or the Copilot app to get a second AI opinion on plans, code and tests, with extra waiting time and model usage. It documents a read-only critic selected to contrast with the session model, findings grouped by severity, manual invocation and optional proactive invocation in CLI. The main agent decides how to apply the feedback. Exact critic models, supported versions, subscription requirements and prices are unspecified. Runtime behavior and review quality were not tested.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/concepts/agent-capabilities/choosing-and-delegating-agent-work/getting-a-second-opinion], including its configuration example and notice about additional latency and model usage. The Custom agents further-reading page and all other linked material are excluded. Prices, licensing terms, supported versions and data-handling terms are not established. No commands were executed, and invocation behavior, model routing, settings persistence and critique quality were not tested.

The overview

identity

This GitHub documentation page explains the built-in rubber duck agent available in GitHub Copilot CLI and the GitHub Copilot app. It teaches how to request critiques of plans, designs, implementations and tests, and how to enable proactive consultation in CLI. The page includes usage instructions and a configuration example.

assessment

Based on the documented behavior, this guide is most useful for developers handling architectural decisions, complex changes or unfamiliar codebases. It provides an actionable way to pause for critique before continuing work. Its value depends on the critic identifying relevant issues and the main agent responding appropriately.

GitHub describes earlier issue detection and fewer failed attempts as benefits. The page supplies no accuracy measurements, comparative results or quantified time savings, so the size of those benefits remains unknown.

users

The intended users are developers already working with Copilot CLI or the Copilot app who want feedback on an agent's proposed or ongoing work. Beginners can request a review with a short natural-language prompt. Experienced developers can direct attention to edge cases, design assumptions or test gaps.

Developers seeking formatting, naming or minor cleanup advice should account for the critic's deliberate focus on substantive problems.

capabilities

The documented review scope includes bugs, logic errors, security vulnerabilities, design flaws, anti-patterns and performance bottlenecks. For each finding, the agent is instructed to explain the issue, its impact and a concrete suggested change.

Feedback is categorized as blocking issues, non-blocking issues or suggestions. The agent is also instructed to say explicitly when it finds no substantive issues. When consulted, Copilot summarizes the critique in the session output.

Using it

requirements

You need access to Copilot CLI or the Copilot app. Copilot also needs a suitable contrasting model for the current session; the page says it only uses the rubber duck agent when such a model is available.

Required subscription plans, supported application versions, installation prerequisites and organization restrictions are not specified. The automatic-invocation controls described on this page apply to Copilot CLI; equivalent app controls are not documented here.

mechanism

The main session agent passes its current plan, design, implementation or tests to a separate critic. Copilot automatically chooses a different model intended to contrast with the session model. The page gives a GPT critic for a Claude-driven session as an example, without guaranteeing a particular pairing.

Model selection happens on each invocation, so switching the session model affects the next critic choice. The critic has read-only codebase exploration access, and the main agent decides what to do with its feedback. GitHub's rationale is that contrasting models may expose different blind spots; the page does not measure that effect.

setup

By default, request each critique explicitly. The guide gives Rubber duck your plan. as a natural-language prompt and /rubber-duck What edge cases are missing? as a slash-command example.

To enable proactive invocation in an interactive CLI session, enter /subagents, select the rubber duck agent using the arrow keys and Enter, then select Proactive invocation and press Enter to toggle it on. Press Escape to leave the picker. The choice persists across future sessions, typically in ~/.copilot/settings.json with subagents.agents.rubber-duck.autoInvoke set to true.

example

For a hypothetical change to an API's retry behavior, first ask Copilot to propose a plan, then enter Rubber duck your plan. After implementation and test drafting, enter /rubber-duck What edge cases are missing? Inspect Copilot's summary of the critique and how it responds to the findings.

This illustrates the documented sequence. No commands were executed, and no actual findings, changes or test outcomes are available for this example.

Assessment & evidence

limitations

The critic cannot edit files or run commands that change the environment. It deliberately excludes style, formatting, naming conventions, comment grammar, minor refactors and advice without a material effect on the task.

Proactive invocation instructs Copilot to consult the critic at useful moments, including planning, complex implementation, test review and repeated failures. It usually skips small, well-understood changes, so enabling it does not guarantee that every change receives a critique. A report of no findings does not establish that the work is correct.

reasoning

The strongest rationale for this workflow is its timing: a substantive critique before implementation can prompt a design correction before more work depends on it. The issue-impact-fix structure also gives the main agent specific feedback to consider.

These are inferences from the documented workflow. Using a different model may broaden the perspective, but it does not establish independent reasoning, complete coverage or correct findings. Actual effectiveness remains unassessed.

alternatives

The guide documents two usage choices for the same reviewer: manually request a critique when needed, or enable proactive invocation in CLI. Manual invocation gives you control over the trigger; proactive invocation lets Copilot choose consultation points according to its instructions.

The page also explains traditional rubber ducking, where articulating a solution can reveal mistakes. It provides no comparative assessment of competing AI review tools or human review.

evidence

The source is GitHub's documentation page Getting a second opinion with the rubber duck agent at [https://docs.github.com/api/article/body?pathname=/en/copilot/concepts/agent-capabilities/choosing-and-delegating-agent-work/getting-a-second-opinion]. The complete page is represented by selected-page.txt.

The capture timestamp is 2026-11-15T09:13:06.966Z. Its source revision is sha256:0c1c09ada4acf55dd27f2d03fd09240262a58c234e8b8bb49ba53a494af30aa9. The evidence establishes documented behavior; no installation, invocation, settings change or runtime assessment was performed.

Access & freshness

costs

Each consultation adds a reasoning pass on a separate model. GitHub states that this adds latency and model usage, while suggesting that catching issues early can reduce later failed attempts.

The page provides no prices, billing units, quota rules, included allowances or measured delay. Monetary cost and usage per critique are unknown, and any overall savings are unquantified.

rights

The page does not supply licensing or redistribution terms for the documentation or underlying agent. It also does not establish service-use terms, ownership of generated feedback, code retention or data-processing rules. Those details remain unknown from this page.

freshness

The documentation capture is dated 15 November 2026. The page supplies no publication date, last-updated date, release number or supported-version matrix. The capture date records when this text was acquired; compatibility with a particular installed CLI or app version remains unknown.

actions

If the feature is available in your Copilot session, start by requesting a manual critique of a non-trivial plan. Inspect the findings and the main agent's response, then use your normal tests to assess any resulting changes.

Confirm account availability and billing details before relying on frequent consultation. If the extra review proves useful, enable Proactive invocation through /subagents in CLI. The same toggle can turn it off if the added delay or usage outweighs its value.

Evidence for this report

selected-page.txtselected · checked 2026-11-15