Make Copilot SDK consumable for end-users by adding first-class AG-UI protocol support
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- java, javascript, typescript
调研方向
首先运行现有的 CopilotKit 示例,并将其与 Claude Agent SDK 一起作为基线。阅读 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 天 7 小时
- 30 天内合并 PR
- 64
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-sdk 的其他 Issue
-
Clarify SDK architecture and in-process runtime transport可能已有人在做 @KalebCole 于 4 天前认领。 未关闭documentation
难度 1/5 1 小时以内 新手友好度 92/100
github/copilot-sdk#2804 · 1 条评论 ·
维护者通常 1 天内回复
-
Python ModelLimits drops max_output_tokens from model metadata可能已有人在做 @HDMowri 于 6 天前认领。 未关闭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 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
github/copilot-sdk#2781 ·
维护者通常 1 天内回复
查看 github/copilot-sdk 的全部 Issue
相似的 Issue
-
fix(data-lake): wizard source step still previews the local slug, not the server-disambiguated one未关闭data-lake
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
enhancement good first issue priority: low size: XS
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
-
bug ios mobile priority:P1
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
streamplace/streamplace#1351 ·
维护者通常 2 天内回复