BRK276 · Breakout

Beyond coding: Build next-gen agents with the Microsoft Copilot SDK

  • Wednesday 18 November
  • 38 min
  • Catalogue level: (200) Intermediate
  • Our depth rating: 300
  • Worth watching: 3/3

Speakers: Patrick Nikoletich, Steve Sanderson

Watch on Microsoft’s site from 00:07

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

The session introduces the Microsoft Copilot SDK (rebranded from GitHub Copilot SDK) and its 2.0 release, which adds a shared multi-tenant runtime serving many users from one instance. A continuous demo built on the open-source Managed Copilot SDK walks through a game shop launch: a customer support agent with user-bound custom tools, a Help Desk handling 25 concurrent sessions, runtime memory with human-approved team knowledge, and request classification comparing Claude Haiku with a Foundry decision model. It then shows Data Desk promoting a session into an isolated sandbox for Python, Incident Commander using OpenTelemetry and the brain-hands split, and a software factory with a human approval callback for deployment. The final demo attaches Copilot CLI to a cloud session via the Agent Host Protocol (AHP), and the recap covers Aspire deployment to Azure.

Best for: Developers and architects building custom agents on the Copilot runtime who need to understand multi-tenant hosting, sandboxing, memory and approval patterns.

Session timeline by chapter

New material starts at 00:07. There is no recap intro; the session opens directly with the SDK rebrand and the 2.0 release, and new content continues through to the closing recap at 34:09.

Where to skip: Watch from 00:07; the core is the shared-runtime tool snippet at 06:23, memory at 13:12, sandbox promotion at 18:32, the brain-hands split at 22:49, the approval callback at 26:21 and AHP at 30:54; the recap from 34:09 can be skipped except the Aspire/Foundry deployment note around 37:03.

