Download Beam

VS Code Multi-Agent Orchestration: A Hands-On Tutorial

March 1, 2026 · 12 min read

The release of VS Code 1.109 fundamentally changed how developers interact with AI agents inside the editor. With Copilot's upgraded agent mode, custom agent extensions, and MCP server support now baked into the core experience, VS Code has become a legitimate multi-agent orchestration environment. But how well does it actually work in practice?

This tutorial walks you through setting up a multi-agent workflow inside VS Code from scratch. We will configure Copilot's agent mode, wire up additional AI providers through extensions, orchestrate tasks across agents, and address the real limitations you will encounter when trying to go beyond a single-agent setup. Along the way, we will compare VS Code's IDE-based approach to terminal-based orchestration, so you can decide which strategy fits your workflow.

What Changed in VS Code 1.109

VS Code 1.109 (released February 2026) introduced several features that moved the editor from "AI-assisted coding" to something closer to "agentic engineering." Here is what matters for multi-agent workflows:

Key Prerequisite

You need a GitHub Copilot subscription (Individual, Business, or Enterprise) to access agent mode. The free tier provides limited completions but does not include the full agent capabilities covered in this tutorial.

Step 1: Configure Copilot Agent Mode

First, ensure your VS Code is updated to 1.109 or later. Open the command palette with Cmd+Shift+P and search for "Copilot: Configure Agent Mode."

In your VS Code settings JSON, add the following configuration to enable the full agent feature set:

settings.json Configuration

"github.copilot.chat.agent.enabled": true

"github.copilot.chat.agent.autoRun": true

"github.copilot.chat.agent.maxSteps": 25

"github.copilot.chat.agent.terminalAccess": true

The maxSteps setting controls how many chained operations the agent can perform in a single task. For complex multi-file refactors, bump this to 25-50. The terminalAccess flag lets the agent run shell commands, which is essential for testing and build verification.

With agent mode active, Copilot no longer just suggests code. It becomes an autonomous agent that can plan multi-step tasks, create and modify files, run tests, and iterate based on results. This is the foundation everything else builds on.

Step 2: Register MCP Servers for External Context

MCP (Model Context Protocol) servers give your agents access to external tools and data. VS Code 1.109 supports MCP natively through the mcp.servers setting.

Here is how to set up a PostgreSQL MCP server so your agents can query your database directly:

MCP Server Registration

In your workspace .vscode/settings.json:

