Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
147271 stories
·
33 followers

Building GitHub Copilot Agents in C# with Microsoft Agent Framework

1 Share

⚠ This blog post was created with the help of AI tools. Yes, I used a bit of magic from language models to organize my thoughts and automate the boring parts, but the geeky fun and the 🤖 in C# are 100% mine.

GitHub Copilot just crossed a very interesting line.

It’s no longer “just” helping you write code — it can now run as an agent, with goals, tools, and autonomy, using Microsoft Agent Framework (MAF).

🎥 Watch the full video here:

In the video, I walk through three simple C# samples showing how Copilot can be used as an agent, not just a coding assistant.


From autocomplete to autonomy

The mental model shift is simple:

  • ❌ Copilot as a tool → prompt → suggestion
  • ✅ Copilot as an agent → goal → plan → act

With Microsoft Agent Framework, GitHub Copilot becomes part of your agent runtime, not just your editor UI.


Sample 1 – Creating a Copilot-backed agent

At its core, you define an agent and tell it what it is allowed to do.

using GitHub.Copilot.SDK;
using Microsoft.Agents.AI;
await using CopilotClient copilotClient = new();
await copilotClient.StartAsync();
AIAgent agent = copilotClient.AsAIAgent(
instructions: "You are a helpful agent.");

No hacks.
No wrappers.
This agent is powered directly by GitHub Copilot.


Sample 2 – Giving the agent a goal

Instead of prompting, you assign tasks.

await agent.RunAsync("""
Review this C# project and explain what it does.
Focus on architecture and main responsibilities.
""");

This is where Copilot stops responding and starts working.


Sample 3 – Applying it to real dev workflows

In the video, I show how the same agent can be used for things like:

  • Understanding unfamiliar repositories
  • Explaining legacy code
  • Supporting real developer workflows
await agent.RunAsync("""
Analyze this repository and suggest improvements.
Create a summary suitable for a pull request description.
Run the analisys using CODEX and OPUS.
""");

This feels much closer to a junior developer teammate than a chat window.


Why this matters for .NET developers

If you’re building in C# today:

  • You already know GitHub Copilot
  • You already write .NET services
  • You already work with repositories and PRs

Microsoft Agent Framework + Copilot is the shortest path from AI ideas to real systems.


Resources

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.

More info in https://beacons.ai/elbruno




Read the whole story
alvinashcraft
just a second ago
reply
Pennsylvania, USA
Share this story
Delete

Things That Caught My Attention Last Week - February 8

1 Share

caught-my-i

Open-source

Stopwatch Overlay - Always-on-top timer for recordings & presentations by Clemens Vasters

Software Architecture

.NET

.NET Framework 3.5 Moves to Standalone Deployment in new versions of Windows by Tara Overfield

WinGet Configuration: Set up your dev machine in one command by Kayla Cinnamon

Lease Pattern in .NET: A Lock With an Expiration Date That Saves Your Data by Chris Woodruff

Roadmap for AI in Visual Studio (February) by Rhea Patel

Exploring the (underwhelming) System.Diagnostics.Metrics source generators by Andrew Lock

Building a Greenfield System with the Critter Stack by Jeremy D. Miller

Integrate Keycloak with ASP.NET Core Using OAuth 2.0 by Milan Jovanović

Encrypting Properties with System.Text.Json and a TypeInfoResolver Modifier (Part 2) by Steve Gordon

Project Management/Administration

Welcome to the Room by Jeffrey Snove

Shortwave: When institutions stop thinking for themselves by Mike Amundsen

REST/APIs

Sustainable APIs by Alexander Karan

Azure

Auto-install azd extensions in dev containers by PuiChee (PC) Chan

How to Enable Microsoft Entra ID for Azure Cosmos DB (NoSQL) by Sudhanshu Khera

Azure Boards integration with GitHub Copilot includes custom agent support by Dan Hellem

Software Development

Bjarne-s Last Stand: How the Father of C++ Is Fighting a Losing War Against Rust by Henrique Bucher