Chapters (11)

  1. 00:07 New Depth 200 · Novelty 2/3

    Microsoft Copilot SDK: rebrand from GitHub Copilot SDK, 2.0 release, runtime and harness

    The speakers introduce the Microsoft Copilot SDK, which went GA as the GitHub Copilot SDK at Build and was announced last month as being rebranded to Microsoft Copilot SDK; Copilot SDK 2.0 was announced as shipped the day before. The SDK is described as the programmatic interface to the Copilot runtime (the engine) and the default Microsoft Copilot harness, which is portable (local, cloud or both) and not tied to one inference provider (Foundry, GitHub, third-party or local models). The harness is said to already power products across the portfolio, including Copilot Studio and Copilot Cowork, with one shared developer configuration across GitHub surfaces.

  2. 03:42 New Depth 200 · Novelty 2/3

    What's new in 2.0: shared multi-tenant runtime; Downhill scenario and managed-copilot-sdk samples

    Steve explains the new shared multi-tenant architecture in 2.0, which serves many users concurrently from one runtime instance instead of one instance per user, making hosting cheaper. Details are deferred to the afternoon session; this talk stays high level. The demo scenario is introduced: launching a skin shop in the Downhill mountain-biking game, built with Managed Copilot SDK, an open-source reference library showing deployment configurations that can be used as is or mined by an agent.

  3. 06:23 Demo Depth 300 · Novelty 2/3

    Demo: customer support agent on the shared runtime, safe-by-construction tools

    Steve enables the shop via a feature flag, adds the Neon Mona skin to the cart and hits an invalid promo code TRAIL15, then contacts the AI support agent built with Copilot SDK. The agent reads the user's checkout state through a custom tool and reports the issue to engineering. New in 2.0 is that all untrusted users run in a single shared runtime; a code snippet shows the get_checkout tool bound to the current user ID and the session restricted to custom tools only, excluding shell and file system tools.

  4. 10:49 Demo Depth 200 · Novelty 2/3

    Demo: Help Desk app and a 25-customer burst on a single runtime with zero sandboxes

    Steve opens the internal Help Desk app where support requests land, showing the agent's tool calls and bug report. He simulates 25 customers submitting requests simultaneously; all sessions run in parallel in one runtime instance with zero sandboxes. Inspecting customer Matteo Rossi shows the same TRAIL15 problem, revealing a trend, and Steve notes the drawback that isolated sessions cannot learn from each other.

  5. 13:12 Demo Depth 300 · Novelty 2/3

    Runtime memory with pluggable storage and human-approved team knowledge

    Steve shows the built-in memory feature of the Copilot runtime, derived from the coding agent: enabled per session, with a pluggable storage backend (disk, database, blob store, Cosmos) and integration with secret redaction. In the demo he tells Matteo's agent the issue is known and asks it to store a memory; proposals require approval before entering the team knowledge base, and the agent also proposed a memory on its own. After re-running the simulation, Matteo's agent answers that it is a known website bug.

  6. 16:20 Demo Depth 300 · Novelty 2/3

    Multiple inference providers at once: LLM vs Foundry decision model for classification

    Steve explains that the SDK accepts any inference provider (Foundry, GitHub, OpenAI- or Anthropic-compatible endpoints) and, as a fairly unique feature, several at once. 25 support requests are classified with Claude Haiku using structured output (fixed category list) in 23 seconds and 23,000 tokens. The same task with a Foundry decision model (MS Decision One) finishes in 2.2 seconds using about a quarter of the tokens.

  7. 18:32 Demo Depth 300 · Novelty 2/3

    Data Desk: shared-runtime data chat that promotes itself into a sandbox for Python

    Data Desk is a natural-language-to-query app running on the shared runtime, limited to data tools without shell or code execution. It answers queries about top items and rejected promo codes, and confirms it has no Bash or Python. Asked to chart rejections versus orders, it calls a request-sandbox tool; after approval the session migrates without losing state into an isolated container (spun up in three seconds), runs bash/Python and produces a chart.

  8. 22:49 Deep dive Depth 300 · Novelty 2/3

    Incident Commander: OpenTelemetry alerts and the brain-hands split architecture

    Incident Commander receives telemetry, including OpenTelemetry data exported from the Copilot runtime, and deterministic thresholds raise an incident for failed promo checkouts. Steve explains the brain-hands split: the agent loop (brain) runs cheaply in the shared runtime while tool calls (hands) are automatically routed to a sandbox that is spun up on demand and discarded afterwards. A simulated HTTP 500 checkout incident shows a fast shared-runtime session triggering sandbox deployment for tool calls.

  9. 26:21 Demo Depth 300 · Novelty 2/3

    Software factory: planning, build, review and release agents with human approval callback

    Incident Commander sends a root-cause report (case-sensitivity bug) to a software factory: a planning agent in the shared runtime, a build agent in an isolated container, a review agent, and a release agent. This mixed architecture can even let agents decide topology themselves. The release agent can only request deployment; code shows an onPermissionRequest callback that auto-approves tools except deploy, which waits asynchronously for a human, while the session can be suspended at no cost for days.

  10. 30:54 Demo Depth 300 · Novelty 2/3

    Agent Host Protocol (AHP): attaching Copilot CLI to a cloud session, deploying the fix

    Steve reviews the diff (uppercasing the promo code before lookup) and explains AHP, a standard protocol from the VS Code team for connecting UIs to agents running anywhere; Copilot CLI, VS Code and the GitHub Copilot app are AHP clients. Copilot SDK can expose an AHP endpoint from any session; he logs in and connects Copilot CLI to the build session to ask how it fixed the bug. Authentication can use GitHub logins or a custom mechanism without going through GitHub servers; he then approves the deploy and verifies the lowercase code works.

  11. 34:09 Closing Depth 100 · Novelty 1/3

    Recap, stack overview, Aspire deployment to Azure and next sessions

    Patrick recaps the launch flow from support agents through classification, analytics and incident handling to the software factory, stressing trade-offs between architectures. Everything ran on Copilot SDK with the default harness plus custom tools, skills and memory providers, and on mixed inference providers. The demo ran locally via Aspire; the Managed Copilot SDK project can be deployed to Azure with Aspire deploy, Foundry offers managed agent hosting, and more deployment solutions are said to come in the near future. Related sessions BRK277 and others are listed and both repos are open source on GitHub.

