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/chat/chat-sessions.md
-51Lines changed: 0 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,57 +160,6 @@ To run a subagent with a specific agent:
160
160
*`Run the research agent as a subagent to research the best auth methods for this project.`
161
161
*`Use the plan agent in a subagent to create an implementation plan for myfeature. Then save the plan in plans/myfeature.plan.md`
162
162
163
-
## Agent Sessions
164
-
165
-
> [!NOTE]
166
-
> The Agent Sessions view is currently in preview.
167
-
168
-
Agents enable you to perform AI coding tasks asynchronously in the background. This allows you to continue working in VS Code while the agent processes your requests. These agents are different from chat sessions in VS Code, since agents work in the background, while chat sessions are interactive and require your real-time input. Agents can also run in different environments, such as locally on your machine or remotely in the cloud.
169
-
170
-
> [!TIP]
171
-
> The OpenAI Codex agent enables you to use your Copilot Pro+ subscription to authenticate and access Codex without additional setup. Get more information about [GitHub Copilot billing and premium requests](https://docs.github.com/en/copilot/concepts/billing/copilot-requests) in the GitHub documentation.
172
-
173
-
### Agent Sessions view
174
-
175
-
The Agent Sessions view provides a centralized location for managing your active chat sessions, both local in VS Code and sessions created by background agents in other environments, such as Copilot coding agent, GitHub Copilot CLI, or OpenAI Codex. Enable the Agent Sessions view with the `setting(chat.agentSessionsViewLocation)` setting.
176
-
177
-
The Agent Sessions view currently supports the following coding agent integrations: [GitHub Copilot coding agent](/docs/copilot/copilot-coding-agent.md), GitHub Copilot CLI, and OpenAI Codex. We're working to further expand support for more coding agents in the future.
178
-
179
-
The Agent Sessions view lists all your active chat sessions organized by their source. The view is divided into sections for local chat sessions in VS Code and for coding agent sessions.
180
-
181
-

182
-
183
-
You can start a new chat session for a specific agent directly from the Agent Sessions view by selecting the `+` control in the corresponding section.
184
-
185
-
Select a chat session to open it as a chat editor tab and monitor its progress. Right-click a session for options to open it in a new window or in the Chat view.
186
-
187
-
Agents might provide additional functionality beyond standard chat sessions, such as canceling ongoing tasks, checking out or closing the associated pull request, or applying their file changes directly to your workspace. Right-click an agent session in the Agent Sessions view to see the available options.
188
-
189
-
> [!NOTE]
190
-
> Extension developers can learn how to integrate with the Agent Sessions view with the proposed API [`chatSessionsProvider`](https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts). The API is currently in a proposed state and subject to change.
191
-
192
-
### Delegate tasks to agents
193
-
194
-
To delegate a task to an agent, you can start a session directly from the Agent Sessions view. If you have already started a local chat session, you can also delegate tasks to a Copilot coding agent from that session. Delegating to an agent allows you to offload complex or time-consuming tasks to the agent while you continue working.
195
-
196
-
To delegate a task to a Copilot coding agent from a local chat session:
197
-
198
-
1. Open the Chat view or a chat editor tab.
199
-
200
-
1. Type a prompt in the chat input box or open an existing chat session.
201
-
202
-
1. Select **Delegate to Agent** to send the prompt to a coding agent. If you have multiple agents enabled, choose the agent from the list.
203
-
204
-

205
-
206
-
The coding agent session is created and provided with the context from your local chat session.
207
-
208
-
1. Monitor the coding agent session's progress in the Agent Sessions view.
209
-
210
-
In the editor, you can also delegate tasks by selecting the relevant code lense above a TODO comment. You can then track the progress of the delegated task in the Agent Sessions view.
211
-
212
-

213
-
214
163
## Tips for managing chat sessions
215
164
216
165
Consider the following tips to help you work effectively with chat sessions:
0 commit comments