WhoBuilt

Cooking with Agents in VS Code

May 21, 2026· 17 min· 8.4K views·Watch on YouTube

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.

Match the agent to the task

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.

Run three agents on one codebase

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.

Understand cloud agent boundaries

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.

Configure agents from VS Code

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.

Reuse community skills and MCP servers

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

Show all 10 facts

Related talks