Skip to main content
9 – 17 UHR +49 8031 3508270 LUITPOLDSTR. 9, 83022 ROSENHEIM
DE / EN
Coding agent GitHub (Microsoft) United States Terminal, IDE, Web

GitHub Copilot

GitHub Copilot is Microsoft's AI assistant for developers, with Copilot CLI, coding agent and agent mode. Models, permissions, MCP and enterprise use covered.

Licence Proprietary
First release September 2025 (public preview of Copilot CLI)
Interfaces Terminal (CLI), VS Code, GitHub.com, Web/cloud agent
Platforms macOS, Linux, Windows
Instruction file AGENTS.md (also .github/copilot-instructions.md)

The seven building blocks in GitHub Copilot

How GitHub Copilot implements the building blocks of an AI harness

  1. 1

    Agent loop

    Copilot CLI calls the model, evaluates its tool requests, executes them and returns results; a plan mode (toggled with Shift+Tab) lets you build a structured plan first.

  2. 2

    Tools and execution environment

    Tools range from file and terminal access to GitHub integrations (repositories, issues, pull requests) and MCP servers, which the documentation describes as adding further data sources and tools.

  3. 3

    Context management

    Copilot CLI manages context through automatic compaction at 95 percent token usage, plus the /compact and /context commands for manual control and usage display.

  4. 4

    State and memory

    According to the documentation, sessions are stored as a searchable history with an event log and workspace artefacts (plans, checkpoints, tracked files), allowing earlier sessions to be resumed.

  5. 5

    Permissions

    Tool calls trigger approval prompts (once, for the session, or rejection with feedback); the flags --allow-all-tools, --allow-tool and --deny-tool let you pre-set these rules.

  6. 6

    Verification and feedback

    /session checkpoints and a rewind command can reset the session and files to an earlier state; hooks can, per the documentation, log or block prompts and tool calls.

  7. 7

    Orchestration

    Custom agents allow specialised Copilot variants for specific tasks, and plugins bundle agents, skills, hooks and integrations as installable packages.

Models and model access

Which models the harness uses and how they are obtained

Models and model access
Models model selection via /model, including OpenAI GPT, Anthropic Claude and Google Gemini models
Access routes GitHub Copilot (hosted), custom OpenAI-compatible endpoint, Azure OpenAI, Anthropic API, Ollama/local models
Free choice of model Yes
Custom endpoint / LLM gateway Yes
According to the documentation, Copilot CLI can be pointed at a custom OpenAI-compatible endpoint, Azure OpenAI, Anthropic or a local model (e.g. Ollama) via the environment variables COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_TYPE, COPILOT_PROVIDER_API_KEY and COPILOT_MODEL.
Features
MCP servers Sub-agents Hooks Skills Plugins / extensions Sandbox Headless / CI SDK IDE integration Checkpoints Resume sessions
Running it with herdr
Supported by herdr Yes
State detection Screen manifest
Integration Session
herdr's agent overview lists GitHub Copilot CLI as detected via a screen manifest, without using lifecycle hooks.
More about herdr →

Enterprise use

Data processing, controls and pricing model according to the vendor

Data processing and EU scope

GitHub offers a Data Processing Agreement for Copilot Business and Enterprise; per the documentation, Enterprise environments using 'GitHub Enterprise Cloud with data residency' can restrict Copilot to an EU data region, keeping model inference and associated data there.

Identity and SSO

Organisations can connect Copilot to an existing SAML SSO setup with Entra ID, Okta, OneLogin or PingOne; sign-in then follows the same organisation-wide SSO flow.

Admin policies and content exclusion

Enterprise and organisation admins can restrict Copilot to data-resident or FedRAMP-compliant models, and content exclusion can remove specific repositories or paths from Copilot's reach.

Audit logs

Per the documentation, Copilot logs seat assignments, policy changes and access events in audit logs retained for 180 days, exportable as JSON or CSV.

Pricing model

Copilot CLI is included in the paid Copilot plans (Pro, Pro+, Business, Enterprise); see the vendor for current terms.

Strengths
  • Tight integration with GitHub repositories, issues and pull requests directly from the terminal
  • Freely configurable model access via custom provider endpoints (OpenAI-compatible, Azure OpenAI, Anthropic, local)
  • Extensible through MCP, hooks, skills and installable plugins
  • Rewind function to reset session and files
  • Enterprise features such as SSO, content exclusion and audit logs already in place
Limitations
  • Cloud and local sandboxes are currently in public preview, per the documentation, and may still change
  • How hooks behave in non-interactive (headless) mode is not documented in detail

Use cases

Typical tasks for this harness

Agentic coding tasks directly in the terminal, without switching to an IDE
Automated scripts and CI runs via the non-interactive mode (-p/--prompt)
Specialised custom agents for code review, documentation or security checks
Connecting internal systems and data sources via MCP servers
Teams already standardised on GitHub as their development platform

GitHub Copilot is the AI assistant built by GitHub, a Microsoft company, for software development. As an AI harness, it supplies the tools, context management and execution environment that turn a language model into a working coding agent, through Copilot CLI, the coding agent, and agent mode in IDEs. As of 20 September 2026.

What is GitHub Copilot?

GitHub Copilot is built by GitHub and is proprietary. Copilot CLI — described in GitHub’s documentation as bringing “the power of GitHub Copilot directly to your terminal” — entered public preview in September 2025 and has been generally available since February 2026. It runs on macOS, Linux and Windows (including PowerShell and WSL), and is installed via npm install -g @github/copilot, Homebrew, WinGet, or an install script. It requires an active Copilot subscription; an interactive session starts with the copilot command. Alongside the CLI, Copilot exists as an agentic mode in VS Code and other IDEs, and as a coding agent that works on tasks directly on GitHub.com.