"mcp.servers": [

  { "name": "postgres", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost:5432/mydb"] },

  { "name": "filesystem", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"] }

]

Once registered, any agent in VS Code can invoke these servers. For instance, you could ask Copilot to "check the users table schema and generate a migration for adding an email_verified column," and it will use the PostgreSQL MCP server to inspect the live schema before writing the migration file.

The filesystem MCP server is especially useful when agents need to read files outside the current workspace -- for instance, pulling configuration from a shared monorepo root or reading deployment manifests from a separate directory.

Step 3: Install Additional Agent Extensions

Copilot alone gives you one agent backed by GitHub's models. For true multi-agent orchestration, you want multiple agents with different capabilities. Here are the extensions worth installing:

Each of these extensions registers as a chat participant in VS Code. After installation, you can invoke them in the Copilot chat panel with the @ prefix -- for example, @continue or @cody.

Step 4: Design Your Agent Routing Strategy

Having multiple agents installed is not the same as having them orchestrated. The critical design decision is: which agent handles which task?

Recommended Agent Routing

Copilot agent mode -- Primary coding tasks, inline edits, test generation, quick refactors. Best for tasks within 2-3 files.

Continue (Claude) -- Architecture decisions, complex refactoring across many files, code review with detailed reasoning. Better at understanding entire system design.

Cody -- Codebase search, understanding unfamiliar code, answering questions about large repositories. Leverages Sourcegraph's indexing for context.

Cline -- Autonomous multi-step tasks that require file creation, testing, and iteration. Best for "build this feature end-to-end" tasks.

The routing strategy matters because VS Code does not have a built-in orchestration layer that automatically dispatches tasks to the right agent. You are the orchestrator. You decide which agent to invoke for each subtask, and you manage the handoff of context between them.

"The biggest misconception about multi-agent workflows in VS Code is that you can just install all the extensions and they will coordinate automatically. They will not. You need a mental model for which agent does what, and you need to manage the context flow yourself."

Step 5: Build a Real Multi-Agent Workflow

Let us walk through a concrete example: adding a new API endpoint with authentication, database integration, and tests. Here is how to orchestrate multiple agents for this task:

  1. Architecture planning with Continue (Claude) -- Start by asking @continue to analyze your existing API structure and propose an architecture for the new endpoint. Claude excels at understanding the big picture and suggesting patterns that match your existing codebase.
  2. Schema exploration with Cody -- Use @cody to search your codebase for existing authentication middleware, database models, and similar endpoints. Cody's indexing makes this faster than manual searching.
  3. Implementation with Copilot agent mode -- With the architecture plan and existing patterns identified, switch to Copilot's agent mode for the actual coding. Tell it to create the route handler, middleware, and database queries. It will create files, edit existing ones, and chain operations together.
  4. Test generation with Copilot -- In the same agent session, ask Copilot to generate tests for the new endpoint. It can run the test suite and iterate if tests fail.
  5. Code review with Continue (Claude) -- Finally, hand the diff back to @continue for a thorough code review. Claude tends to catch edge cases and security issues that Copilot misses.

This five-step workflow touches three different agents, each contributing their strength. The total time is typically 15-20 minutes for a feature that would take 1-2 hours manually.

The Limitations of IDE-Based Orchestration

After building several multi-agent workflows inside VS Code, the limitations become clear. They are not deal-breakers, but they are important to understand before you invest heavily in this approach.

No parallel execution. VS Code's chat panel is fundamentally sequential. You can only interact with one agent at a time. While Copilot can run background tasks, you cannot have Copilot coding in one panel while Continue reviews in another. Every interaction is a blocking, synchronous operation in the same chat thread.

Context isolation between agents. Each agent extension maintains its own context window. When you switch from Copilot to Continue, the Continue agent does not automatically know what Copilot just did. You have to manually re-explain the context or paste in relevant code. This context handoff tax adds up quickly.

Limited terminal integration. While Copilot's agent mode can run terminal commands, it does so through VS Code's integrated terminal, which has known limitations around PTY handling, shell integration, and long-running processes. Complex build pipelines sometimes hang or produce garbled output.

Single-workspace constraint. VS Code multi-root workspaces help, but each agent still operates within the confines of the editor. Cross-project orchestration -- running an agent in your frontend repo while another works on the backend -- requires multiple VS Code windows, and they cannot coordinate with each other.

When IDE-Based Orchestration Breaks Down

If you need to run more than two agents simultaneously, work across multiple repositories, or maintain persistent agent sessions that survive editor restarts, you have outgrown what VS Code can offer as an orchestration platform. This is where terminal-based approaches shine.

Terminal-Based Orchestration: The Alternative

Terminal-based multi-agent orchestration solves the problems listed above by treating each agent as an independent process running in its own shell session. Instead of routing everything through a single chat panel, each agent gets its own terminal instance with full PTY support, independent context, and the ability to run in parallel.

Here is how the same API endpoint workflow looks with terminal-based orchestration:

All four processes run simultaneously. There is no context handoff tax because each agent works independently. And because they are terminal processes, they survive editor crashes, can be detached and reattached, and work across any number of projects.

Tools like Beam are purpose-built for this workflow. Beam provides split panes, tabs, and project-level workspace organization specifically for managing multiple AI agent sessions. Instead of fighting VS Code's single-threaded chat panel, you get a cockpit designed for parallel agent orchestration.

Hybrid Approach: Best of Both Worlds

The most productive developers in 2026 are not choosing between IDE and terminal. They are combining both:

  1. VS Code for inline assistance -- Copilot completions, inline chat, and quick single-agent tasks stay in the editor where they are most natural.
  2. Terminal orchestration for heavy lifting -- Multi-agent workflows, parallel execution, cross-project tasks, and long-running operations move to a dedicated terminal environment like Beam.
  3. MCP servers bridging both -- The same MCP servers you configure in VS Code can be used by terminal-based agents, creating a shared tool ecosystem.

"I used to try to do everything inside VS Code. Once I moved my multi-agent workflows to a terminal orchestrator, my throughput doubled -- not because the agents got faster, but because I eliminated the context-switching overhead of routing everything through a single chat panel."

Troubleshooting Common Issues

As you set up your multi-agent environment, here are the most common issues and how to fix them:

Agent Extensions Conflicting

If Continue and Copilot both try to handle the same inline edit, disable Continue's inline completions with "continue.enableInlineCompletions": false and use it only through the chat panel.

MCP Server Connection Failures

MCP servers that require authentication (like PostgreSQL) can fail silently. Check the Output panel (Cmd+Shift+U) and filter by "MCP" to see connection logs. Most failures are caused by missing environment variables or incorrect connection strings.

Agent Mode Running Out of Steps

If Copilot stops mid-task saying it hit the step limit, increase maxSteps in your settings. For complex refactors touching 10+ files, a limit of 50 is reasonable. Be aware that higher step counts increase latency and token usage.

Measuring the Impact

After running multi-agent workflows for a month, here is what the numbers look like compared to single-agent development:

The takeaway is clear: multi-agent orchestration delivers real productivity gains, but the orchestration method matters. VS Code gives you a great starting point, and terminal-based tools give you the parallelism and flexibility to take it further.

Ready to Level Up Your Agentic Workflow?

Beam gives you the workspace to run every AI agent from one cockpit -- split panes, tabs, projects, and more.

Download Beam Free