Code that fits in a context window by Mark Seemann

Essential Rules of Software Engineering by Gérald Barré

Your Idempotent Code Is Lying To You by Derek Comartin

Windows

Microsoft Adds Sysmon To Windows by Slashdot

AI

Using personal instructions in GitHub Copilot Chat by Cassidy Williams

What Senior Engineers Need to Know About AI Coding Tools by Marc Grabanski

How to write a great agents.md: Lessons from over 2,500 repositories by Matt Nigh

Continuous AI in practice: What developers can automate today with agentic CI by GitHub Staff

Read the whole story
alvinashcraft
28 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Page vs RDL vs Section Reports in a .NET C# Application

1 Share
Learn about the difference between page, section, and RDL reports in your .NET C# application. See more from ActiveReports today. Continue reading
Read the whole story
alvinashcraft
38 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

AI-Powered Search in SQL Server 2025

1 Share

Uncover the power of SQL AI powered search with vector support in SQL Server 2025 for intelligent data management.

The post AI-Powered Search in SQL Server 2025 appeared first on MSSQLTips.com.

Read the whole story
alvinashcraft
50 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Daily Reading List – February 9, 2026 (#717)

1 Share

Congrats to my Seattle friends for having a Super Bowl winner. So-so game, but terrific outcome for their fans. One of the years, I’ll live in a city that wins any sort of championship.

[blog] The hidden danger of shipping fast. I like the advice here. If you’re shipping faster than your customers can absorb it, don’t slow down. But rethink how you share and position updates.

[blog] Tutorial: Mastering the Google Developer Knowledge MCP Server. This is such an outstanding walkthrough of this grounding-source for developers. You don’t have to be building AI apps to take advantage of always-fresh knowledge sources.

[blog] Death of Software. Nah. We’re going to need more, and different software. If you look to the past, you see all sorts of disruptive tech transitions that ushered in new, exciting eras.

[article] 3 Signs It’s Time for Your Next Chapter. These speak to me. I leave jobs when I hit my ceiling (learning-wise, level-wise) and feel to comfortable in the role.

[article] OpenAI launches a way for enterprises to build and manage AI agents. If you’re helping make buying decisions at your company, you’re going to be awash in options fo agent development and management.

[blog] AppGen Is Eating Low-Code — What It Means To You. Classic low-code platforms weren’t for developers. I never met one who wanted to use one. But modern AI app building stacks? Devs are all over them. Do or die moment for the classic vendors!

[blog] OTLP everywhere: Cloud Monitoring now supports OpenTelemetry Protocol metrics. If you don’t know what OpenTelemetry is, ask your platform team. I’m glad we’ve added such rich support to Google Cloud.

[blog] Skills Are the Most Underrated Feature in Agentic AI. I need to jump on this bandwagon. It’ll probably happen once I sit down and build a few of these and see the light.

[blog] ​Sequential Attention: Making AI models leaner and faster without sacrificing accuracy. We’re learning more every day. Here’s a new approach from Google Research that you apply during the training stage.

[article] IDEcline: How the world’s most powerful coding tools became second-class citizens overnight. What is the IDE now? Not necessarily where the work happens. It’s where you coordinate and verify work done elsewhere.

[blog] Access public data insights faster: Data Commons MCP is now hosted on Google Cloud. Talk about an amazing grounding source! Bring the trusted Data Commons into your AI tools using our new hosted MCP server.

Want to get this update sent to you every day? Subscribe to my RSS feed or subscribe via email below:



Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete

Get agents off your machine

1 Share
2026 is going to be the year that development actually moves to the cloud. Folks have been talking about this shift for a long time – after all, it’s pretty unusual to use an offline desktop app to do knowledge work these days and most other knowledge-work interfaces have moved from local, single-user desktop software to cloud-based collaboration. The transitions from Word to Google Docs or Sketch to Figma are good examples. But up until now, there hasn’t been a great reason for software devel...

Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories