What are Custom Agents?
Custom agents are specialized GitHub Copilot configurations that enhance the coding agent’s capabilities for specific tasks, domains, or workflows. They allow you to “teach” Copilot new skills by providing structured instructions, tools, and context through simple markdown files.Browse the Agent Catalog
Explore hundreds of ready-to-use agents for different languages, frameworks, and use cases.
How Agents Work
Agents are defined using.agent.md files with YAML frontmatter that specifies:
- Instructions: Natural language guidance for how Copilot should behave
- Tools: Which capabilities the agent has access to
- MCP Servers: External services the agent can connect to
- Model: Specific AI model to use (e.g., GPT-4, Claude)
Agent File Structure
All agents follow the.agent.md format with YAML frontmatter:
Frontmatter Fields
Human-readable name for the agent (e.g., “API Architect” not “api-architect”)
Brief description of what the agent does. Must be wrapped in single quotes.
List of tools the agent can access. Examples:
codebase, edit/editFiles, search, runCommands, web/fetchSpecific AI model to use. Strongly recommended to specify. Examples:
gpt-4, claude-3-5-sonnetMCP (Model Context Protocol) server configurations for external integrations
MCP Server Integration
Many agents integrate with MCP servers to access external services and APIs. MCP servers enable agents to:- Query external databases and APIs
- Access real-time documentation
- Interact with cloud services
- Retrieve up-to-date library information
MCP Server Configuration
Agents define MCP servers in their frontmatter:- HTTP MCP Server
- Local MCP Server
- Docker MCP Server
Real-World MCP Examples
Context7
Provides up-to-date library documentation and best practices
Apify
Access web scraping actors and automation workflows
CAST Imaging
Software discovery and impact analysis tools
Comet Opik
LLM observability, prompt management, and tracing
Installing Agents
Using VS Code Install Links
The easiest way to install agents is using the VS Code install buttons:- Browse the Agent Catalog
- Click the Install in VS Code button for your desired agent
- The agent will be automatically added to your repository
Manual Installation
You can also manually download.agent.md files:
- Download the agent file from the repository
- Place it in your project’s
.github/copilot/directory - Restart GitHub Copilot to load the new agent
Using Agents
Once installed, agents can be used in multiple ways:In VS Code Chat
Access agents through the chat interface:In Copilot Edits
Assign an agent to guide multi-file edits:- Open Copilot Edits panel
- Select your agent from the dropdown
- Describe your changes
Via Copilot CLI
Use agents from the command line (coming soon):Agent Categories
Agents are organized by their primary use case:Language-Specific
Language-Specific
Agents specialized for specific programming languages:
- C# Expert: .NET development and modernization
- C++ Expert: Modern C++ best practices
- Clojure Interactive Programming: REPL-first development
- Go MCP Development: Building MCP servers in Go
- Java MCP Development: MCP server creation in Java
Cloud & Infrastructure
Cloud & Infrastructure
Agents for cloud platforms and infrastructure:
- Azure Principal Architect: Well-Architected Framework guidance
- Azure SaaS Architect: Multi-tenant application design
- Bicep Specialist: Azure infrastructure as code
- Terraform Azure: Azure Terraform implementation
- ARM Migration: x86 to ARM cloud migration
DevOps & Automation
DevOps & Automation
Agents for CI/CD and automation:
- DevOps Expert: Infinity loop principle workflows
- GitHub Actions: Workflow automation
- Docker Expert: Container optimization
- Kubernetes: Orchestration and deployment
Web Development
Web Development
Agents for frontend and web applications:
- React Expert: Modern React patterns
- Next.js: App router and server components
- Tailwind CSS: Utility-first styling
- Accessibility Expert: WCAG compliance
- AEM Frontend: Adobe Experience Manager
Architecture & Design
Architecture & Design
Agents for software architecture:
- API Architect: REST API design and mentoring
- ADR Generator: Architectural decision records
- Blueprint Mode: Structured problem-solving
- Context Architect: Multi-file change planning
Testing & Quality
Testing & Quality
Agents focused on code quality:
- Test Expert: Test-driven development
- Code Review: Best practice reviews
- Security Auditor: Security vulnerability scanning
- Performance Optimizer: Code optimization
Integration & Services
Integration & Services
Agents for third-party integrations:
- Apify Integration: Web scraping automation
- Context7 Expert: Latest library documentation
- CAST Imaging: Impact analysis
- Dynatrace Expert: Observability integration
Creating Your Own Agents
Want to create custom agents for your team?Contributing Guide
Learn how to contribute your agents to the Awesome GitHub Copilot repository
Best Practices
Writing Effective Instructions
Writing Effective Instructions
- Use clear, concise natural language
- Provide concrete examples of expected behavior
- Define scope and boundaries clearly
- Include common patterns and anti-patterns
- Reference specific tools and their usage
Tool Selection
Tool Selection
- Only request tools the agent truly needs
- Understand tool capabilities and limitations
- Document why specific tools are required
- Test agent behavior with and without tools
Model Selection
Model Selection
- Specify
modelfor consistent behavior - Choose models based on task complexity
- Consider token limits and costs
- Test with your target model during development
Naming Conventions
Naming Conventions
- Use descriptive, human-readable names
- Keep file names lowercase with hyphens
- Name field should match agent purpose
- Description should be concise but informative
Next Steps
Browse Agent Catalog
Explore hundreds of ready-to-use agents
Learn About Instructions
Discover coding standards and patterns
Explore Skills
Self-contained task bundles with resources
View Plugins
Pre-packaged collections of related agents