GitHub Copilot in Visual Studio: Custom Agents via .agent.md Files
The March 2026 Visual Studio update brings custom Copilot agents to Visual Studio, allowing developers to define specialized agents as .agent.md files directly in their repositories. These agents gain full workspace awareness, access to preferred models, and connections to external knowledge sources via MCP β and appear automatically in the agent picker for team use. Alongside custom agents, agent skills arrive as reusable instruction sets that teach agents to perform specific repeatable tasks, with Copilot auto-discovering them from repos or user profiles. Together, these features turn GitHub Copilot in Visual Studio into a fully extensible platform for team-specific AI workflows.
Key Takeaways
- Custom Copilot agents can now be defined as
.agent.mdfiles committed to any repository, making specialized agents versioned, shareable, and immediately available to the whole team in the VS agent picker. - MCP connections give custom agents access to external knowledge sources, enabling agents that can read Confluence docs, internal wikis, or proprietary APIs while working on code.
- Agent skills encode repeatable operational workflows β not just coding guidelines β so teams can teach Copilot how to run builds, generate boilerplate, or follow deployment checklists consistently.
- The new
find_symboltool provides language-aware navigation for C++, C#, Razor, TypeScript, and LSP languages, giving agents precise reference-finding and type metadata access rather than text-search approximations. - The
awesome-copilotcommunity repo provides a growing library of publicly available agent skills that any team can adopt without building from scratch. - Custom agents and skills require Visual Studio 2026 version 18.4 or later, making this a strong incentive for teams still on older Visual Studio versions to upgrade.
Sources & Mentions
4 external resources covering this update
Visual Studio March Update β Build Your Own Custom Agents
Visual Studio Blog
Hands On with New Experimental GitHub Copilot 'Agent Skills' in VS Code
Visual Studio Magazine
Visual Studio 2026: AI Assistant Copilot Fixes NuGet Vulnerabilities
Heise Online
Community Discussion: Copilot in Visual Studio 2026
GitHub
Custom Agents Come to GitHub Copilot in Visual Studio
The March 2026 update for GitHub Copilot in Visual Studio introduces custom agents β a major extensibility feature that lets teams define specialized, purpose-built Copilot agents as .agent.md files committed directly to their repositories.
Defining Custom Agents
A custom agent is created by dropping a .agent.md file into the .github/agents/ directory of a repository. Once present, the agent automatically appears in the Visual Studio agent picker, ready for any team member to invoke via @agentname syntax in the Copilot Chat input.
Custom agents receive full access to:
- Workspace awareness and code comprehension β the agent understands the repository structure and source code
- Tool access β including the new
find_symbollanguage navigation tool - Model preferences β teams can configure which AI model the agent uses by default
- MCP connections β agents can connect to external knowledge sources (wikis, design docs, internal APIs) through the Model Context Protocol
This makes it practical to ship agents tailored to a team's specific domain β for example, an agent pre-configured with the organization's architecture standards, or one that knows how to interact with an internal deployment API.
Agent Skills: Reusable Instructions for Repeatable Tasks
Alongside custom agents, the update introduces agent skills in Visual Studio. Skills are reusable instruction sets β defined as SKILL.md files in a repository or user profile β that teach Copilot agents how to perform specific tasks consistently.
Unlike custom instructions that primarily define general coding guidelines, skills encode operational workflows: running a build pipeline, generating boilerplate to a team's standards, following a code review checklist, or executing a deployment sequence. Copilot automatically discovers and applies relevant skills when working on tasks that match them.
The community-shared resource awesome-copilot provides a growing collection of publicly available skills that any team can adopt.
New Developer Tooling
The March update also ships a new find_symbol tool that gives Copilot language-aware navigation capabilities: finding all references, accessing type metadata, and understanding declarations and scope. Supported languages include C++, C#, Razor, TypeScript, and any language with an LSP extension installed.
Combined with custom agents and skills, the find_symbol tool helps agents navigate large codebases more precisely, making agent-driven refactoring and exploration significantly more accurate.
Availability
Custom agents and agent skills require Visual Studio 2026 version 18.4 or later. Both features are available to all GitHub Copilot subscribers.