Repository navigation
feat: add GitHub Copilot SDK agent binding - #189
Merged
Merged
Conversation
hallvictoria
requested review from
Gavin Aguiar (gavin-aguiar) and
Varad Meru (vrdmr)
as code owners
September 30, 2026 21:24
Laveesh Rohra (larohra)
previously approved these changes
Oct 9, 2026
…-extensions into hallvictoria/copilot-sdk-binding
Gavin Aguiar (gavin-aguiar)
previously approved these changes
Oct 29, 2026
hallvictoria
dismissed
Gavin Aguiar (gavin-aguiar)’s stale review
via
October 29, 2026 17:10
a08ed8d
Gavin Aguiar (gavin-aguiar)
approved these changes
Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
azurefunctions-agents-extensions-copilot-sdk, an Azure Functions Agent binding provider that injects GitHub Copilot SDK sessions built from raw.agent.mdinstructions. Adds a skill for adding new Agent Bindings.Binding lifecycle
copilot.session.CopilotSession.CopilotClient, then creates and closes a freshCopilotSessionfor each Function invocation.CopilotClient(mode="empty")withCOPILOT_GITHUB_TOKENand an isolatedCOPILOT_BASE_DIRECTORY, disables telemetry and interactive logged-in-user authentication, and reads the session model fromCOPILOT_MODEL.Public configuration
AgentFunctionApp(...)acceptsmodel,client_factory,app_root,on_permission_request,provider,tools,session_options, andhttp_auth_level. It defaultson_permission_requesttoPermissionHandler.approve_all, which is intended only for trusted tools.@app.markdown_agent(...)requiresarg_nameandagent_nameand accepts the same session arguments a customer would pass directly toCopilotClient.create_session(...):The extension forwards these values when creating the injected session. Unsupported argument names fail with a clear validation error. The decorator can also override
client_factory,model,on_permission_request,provider, andtoolsfor one binding.Capabilities
skills/*/SKILL.mdand remote HTTP MCP servers frommcp.json, including tool allowlists, environment expansion, static headers, and optional Entra authentication.Fixes https://github.com/Azure/azure-functions-bucees-planning/issues/1356