Announcements (13)

  • 00:07 not stated Microsoft Copilot SDK

    Microsoft Copilot SDK (rebrand of GitHub Copilot SDK)

    The GitHub Copilot SDK is renamed to Microsoft Copilot SDK to reflect its broad adoption across Microsoft apps, platforms and services.

    Speaker’s quote (at 00:07)
    „we've announced last month that we were rebranding the Microsoft Copilot SDK, or the GitHub Copilot SDK to the Microsoft Copilot SDK“
  • 00:45 not stated Microsoft Copilot SDK

    Copilot SDK 2.0

    New major version of the SDK adding new runtime capabilities and agent architectures such as shared multi-tenant hosting.

    Speaker’s quote (at 00:45)
    „Yesterday, we formally announced that we shipped the Copilot SDK 2.0 which is what we'll be showing off today“
  • 04:10 not stated Microsoft Copilot SDK

    Shared multi-tenant runtime

    Serves many concurrent users from a single runtime instance in a cost-efficient but safe way instead of one runtime instance per user.

    Speaker’s quote (at 04:10)
    „The shared multi-tenant architecture, which allows you to have many users being served concurrently from a single runtime instance“
  • 05:58 not stated Microsoft Copilot SDK

    Managed Copilot SDK

    Open-source sample library, separate from the SDK product, showing how to deploy the SDK in different architectural configurations.

    Speaker’s quote (at 05:58)
    „It's an open source library that gives you examples of how you can deploy it in different configurations.“
  • 13:43 not stated Microsoft Copilot SDK

    Runtime memory with pluggable storage backend

    Sessions can enable memory, with stored memories mapped to a developer-chosen backend such as files, a database, blob storage or Cosmos, integrated with secret redaction.

    Speaker’s quote (at 13:43)
    „When we define the session, we can simply turn on memory as a feature. And then we can decide where those memories are stored.“
  • 16:20 not stated Microsoft Copilot SDK

    Multiple simultaneous inference providers

    One application can combine models from several inference providers and model types at the same time.

    Speaker’s quote (at 16:20)
    „But even better than that, you can use more than one at the same time. This is a fairly unique feature.“
  • 18:03 not stated Microsoft Copilot SDK

    Foundry decision model (MS Decision One)

    A model type in Foundry designed to return a single answer very quickly and cheaply, used here for classification.

    Speaker’s quote (at 18:03)
    „I can do the same thing now with a decision model from Foundry. I'm going to use Ms. Decision One.“
  • 21:51 not stated Microsoft Copilot SDK

    Session promotion to isolated sandbox

    A session in the shared runtime can request an isolated environment and be migrated there without losing state to run arbitrary code.

    Speaker’s quote (at 21:51)
    „you'll see that this session gets migrated into an isolated environment now without losing any state. It took three seconds to spin up a container.“
  • 23:18 not stated Microsoft Copilot SDK

    OpenTelemetry support in Copilot runtime

    The Copilot runtime exposes OpenTelemetry data that can be fed into any monitoring and alerting system.

    Speaker’s quote (at 23:18)
    „We've got full support for exposing OpenTelemetry data from the Copilot runtime.“
  • 25:17 not stated Microsoft Copilot SDK

    Brain-hands split

    The agent loop runs in a cheap shared runtime while tool calls are automatically directed to an on-demand sandbox that is discarded afterwards.

    Speaker’s quote (at 25:17)
    „because it can't do those tool calls in the shared runtime, the system will automatically spin up a sandbox and direct the tool calls into it“
  • 28:31 not stated Microsoft Copilot SDK

    Mixed architecture with agent-controlled topology

    Combines shared and isolated environments with dynamic migration, optionally letting the agent decide when sessions move between them.

    Speaker’s quote (at 28:31)
    „You can, as Patrick says, even give the agent its self-control over this topology and the decisions of when sessions are moved“
  • 31:52 not stated Microsoft Copilot SDK

    AHP endpoint in Copilot SDK sessions

    Copilot SDK can expose an Agent Host Protocol endpoint from any session so AHP clients such as Copilot CLI or VS Code can observe and drive remote agents.

    Speaker’s quote (at 31:52)
    „On the server side within Copilot SDK, we allow you to expose an AHP endpoint from any of the sessions that you've got if you want to.“
  • 37:03 roadmap Microsoft Copilot SDK

    Paved paths for deploying custom harnesses

    New technologies and solutions to build, quality-own and deploy custom harnesses to production at scale are planned for the near future.

    Speaker’s quote (at 37:03)
    „there's a wide variety of new technologies and solutions that will come in the near future to make sure that you can build custom harnesses“

