Hampton distinguishes local agents, which keep the developer closely involved, background agents, which work in an isolated Git worktree, and cloud agents, which can take on work remotely. He suggests local agents for writing tests, background agents for tasks such as building a UI, and cloud agents for documentation.
Cooking with Agents in VS Code
Speaker
Liam Hampton of Microsoft explains how developers can use local, background, and cloud agents in VS Code, with GitHub Copilot, to work on different tasks in parallel.
In a demo using a Python product store, Hampton assigns a background agent to build a front end, a cloud agent to add open-source files, and a local agent to write tests and improve route error handling. He checks the agents’ progress in VS Code and tests the UI from its worktree before letting the background agent proceed.
Hampton says GitHub Copilot cloud agents run in isolated GitHub Actions environments and can use MCP servers such as GitHub and Playwright for repository tasks and browser testing. He describes network restrictions and lack of access to the main branch as safeguards.
Hampton covers custom instructions, agents, prompt files, and skills as ways to shape agent behavior, and says these ideas apply beyond Copilot. VS Code’s chat customization view brings settings such as agents, extensions, instructions, hooks, and MCP servers into one place, with third-party support including Claude.
Hampton points to the open-source Awesome Copilot project as a source of customizations that can be adapted for other AI tools. He also describes MCP servers as a way to connect agents to services such as cloud resources, Playwright, and Microsoft Learn.
Takeaways
- Choose a local agent when you need close control, a background agent for partially supervised work, and a cloud agent for tasks you can delegate.
- Use Git worktrees to let background agents work in isolated directories while you continue in the main workspace.
- Give agents bounded tasks and checkpoints, such as asking them to pause before opening a pull request so you can test locally.
- Set up custom instructions, skills, and MCP access to provide agents with relevant context and tools.
- Review cloud agent permissions and restrictions, including network access and branch access, before relying on them.
Mentioned in this talk
Search inside this talk
What was claimed 10
- works atLiam Hampton works at
Microsoftdeveloper tools advocacy team member“Liam Hampton, Microsoft”
YouTube Verified3 sources· Talk, Web· archived
- feature
Microsoft Copilot: Supports local, background, and cloud agent workflows in the talk’s demonstration.
“I'm going to be talking about GitHub Copilot agents.”
YouTube Unverified1 source· Talk
- uses
“We're actually using Git worktrees.”
YouTube Unverified1 source· Talk
- feature
Autopilot: Preview mode can make multiple tool calls without asking the user each time.
“it's not going to ask me a bunch of questions if it wants to make a bunch of tool calls”
YouTube Unverified1 source· Talk
- uses
“They're actually running in GitHub Actions.”
YouTube Unverified1 source· Talk
- integrates withMCP integrates with
Playwright
“the Playwright MCP server”
YouTube Unverified1 source· Talk
- integrates with
Microsoft Copilot integrates with MCP
“Cloud agent has access to the GitHub MCP server and the Playwright MCP server”
YouTube Verified4 sources· Talk
- feature
VS Code: Provides one place to manage chat and agent customizations, including agents, skills, prompts, hooks, and MCP servers.“this whole control plane in this modal, which allows you to control your agents and chat customizations from one place”
YouTube Unverified1 source· Talk










