#2887·ag-ui

[Feature]: Add GitHub Copilot SDK integration

Author: ArlindNocajCreated Oct 1, 2026Updated Oct 1, 2026

Pre-flight Checklist

  • I have searched existing issues and this hasn't been requested yet.

Problem or Motivation

The GitHub Copilot SDK is becoming a common agent harness across Microsoft and GitHub, but there is no AG-UI integration for it. If you build an agent with it, you can't plug it into an AG-UI frontend such as CopilotKit without writing your own glue. The Claude Agent SDK already has an integration at integrations/claude-agent-sdk, but the Copilot SDK is missing from the integrations list.

Upstream tracking issue on the SDK side: github/copilot-sdk#2318 (related: github/copilot-sdk#1280).

Proposed Solution

Add a community integration at integrations/copilot-sdk/, laid out like claude-agent-sdk so it reviews as a peer:

  • TypeScript (@ag-ui/copilot-sdk) and Python (ag_ui_copilot_sdk) adapters that map Copilot SDK session events to AG-UI events. This covers:
    • run lifecycle
    • text message start, content and end
    • reasoning
    • tool call start, args and result
    • state snapshots and deltas
  • Thread-to-session mapping, so one AG-UI thread reuses one Copilot SDK session across runs.
  • Cancellation support.
  • Examples, Dojo registration (agents.ts, menu.ts, env.ts, prep and run scripts), e2e tests and CI, following the "Adding an Integration PR" guide in CONTRIBUTING.md.

A working implementation already exists in a fork: https://github.com/ArlindNocaj/ag-ui/tree/main/integrations/copilot-sdk. Per CONTRIBUTING.md, I'm filing this first to check that it fits before I open the PR. I'm happy to maintain it as a community integration.

Alternatives Considered

  • Ship the adapter inside the Copilot SDK repo instead. It is still an open question on github/copilot-sdk#2318. Having it in ag-ui/integrations puts it next to the other integrations and the Dojo, where it's easiest to find.
  • Use the generic HTTP agent with a hand-written server. This works, but every user has to re-implement the event mapping themselves.

Additional Context