VS Code February events – Agent Sessions Day on Feb 19th
Dismiss this update
Third-party agents in Visual Studio Code are AI agents developed by external providers, such as Anthropic and OpenAI. Third-party agents enable you to use the unique capabilities of these AI providers, while still benefiting from the unified agent sessions management in VS Code and the rich editor experience for coding, debugging, testing, and more. In addition, you can use these providers with your existing GitHub Copilot subscription.
VS Code uses the provider's SDK and agent harness to access the agent's unique capabilities. You can use both local and cloud-based third-party agents in VS Code. Integration with cloud-based third-party agents is enabled through your GitHub Copilot plan.
Third-party coding agents in the cloud are currently in preview.
The benefits of using third-party agents in VS Code are:
You need to enable support for third-party agents in the cloud in your Copilot account settings before you can use them in VS Code. Follow the steps in Enabling or disabling third-party coding agents in your repositories in the GitHub documentation.
You don't need to install the provider's VS Code extension to use their cloud agent in VS Code.
Claude agent sessions provide agentic coding capabilities powered by Anthropic's Claude Agent SDK directly in VS Code. The Claude agent operates autonomously on your workspace to plan, execute, and iterate on coding tasks with its own set of tools and capabilities.
Enable or disable support for Claude agent sessions with the github.copilot.chat.claudeAgent.enabled setting.
To start a new Claude agent session:
Open the Chat view (⌃⌘I (Windows, Linux Ctrl+Alt+I)) and select New Chat (+).
Choose between a local or cloud agent session:
For a local session, select Claude from the Session Type dropdown

For a cloud session, select Cloud from the Session Type dropdown. Then, select Claude from the Partner Agent dropdown.

Enter your prompt and let the agent work on the task
The Claude agent autonomously determines which tools to use and makes changes to your workspace.
The Claude agent provides specialized slash commands for advanced workflows. Type / in the chat input box to see the available commands.
| Slash command | Description |
|---|---|
/agents |
Create and manage specialized Claude agents for specific tasks. Define custom agent behaviors through a wizard. Learn more about Claude sub-agents. |
/hooks |
Configure lifecycle hooks that execute at key points during Claude agent sessions, such as before or after tool execution. Learn more about Claude hooks. |
/memory |
Open and edit CLAUDE.md memory files that provide persistent context to Claude agent across sessions. |
/init |
Initialize a new CLAUDE.md memory file for your project. |
/pr-comments |
Get comments from a pull request. |
/review |
Review code changes in a pull request. |
/security-review |
Perform a security review of pending code changes on the current branch. |
Claude agent requests permission before performing certain operations. By default, file edits within your workspace are auto-approved, while other operations like running terminal commands might require confirmation.
You can choose how the agent applies changes to your workspace:

The github.copilot.chat.claudeAgent.allowDangerouslySkipPermissions setting bypasses all permission checks. Only enable this in isolated sandbox environments with no internet access.
The OpenAI Codex agent uses OpenAI's Codex to perform coding tasks autonomously. Codex runs can run interactively in VS Code or unattended in the background.
To disable the OpenAI Codex agent, disable or uninstall the OpenAI Codex extension in VS Code.
OpenAI Codex in VS Code 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 in the GitHub documentation.
To start a new OpenAI Codex agent session:
Open the Chat view (⌃⌘I (Windows, Linux Ctrl+Alt+I)) and select New Chat (+).
Choose between a local or cloud agent session:
For a local session, select Codex from the Session Type dropdown

For a cloud session, select Cloud from the Session Type dropdown. Then, select Codex from the Partner Agent dropdown.

Enter your prompt in the chat editor input and let the agent work on the task
Yes, third-party agents in VS Code authenticate and manage billing through your existing GitHub Copilot subscription. For cloud-based third-party agents, follow the steps to enable the agent.
For cloud-based third-party agents, availability might be limited based on your Copilot subscription plan. Check About Third-party agents in the GitHub documentation for more information.
Both the provider's VS Code extension and the third-party agent integration in VS Code let you use the provider's AI capabilities and agent harness. The difference is in billing: when you use third-party agents in VS Code, GitHub bills you through your Copilot subscription. When you use the provider's extension, you are billed through the provider's subscription.
VS Code lets you choose between local and cloud-based third-party agents, depending on the provider's availability. When you select the third-party agent from the Session Type dropdown, a local agent session is created for that provider.
To choose a cloud-based third-party agent, first select the Cloud option from the Session Type dropdown, and then select the provider from the Partner Agent dropdown.