env.dev

GitHub Copilot Extensions

Extend GitHub Copilot with third-party extensions and custom agents. Build domain-specific LLM capabilities.

Quick Install

code --install-extension github.copilot

Overview

GitHub Copilot Extensions let third-party tools integrate directly into the Copilot Chat experience. Instead of switching between tools, you can query databases, trigger deployments, search documentation, and more — all from within Copilot Chat using @mentions of installed extensions. This turns Copilot from a code completion tool into a full development platform powered by LLMs.

Popular Extensions

@docker

Get help with Dockerfiles, docker-compose, container optimization, and debugging container issues.

@sentry

Query Sentry for error details, stack traces, and fix suggestions directly in your editor.

@azure

Manage Azure resources, deploy applications, and get cloud architecture guidance.

Building a Custom Extension

  • Create a GitHub App with the Copilot Agent permission
  • Implement an HTTP endpoint that receives chat messages
  • Return responses using the Copilot Extensions API format
  • Add context from your domain — database schemas, API docs, internal tools
  • Publish privately for your org or publicly on the marketplace

Custom Instructions

.github/copilot-instructions.md
# Project Instructions for Copilot

## Tech Stack
- TypeScript, React 19, Tailwind CSS v4
- API: tRPC with Zod validation
- Database: PostgreSQL via Drizzle ORM

## Conventions
- Use named exports, not default exports
- Prefer server components in Next.js
- All database queries go through the repository pattern
- Use Result types for error handling, not exceptions

Frequently Asked Questions

What are Copilot Extensions?

Copilot Extensions are third-party integrations that add domain-specific capabilities to GitHub Copilot — database assistants, deployment helpers, documentation tools, and more.

Can I build my own Copilot Extension?

Yes. GitHub provides an API for building Copilot Extensions. You create a GitHub App that responds to Copilot Chat messages with domain-specific context.