Demos (8)

  • 06:23 Not stated Microsoft Copilot SDK

    A customer-facing support agent for a game shop that diagnoses a failed promo code and reports it to engineering while many untrusted users share one runtime instance.

    Steps (7)
    1. Open the Downhill game app from the Managed Copilot demo gallery.
    2. Turn on the feature flag that makes the Shop button appear.
    3. In the shop, add the Neon Mona item to the cart.
    4. Enter the promo code trail15 and observe the 'Invalid code, contact support' error.
    5. Open the support chat and send a complaint message.
    6. The agent calls the get_checkout tool to read the cart, code and error, and calls a tool to report the problem to engineering.
    7. In code, define get_checkout with a handler hard-coded to the current user's ID and create the session with tools limited to the custom tools.

    Prerequisites: Microsoft Copilot SDK 2.0 and the Managed Copilot SDK sample; the demo used a small model (Haiku).

  • 10:49 Not stated Microsoft Copilot SDK

    Support staff review incoming agent-handled requests and test a burst of concurrent customers on a single shared runtime.

    Steps (5)
    1. Switch to the internal apps and open Help Desk.
    2. Open the single incoming request and review the agent's tool calls, bug report and resolution status.
    3. Click Simulate 25 customers to send 25 concurrent requests.
    4. Observe the dashboard: one runtime, zero sandboxes.
    5. Open the session for Matteo Rossi and read the customer's message about the trail15 code.

    Prerequisites: Managed Copilot SDK sample with Help Desk app running.

  • 14:09 Not stated Microsoft Copilot SDK

    Support staff turn a discovered issue into shared memory so that all customer agents answer better without sessions sharing data directly.

    Steps (6)
    1. In code, enable memory when creating the session and provide a storage callback for the chosen backend.
    2. Open Matteo Rossi's session in Help Desk and write a private note to the agent saying the issue is known.
    3. Explicitly instruct the agent to ….
    4. Review the proposed entries in the Team knowledge panel and click Add (or Don't add).
    5. Re-run Simulate 25 customers with the same test data.
    6. Open Matteo's session and verify the agent now explains it is a known website bug.

    Prerequisites: Copilot SDK session with memory enabled and a storage backend; demo used the Haiku model.

  • 16:46 Not stated Microsoft Copilot SDK

    Support managers sort incoming requests into themes, comparing an LLM with a cheaper decision model.

    Steps (5)
    1. In Help Desk, with 25 unclassified requests, choose Classify using an LLM (Claude Haiku 4.5).
    2. In code, define the category set and send the prompt with structured output bound to those categories.
    3. Wait for the serial run to finish and review the grouped requests and metrics.
    4. Open the Classify dropdown and choose the decision model option.
    5. Run classification again and compare time and token usage.

    Prerequisites: Access to Claude Haiku and a Foundry decision model configured as inference providers.

  • 19:30 Not stated Microsoft Copilot SDK

    A business analyst queries sales data cheaply in a shared runtime and escalates to a sandbox only when Python charting is needed.

    Steps (7)
    1. Open Data Desk on the downhill-sales dataset.
    2. Ask for the top five highest value items and review the generated query results.
    3. Ask how many promo codes were rejected in the last hour.
    4. Ask whether it can run Python and to list its tools; note the request sandbox tool.
    5. Ask for a chart of rejections vs orders over time.
    6. Approve the request to move into a sandbox and watch the session migrate to a container.
    7. Review the bash steps and the generated SVG chart.

    Prerequisites: Managed Copilot SDK sample with Data Desk and a container sandbox (other sandbox types possible).

  • 23:18 Not stated Microsoft Copilot SDK

    An AI agent is woken instead of an on-call engineer to triage production incidents.

    Steps (4)
    1. Open the Incident Commander app and review live telemetry and the SEV2 promo checkout incident.
    2. Review the mitigation workflow: shared-runtime investigation, sandbox triage, software factory.
    3. Simulate another incident with HTTP 500 errors in checkout.
    4. Observe the shared-runtime session start, a sandbox deploy for tool calls, and its automatic removal afterwards.

    Prerequisites: Managed Copilot SDK sample with Incident Commander and telemetry from the app and Copilot runtime.

  • 26:46 Not stated Microsoft Copilot SDK

    An automated cloud pipeline turns an incident into a tested fix, with a human approving the production deploy.

    Steps (6)
    1. Open the Software Factory work order created by Incident Commander and read the root-cause report.
    2. Follow the planning agent in the shared runtime deciding the fix is actionable.
    3. Inspect the build agent step running in an isolated container with tests.
    4. Review the review agent approval and the release agent grouping the work.
    5. In code, implement onPermissionRequest to auto-approve tools except the deploy tool, which waits for a human.
    6. See the deploy approval card with Deploy and Decline options.

    Prerequisites: Managed Copilot SDK sample with Software Factory; agents given instructions and skills for the code base.

  • 32:22 Not stated Microsoft Copilot SDK

    An engineer inspects and questions a remotely running cloud agent before approving a production deployment.

    Steps (6)
    1. Open the work order artifacts and review the diff in files/src/promotions.js.
    2. Click the Open in Copilot CLI button and paste the command into a terminal.
    3. Log in, then connect Copilot CLI to the session in its isolated container.
    4. Ask the agent how it fixed the issue.
    5. Return to Software Factory and approve the pending deploy request.
    6. In the shop, apply the promo code in lowercase and confirm the discount is applied.

    Prerequisites: Copilot CLI (an AHP client), login to the session (GitHub login or custom authentication), AHP endpoint exposed by the SDK session.

Watch on Microsoft’s site: BRK276