Make Copilot SDK consumable for end-users by adding first-class AG-UI protocol support
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- java, javascript, typescript
調査の方向性
まず、Claude Agent SDK を使用した既存の CopilotKit サンプルをベースラインとして実行します。AG-UI Claude Agent SDK 統合を読み、そのイベントマッピング、トランスポート、パッケージ構成、状態管理、テストを理解してから、必要なアダプターの動作を Copilot SDK と比較します。推論、ツール呼び出し、結果、サブエージェントのアクティビティ、サポートされていないイベントタイプの文書化を含むエンドツーエンドのサンプルが完成すれば、完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The Copilot SDK doesn't support the AG-UI protocol out of the box, which makes it hard for end-users to actually consume an agent once they've built one. Competing SDKs already solve this — the Claude Agent SDK has a maintained integration at ag-ui/integrations/claude-agent-sdk and is consumable from CopilotKit out of the box. This proposes first-class AG-UI support for the Copilot SDK, with an offer to implement it.
Related to #1280, which asks whether AG-UI is on the roadmap; this issue proposes a concrete design, plan, and contribution.
Motivation
The Copilot SDK is becoming the default agent harness across a lot of Microsoft surface area (M365 Cowork, Copilot Studio / GitHub Copilot Agents, the GitHub Copilot app), and external adoption is following. The gap versus competing SDKs is frontend consumability:
- Customers burn weeks building bespoke agent UI when they want to focus on the agent backend. AG-UI removes that work and gives them an ecosystem of ready frontends.
- The Copilot SDK is missing from the AG-UI integrations list, while the Claude Agent SDK is there and CopilotKit-ready.
Scope
An AG-UI adapter for the Copilot SDK that:
- Maps Copilot SDK execution onto AG-UI event types: message start/content/end deltas, tool call start/args/result, reasoning/thinking events, state snapshots and deltas, run lifecycle (start/finish/error), and subagent activity.
- Mirrors the structure of the existing
claude-agent-sdkintegration so it lands as a peer inag-ui-protocol/ag-ui/integrations/, and/or ships as an optional package in this repo. - Works for both locally-run and remotely-hosted agents (e.g. Foundry-hosted), so any Copilot SDK agent drops into an AG-UI frontend with minimal glue.
- Ships an end-to-end sample (Copilot SDK agent + CopilotKit frontend).
Implementation plan
Happy to run this and open the PR:
- Baseline — stand up the existing CopilotKit sample running against the Claude Agent SDK, end to end. This is the reference experience to match.
- Study the reference integration — read
ag-ui-protocol/ag-ui/integrations/claude-agent-sdkin detail: event mapping, streaming/transport shape, state handling, package layout, tests. - Build the adapter — implement the equivalent integration adapter for the Copilot SDK, following the same structure and conventions so it reviews as a peer integration.
- Run both end to end — swap the CopilotKit sample's backend from the Claude Agent SDK to the Copilot SDK, verify the samples work unmodified, compare the two experiences side by side, and document gaps in event fidelity.
- Cross-compare — also compare against Microsoft Agent Framework and a plain/simple agent, to confirm the mapping is faithful rather than SDK-specific.
- Exercise the hard cases — test a scenario with subagents and tool calls, and confirm CopilotKit actually surfaces reasoning, tool invocations/results, and subagent interactions, so the end user can see what the agent is doing and why — not just a final answer. Streaming reasoning and nested subagent activity are the events a naive adapter drops first; they're the acceptance bar.
Task framing for an implementing agent
Take the current CopilotKit sample that runs against the Claude Agent SDK and get it running end to end as a baseline. Read the AG-UI Claude Agent SDK integration at https://github.com/ag-ui-protocol/ag-ui/tree/main/integrations/claude-agent-sdk and map its event model, transport, and package structure. Implement the equivalent AG-UI integration adapter for the GitHub Copilot SDK (https://github.com/github/copilot-sdk), following the same conventions. Then run both end to end against the CopilotKit samples and compare the resulting UX. Also compare against Microsoft Agent Framework and a plain agent as a fidelity check. Finally, build and run a scenario using subagents plus tool calls, and verify CopilotKit renders reasoning, tool calls/results, and subagent activity — the user must be able to follow what the agent is doing. Document any AG-UI event types the Copilot SDK cannot currently emit.
Open questions
- Is AG-UI something the team would take on as officially supported, or preferred as a community integration in the
ag-uirepo? - If supported here: optional package in this repo, or external with a docs pointer?
- Any planned changes to the SDK's event/streaming surface that an integration should target instead of today's API?
- Which language first — TS/JS, or should Java (github/copilot-sdk-java) land in parallel?
References
- AG-UI protocol: https://github.com/ag-ui-protocol/ag-ui
- Reference implementation: https://github.com/ag-ui-protocol/ag-ui/tree/main/integrations/claude-agent-sdk
- Existing roadmap question: #1280
- 主要言語
- TypeScript
- スター
- 10.5k
- フォーク
- 1.5k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 81
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/copilot-sdk のほかの issue
-
Clarify SDK architecture and in-process runtime transport対応中かも @KalebCole が 3 日前に担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
github/copilot-sdk#2804 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Python ModelLimits drops max_output_tokens from model metadata対応中かも @HDMowri が 5 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/copilot-sdk#2798 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/copilot-sdk#2793 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
github/copilot-sdk#2782 ·
メンテナーはふだん 1 日以内に返信
-
Rust: subagent lifecycle hooks are logged as unknown対応中かも @hackberry-lab が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
github/copilot-sdk#2781 ·
メンテナーはふだん 1 日以内に返信
github/copilot-sdk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
callstackincubator/simlock#350 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openwatersio/maritime-zones#33 ·
メンテナーはふだん 1 日以内に返信
-
Booking email verification fails for plus aliases with impersonation protection enabled対応中かも @kankadev が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
calcom/cal.diy#30293 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/DebateAI#611 ·
メンテナーはふだん 3 日以内に返信