Skip to content

Commit 532e8a6

Browse files
committed
Remove redundancies for agents
1 parent 6d4a28f commit 532e8a6

4 files changed

Lines changed: 18 additions & 52 deletions

File tree

docs/copilot/agents/cloud-agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Keywords:
1212

1313
# Cloud agents in Visual Studio Code
1414

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.
1616

1717
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.
1818

docs/copilot/agents/local-agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Keywords:
1313

1414
# Local agents in Visual Studio Code
1515

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.
1717

1818
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.
1919

docs/copilot/agents/overview.md

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ Keywords:
2020

2121
# Using agents in Visual Studio Code
2222

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.
2424

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.
2626

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.
27+
<div class="docs-action" data-show-in-doc="true" data-show-in-sidebar="true" title="Core concepts">
28+
Learn about the agent loop, subagents, memory, and planning.
29+
30+
* [Agents concepts](/docs/copilot/concepts/agents.md)
31+
32+
</div>
2833

2934
![Screenshot of an agent session in VS Code showing code changes and chat interaction.](../images/agents-overview/chat-sessions-view.png)
3035

@@ -38,25 +43,17 @@ Use agents in VS Code to generate a tic-tac-toe game in your language of choice.
3843
> [!IMPORTANT]
3944
> Enable agents in your VS Code settings (`setting(chat.agent.enabled)`). Your organization might also disable agents - contact your admin to enable this functionality.
4045
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-
5446
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).
5547

5648
## Types of agents
5749

5850
VS Code supports the following categories of agents, each designed for different use cases and levels of interaction:
5951

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+
6057
![Diagram showing agent types by environment and interaction.](../images/agents-overview/agent-types-diagram-v3.png)
6158

6259
<!-- Diagram source: agent-types.excalidraw (credits: AnnaS) -->
@@ -79,32 +76,6 @@ Use the following table to find the right agent type for your task:
7976
| Assign a GitHub issue to an agent | [Cloud agent](/docs/copilot/agents/cloud-agents.md) |
8077
| Use a specific AI provider (Anthropic, OpenAI) | [Third-party agent](/docs/copilot/agents/third-party-agents.md) |
8178

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-
10879
## Agent sessions list
10980

11081
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.

docs/copilot/concepts/agents.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Keywords:
1919

2020
# Agents
2121

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.
2323

2424
## Agent loop
2525

@@ -55,16 +55,11 @@ Learn more about [customization concepts](/docs/copilot/concepts/customization.m
5555

5656
## Agent types
5757

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).
6459

6560
![Diagram showing the different agent types: Local agents (interactive in VS Code), Background agents (autonomous on your machine), Cloud agents (run on GitHub's infrastructure), and Third-party agents (connect external AI providers).](../images/agents-overview/agent-types-diagram-v3.png)
6661

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.
6863

6964
## Subagents
7065

0 commit comments

Comments
 (0)