You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/copilot/agents/cloud-agents.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Keywords:
12
12
13
13
# Cloud agents in Visual Studio Code
14
14
15
-
Cloud agents perform AI-powered coding tasks and run on remote infrastructure for scalable, isolated execution. Cloud agents run autonomously on remote infrastructure. For example, the GitHub Copilot coding agent run on GitHub's infrastructure and integrates with your GitHub repositories for team collaboration.
15
+
Cloud agents run on remote infrastructure and integrate with GitHub repositories for team collaboration through pull requests. For example, the GitHub Copilot coding agent runs on GitHub's infrastructure and can implement features, address code review feedback, and open pull requests autonomously.
16
16
17
17
This article covers the key features of cloud agents, and how to start and manage cloud agent sessions for coding tasks that can range anywhere from simple to complex.
Copy file name to clipboardExpand all lines: docs/copilot/agents/local-agents.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Keywords:
13
13
14
14
# Local agents in Visual Studio Code
15
15
16
-
Local agents run directly within VS Code on your machine. You interact with local agents through chat to get immediate results to your prompts. Local agents work on your workspace and have access to the full range of tools and models available in VS Code. By [creating custom agents](/docs/copilot/customization/custom-agents.md), you can let the agent assume a specific role or persona for a task, such as a code reviewer, tester, or documentation writer.
16
+
Local agents run interactively within Visual Studio Code on your machine. They work on your current workspace and have access to the full range of tools and models available in VS Code, including extension-provided tools and MCP servers. By [creating custom agents](/docs/copilot/customization/custom-agents.md), you can let the agent assume a specific role or persona for a task, such as a code reviewer, tester, or documentation writer.
17
17
18
18
Local agents operate in the chat interface in VS Code. When you close a chat session, the local agent remains active and you can track it in the sessions view.
Copy file name to clipboardExpand all lines: docs/copilot/agents/overview.md
+13-42Lines changed: 13 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,16 @@ Keywords:
20
20
21
21
# Using agents in Visual Studio Code
22
22
23
-
Agents automate complete coding tasks end-to-end, from implementing features across multiple files to architecture-level refactoring and framework migrations. In Visual Studio Code, you can create agent sessions that run locally or in the cloud, interactively or in the background.
23
+
Agents in Visual Studio Code automate coding tasks by breaking them into steps, using [tools](/docs/copilot/concepts/tools.md) to read files, edit code, and run commands, and self-correcting when something goes wrong. For example, instead of suggesting a fix for a failing test, an agent can identify the root cause across files, update the code, rerun the tests, and commit the changes.
24
24
25
-
Choose the agent harness and environment that best fits your task. With the unified Chat view, you can manage and monitor all your agent sessions in one place, regardless of where they run.
25
+
VS Code supports agents that run locally, in the background, or in the cloud. This article helps you choose the right agent type, create and manage sessions, and hand off tasks between agents.
26
26
27
-
This article provides an overview of the various agent types, how to create and manage agent sessions, delegate tasks between agents, and track their progress.

