
GitHub 在 2026 年 7 月 2 日宣布 Copilot agent session streaming 進入 public preview。GitHub Enterprise Cloud customers with enterprise managed users 現在可以跨 Copilot clients 存取 agent session data,包括 github.com cloud agents、ghe.com data resident deployments、Copilot CLI、VS Code、Visual Studio 以及 JetBrains、Eclipse 等 partner IDEs。
這次更新的重點是可觀測性。GitHub 明確提到企業可以看到 agent session activity,例如 prompts、responses 和 tool calls。換句話說,當 AI agent 開始在 IDE、CLI 和 cloud environment 裏做多步工作,企業管理員終於有一條方式把這些活動納入治理和審計。
資料取得方式有兩種。第一是 streaming endpoint,可以由 audit log settings 建立串流連線,把 session data 自動送到 event collector 或 SIEM;Microsoft Purview 亦在 public preview 中成為支援 endpoint。第二是 REST API,enterprise owners 可以用 GET /enterprises/{enterprise}/copilot/usage-records 拉取最近 48 小時的 session data。
這件事重要,因為 AI agent 的風險不只在於模型答案是否正確,而在於它做過哪些步驟、讀過哪些內容、呼叫過哪些工具、產生過哪些修改建議。沒有 session-level telemetry,企業只能看結果,很難追蹤問題來源,也難以建立安全和合規報告。
對工程團隊而言,這會把 agent adoption 由個人效率工具推向正式營運工具。當 prompts、responses 和 tool calls 可以進入 SIEM 或 audit pipeline,安全、平台和工程管理者就能用同一套監控方式處理 agent activity、異常用量、敏感操作和事後調查。
Copilot agent session streaming 的訊號,是 AI coding agent 正開始進入企業 observability stack。未來採用 agent 的成熟度,不只看模型能力或使用人數,也會看企業能否量度、保留、分析和治理 agent 的工作紀錄。



