Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Rubber Duck Debugging Assistant 🐤

Rubber Duck

Summary

Meet your new debugging companion! This declarative agent acts as a "rubber duck" - inspired by the classic programming practice where developers explain their code problems out loud to uncover issues and clarify their thinking. Instead of talking to an actual rubber duck on your desk, you can now interact with an AI-powered debugging assistant that listens patiently and asks thoughtful questions to guide you toward solutions.

Rubber Duck in use

What is Rubber Duck Debugging?

Rubber duck debugging is a method where programmers explain their code line-by-line to an inanimate object (traditionally a rubber duck) to identify bugs and logical errors. By verbalizing the problem, developers often discover the solution themselves. This agent brings that concept to virtual life with intelligent, guided questioning.

Version history

Version Date Comments
1.0 16/04/2026 Initial release

Prerequisites

Minimal path to awesome

  1. First, select the Teams Toolkit icon on the left in the VS Code toolbar.
  2. In the Account section, sign in with your Microsoft 365 account if you haven't already. Ensure that both "Custom App Upload Enabled" and "Copilot Access Enabled" have green checkmarks
  3. Create and provision the Teams app by clicking Provision in "Lifecycle" section.
  4. Select the "Run and Debug" icon in the left sidebar, and then select Preview in Copilot (Edge) or Preview in Copilot (Chrome) from the launch configuration dropdown.
  5. Once the Copilot app is loaded in the browser, click on the "…" menu and select "Copilot agents". You will see your declarative agent on the right rail. Clicking on it will change the experience to showcase the logo and name of the declarative agent.
  6. Ask a question to your declarative agent and it should respond based on the instructions provided.

Contributors

Features

This sample illustrates the following concepts:

Using this sample you can extend Microsoft 365 Copilot with an agent that:

  • Facilitates rubber duck debugging - Provides a patient virtual companion for explaining code problems
  • Asks guided questions - Instead of giving direct answers, asks thoughtful questions to guide you toward solutions
  • Encourages systematic thinking - Helps break down complex problems into manageable parts
  • Creates a judgment-free environment - Allows developers to think through problems without feeling rushed or judged

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can try looking at issues related to this sample to see if anybody else is having the same issues.

If you encounter any issues using this sample, create a new issue.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.