30
35
@@ -38,25 +43,17 @@ Use agents in VS Code to generate a tic-tac-toe game in your language of choice.
38
43
> [!IMPORTANT]
39
44
> Enable agents in your VS Code settings (`setting(chat.agent.enabled)`). Your organization might also disable agents - contact your admin to enable this functionality.
40
45
41
-
## What are agents?
42
-
43
-
Agents perform complete coding tasks end-to-end. They analyze your project across files, execute coordinated changes, run commands, and adapt based on the results. You give an agent a high-level task, and it breaks the task down into steps, executes those steps with tools, and self-corrects when it hits errors.
44
-
45
-
For background on the agent loop, agent types, subagents, memory, and planning, see [Agents concepts](/docs/copilot/concepts/agents.md).
46
-
47
-
For example, imagine you have a failing test. Instead of suggesting a fix, an agent can:
48
-
49
-
* Read the error message and identify the root cause across multiple files
50
-
* Update the relevant code
51
-
* Run the tests again to verify the fix works
52
-
* Commit the changes
53
-
54
46
You can run multiple agent sessions in parallel, each focused on a different task. When you create a new agent session, the previous session remains active, and you can switch between tasks via the [agent sessions list](#agent-sessions-list).
55
47
56
48
## Types of agents
57
49
58
50
VS Code supports the following categories of agents, each designed for different use cases and levels of interaction:
59
51
52
+
*[**Local agents**](/docs/copilot/agents/local-agents.md) run interactively in VS Code with full access to your workspace, tools, and models.
53
+
*[**Copilot CLI**](/docs/copilot/agents/copilot-cli.md) agents run autonomously in the background on your machine, optionally using Git worktrees for isolation.
54
+
*[**Cloud agents**](/docs/copilot/agents/cloud-agents.md) run on remote infrastructure and integrate with GitHub pull requests for team collaboration.
55
+
*[**Third-party agents**](/docs/copilot/agents/third-party-agents.md) connect external AI providers like Anthropic and OpenAI, with options for running locally or in the cloud.
56
+
60
57

@@ -79,32 +76,6 @@ Use the following table to find the right agent type for your task:
79
76
| Assign a GitHub issue to an agent |[Cloud agent](/docs/copilot/agents/cloud-agents.md)|
80
77
| Use a specific AI provider (Anthropic, OpenAI) |[Third-party agent](/docs/copilot/agents/third-party-agents.md)|
81
78
82
-
### Local agents
83
-
84
-
Local agents run directly within VS Code on your machine. You interact with local agents through chat to get immediate results to your prompts. Local agents have full access to your workspace, tools, and models. Use local agents for interactive tasks that require immediate feedback, such as brainstorming, planning, or exploratory work.
85
-
86
-
Local agent sessions use one of three built-in agents: **Agent** for complex coding tasks, **Plan** for creating structured implementation plans, and **Ask** for answering questions about your codebase. You can also [create custom agents](/docs/copilot/customization/custom-agents.md) for specialized workflows.
87
-
88
-
Learn more about [local agents in VS Code](/docs/copilot/agents/local-agents.md).
89
-
90
-
### Copilot CLI
91
-
92
-
Copilot CLI agents run in the background on your local machine and use the Copilot CLI agent harness. They can use Git worktrees to work isolated from your main workspace, preventing conflicts with your active work. Use Copilot CLI agents for well-defined tasks that have all necessary context, such as implementing a plan.
93
-
94
-
Learn more about [Copilot CLI agents in VS Code](/docs/copilot/agents/copilot-cli.md).
95
-
96
-
### Cloud agents
97
-
98
-
Cloud agents, like Copilot coding agent, run on remote infrastructure and integrate with GitHub repositories and pull requests for team collaboration and code reviews. Use cloud agents for well-defined tasks where you want to collaborate with team members through pull requests, or for tasks that can run without immediate feedback.
99
-
100
-
Learn more about [cloud agents in VS Code](/docs/copilot/agents/cloud-agents.md).
101
-
102
-
### Third-party agents
103
-
104
-
VS Code supports agents from third-party AI providers, like Anthropic and OpenAI. By using third-party agents, you can use the unique capabilities of these providers and their agent harness with your existing GitHub Copilot subscription, while benefiting from VS Code's unified session management and rich editor experience. Third-party providers might support options for running locally or in the cloud.
105
-
106
-
Learn more about [third-party agents in VS Code](/docs/copilot/agents/third-party-agents.md).
107
-
108
79
## Agent sessions list
109
80
110
81
The Chat view provides a unified view to manage all your agent sessions, regardless of where they run. By default, it shows your recent sessions, and gives information about their status, type, and file changes. Expand the list to see and filter all your agent sessions.
Copy file name to clipboardExpand all lines: docs/copilot/concepts/agents.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Keywords:
19
19
20
20
# Agents
21
21
22
-
Agents automate complete coding tasks end-to-end, from implementing features across multiple files to architecture-level refactoring and framework migrations. You give an agent a high-level task, and it breaks the task down into steps, executes those steps with [tools](/docs/copilot/concepts/tools.md), and self-corrects when it hits errors. This article explains the core architecture of agents: the agent loop, agent types, subagents, memory, and planning.
22
+
An agent is an AI system that autonomously plans and executes coding tasks. You give the agent a high-level goal, and it breaks the goal down into steps, executes those steps with [tools](/docs/copilot/concepts/tools.md), and self-corrects when it hits errors. This article explains the core architecture of agents: the agent loop, agent types, subagents, memory, and planning.
23
23
24
24
## Agent loop
25
25
@@ -55,16 +55,11 @@ Learn more about [customization concepts](/docs/copilot/concepts/customization.m
55
55
56
56
## Agent types
57
57
58
-
Agents run in different environments depending on when you need results and how much oversight you want:
59
-
60
-
***Local agents** run interactively in VS Code. You see every step and can steer the agent in real time. Best for tasks where you want to stay hands-on.
61
-
***Copilot CLI** runs autonomously on your machine. Hand off a task and continue other work while the agent completes it.
62
-
***Cloud agents** run on GitHub's infrastructure. They create branches, implement changes, and open pull requests for your team to review.
63
-
***Third-party agents** connect external AI providers like Anthropic and OpenAI. You can hand off sessions between agent types at any point.
58
+
Agents run in different environments depending on when you need results and how much oversight you want. The two key dimensions are *where* the agent runs (your machine or the cloud) and *how* you interact with it (interactively or autonomously in the background).
64
59
65
60

66
61
67
-
Learn more about [using agents in VS Code](/docs/copilot/agents/overview.md).
62
+
Learn more about [using agents in VS Code](/docs/copilot/agents/overview.md), including a decision table to help you choose the right agent type for your task.
0 commit comments