GitHub Copilot as an AI harness

Copilot CLI calls the model, evaluates its tool requests, and executes them — either interactively or non-interactively via -p/--prompt for scripts and CI pipelines. A plan mode, toggled with Shift+Tab, builds a structured plan before making changes. Tool calls trigger approval prompts, answerable once, for the whole session, or with rejection; the flags --allow-all-tools, --allow-tool and --deny-tool let you pre-set these rules. Per the documentation, Copilot reads project instructions from AGENTS.md files (multiple allowed, nearest one taking precedence) as well as from .github/copilot-instructions.md. Tool integrations rely on the Model Context Protocol (MCP); custom agents allow specialised Copilot variants for individual tasks, and plugins bundle agents, skills, hooks and integrations as installable packages. Hooks can, per the documentation, log or block prompts and tool calls. For execution environments, the CLI offers local sandboxing (/sandbox enable) as well as cloud-backed sessions (copilot --cloud).

Models and model access

Copilot CLI lets you switch models with the /model slash command; available options include models from the OpenAI GPT, Anthropic Claude and Google Gemini families, depending on the Copilot plan. GitHub also documents its own BYOK (bring your own key) configuration: the environment variables COPILOT_PROVIDER_BASE_URL, COPILOT_PROVIDER_TYPE, COPILOT_PROVIDER_API_KEY and COPILOT_MODEL let you point the CLI at any endpoint compatible with the OpenAI Chat Completions API, at Azure OpenAI, at the Anthropic API, or at locally hosted models (for example via Ollama) — provided the model supports tool calling and streaming. This means GitHub Copilot CLI can be operated through a central, OpenAI-compatible proxy such as the AI Gateway by setting its endpoint as COPILOT_PROVIDER_BASE_URL.

Enterprise use: data protection and governance

GitHub offers a Data Processing Agreement for Copilot Business and Enterprise. Per the documentation, Enterprise environments can use “GitHub Enterprise Cloud with data residency” to restrict Copilot to an EU data region, keeping inference and associated data there; admins can additionally restrict models to FedRAMP-compliant options for US data residency. Organisations with an existing SAML SSO setup (Entra ID, Okta, OneLogin, PingOne) use the same sign-in flow for Copilot. Content exclusion lets you remove specific repositories or paths from Copilot’s reach, and audit logs record, per the documentation, seat assignments, policy changes and access events over 180 days. Regardless of the model configured, source code and prompts go to whichever model provider is set, which should be reflected in your own record of processing activities beforehand.

Orchestrating GitHub Copilot with herdr

Per herdr’s agent overview, GitHub Copilot CLI is listed there with the same, lighter integration level as many terminal agents without installable lifecycle hooks: herdr detects a running session via a screen manifest and attaches to it. Teams orchestrating several coding agents in parallel terminal sessions can include Copilot CLI alongside other harnesses this way.

Where it fits: developer harness and enterprise harness

GitHub Copilot is a harness for developers working in the terminal, in an IDE, and on GitHub.com. For business users outside development, who work with company knowledge rather than code repositories, CompanyGPT is the matching harness — with tools via MCP servers and integrations, context via companyRAG, and roles from your existing directory service. The AI Gateway provides the shared cost and governance layer that connects both coding harnesses such as Copilot CLI and CompanyGPT to central budgets, providers and logging. An overview of further AI harnesses is available at /en/ai-harness/. We help organisations embed GitHub Copilot into existing AI governance and a central AI Gateway.

From developer harness to enterprise harness

Coding harnesses are tools for developers. Business users, cost control and governance need two more layers.

CompanyGPT – the harness for business users

CompanyGPT gives any language model tools via MCP servers, integrations and n8n, company knowledge via companyRAG, roles from Entra ID or Keycloak, and audit logs – operated in your Azure environment or sovereignly on STACKIT.

Discover CompanyGPT
AI Gateway – cost and governance for every agent

The AI Gateway bundles the model access of your tools and coding agents behind an OpenAI-compatible API: authentication via Entra ID, budgets and cost centres per team, user and agent, guardrails and complete logging.

View the AI Gateway

Frequently Asked Questions

What is GitHub Copilot?

GitHub Copilot is GitHub's (Microsoft's) AI assistant for developers, available as an IDE extension, a coding agent on GitHub.com, and as Copilot CLI in the terminal. As an AI harness it provides the agent loop, tools, context management and permissions around several underlying AI models.

Is GitHub Copilot open source?

No. GitHub Copilot and Copilot CLI are proprietary GitHub products; the github/copilot-cli repository contains publicly visible code but is not published under an open source licence.

Which models does GitHub Copilot support?

Copilot CLI lets you pick a model via the /model command, including models from OpenAI, Anthropic and Google. Environment variables also let you connect a custom OpenAI-compatible endpoint, Azure OpenAI, the Anthropic API, or a locally hosted model.

Can GitHub Copilot be used in a GDPR-compliant way?

GitHub offers a Data Processing Agreement for Copilot Business and Enterprise, plus the option to restrict data residency to the EU. Whether that is sufficient in a given case depends on the chosen plan, the connected models, and your own record of processing activities.

Does GitHub Copilot CLI work with herdr?

Yes. herdr lists GitHub Copilot CLI among its supported agents and detects a running session via a screen manifest, without relying on the CLI's lifecycle hooks.

What is the difference between Copilot agent mode and Copilot CLI?

Agent mode is Copilot's agentic mode inside an IDE (such as VS Code), where it edits multiple files and runs terminal commands. Copilot CLI is the same underlying agentic technology packaged as a standalone terminal program that runs without an IDE.

Introduce coding agents safely in your company

We support selection, model access in the EU, permission design and cost control.