GitHub Copilot adds Rubber Duck as an experimental feature to improve code quality. This feature offers a second perspective on code reviews, which should help catch errors earlier.
GitHub Copilot has introduced a new feature called Rubber Duck in Copilot CLI. It serves as a second perspective during coding. Rubber Duck is particularly useful for complex problems and aims to ensure better code by spotting errors faster.
Combining AI models
Rubber Duck in GitHub Copilot CLI is designed to improve performance by using a second AI model to review the agent’s plans and work. According to GitHub’s internal tests, the combination of Claude Sonnet and Rubber Duck performs 74.7% better than Sonnet and Opus. This is especially true for complex tasks requiring multiple files and long operations.
How does Rubber Duck work?
Rubber Duck utilizes a model from a complementary AI family. When using a Claude model as an orchestrator, Rubber Duck is powered by GPT-5.4. The goal of Rubber Duck is to identify key points such as missed details and pieces of code that need to be considered. Copilot automatically invokes Rubber Duck at specific moments, such as checking after drafting a plan, following complex implementations, or when writing tests.
