GitHub Copilot CLI now supports custom agents defined via Markdown files stored in your repository's `.github/agents` directory. These agent profiles let teams encode their stack, tooling, standards, and guardrails into reusable, versioned workflows. Instead of repeating one-off prompts, teams can invoke specialized agents for tasks like security audits, IaC compliance reviews, release note generation, and incident response. The post walks through four detailed example agent profiles with full YAML frontmatter and instruction blocks, and explains when to use off-the-shelf partner agents versus building your own custom agents.

16m read timeFrom github.blog
Post cover image
Table of contents
What are custom agents?How custom agents work in GitHub Copilot CLICommon workflows you can automate with custom agentsHow to choose between off-the-shelf agents vs. your own custom agentsHow to get started with custom agentsLearn moreTags:Written by
3.3K Impressions