October 28th, 2025
0 reactions

Introducing Custom Agents for .NET Developers: C# Expert & WinForms Expert

Wendy Breiding (SHE/HER)
Senior Manager, Product Management

With GitHub’s announcement of Copilot Custom Agents, developers now have powerful new tools to automate and accelerate their workflows. These custom agents enhance Copilot by serving as intelligent accelerators with specialized expertise, able to analyze codebases, plan tasks, and execute commands independently. To enhance the .NET developer experience with Copilot, we’re excited to introduce our first two experimental custom agents tailored specifically for .NET developers: C# Expert and WinForms Expert.

C# Expert Agent

Designed to provide guidance and best practices for C# development, this agent brings deep expertise in:

  • Core C# Development: Adheres to modern best practices for syntax, structure, and performance, while still honoring the preferences of the existing repository.
  • Code Integrity: Implements minimal code changes and writes efficient code utilizing async/await patterns with proper cancellation and exception handling.
  • Testing Best Practices: Supports behavior-driven unit testing practices, integration testing, and TDD workflows.

WinForms Expert Agent

Built for developers working with Windows Forms applications, this agent specializes in:

  • UI Design Patterns: Implements MVVM and MVP patterns for maintainable and scalable UI code.
  • Event-Driven Programming: Handles complex event wiring and state management.
  • Tool Integrity: Protects the designer.cs file, keeping it safe from corruption, allowing you to continue using the designer after Copilot has finished.

Getting Started

To use these agents:

  1. Download the CSharpExpert.agent.md and WinFormsExpert.agent.md files at @github/awesome-copilot.
  2. Add these markdown files to your repo’s .github/agents folder.

How Can I Use Custom Agents

  • Copilot Coding Agent: When you want to assign an issue to Copilot, you can now assign the issue to the C# Expert or the WinForms Expert for added expertise.

Screenshot of Copilot Coding Agent with Custom Agent Drop-down

  • Copilot CLI: Coming soon, utilize /agent to assign tasks to the C# Expert or the WinForms Expert.

Screenshot of Copilot CLI with Custom Agent selection

  • Visual Studio Code: Now in Insiders, select your Custom Agents from the Agent drop-down menu.

Screenshot of VSCode Custom Agent selection

  • Visual Studio: Coming in November, Visual Studio 2022 v17.14.21 will automatically add the appropriate custom agent for your code base, behind a feature flag (“Enable project specific .NET instructions such as Windows Forms development when applicable.”).

How Have We Improved the Experience So Far

These Custom agents are experimental as we listen to feedback and learn how the models respond to different types of instructions. Here are some examples of how they improve the experience in their current state.

Without the C# Expert, many developers complained that Copilot created interfaces, helpers and parameters that were never used, increasing technical debt and making it harder to read the code. With the C# Expert, you should see no unused interfaces/methods/parameters generated by Copilot.

Without the WinForms Expert, one of the biggest complaints from developers was that Copilot made changes to .Designer.cs files making the Visual Studio Designer unusable. With the WinForms Expert, we’ve put in guardrails that protect your .Designer.cs files so that when Copilot finishes with the task, you can still use the Visual Studio Designer.

Learn More and Try It Out Today

These are just the beginning. You can find these and more sample agents at @github/awesome-copilot. Try them out and provide feedback as we continue to build on these agents to provide .NET developers with the best Copilot experience.

Learn more by reading our docs on custom agents and join the discussion within GitHub Community.

Author

Wendy Breiding (SHE/HER)
Senior Manager, Product Management

2 comments

Sort by :
  • Muhammad Miftah

    A C# and WinForms agent is low hanging fruit. I guess it’s easier to specialise a general coding model to C#, then even further to WinForms, because WinForms is just more C# code. What I would really want to see is a special agent for XAML (WPF, WinUI).