Disclaimer: Some of the code in this extension is generated by AI.
Experimental
Native chat session provider for VS Code that connects external agent CLIs through the Agent Client Protocol (ACP).
- Adds support for ACP agents in VS Code as external agents
- Supports
Add ACP agents under the acpClient.agents setting (User or Workspace) to surface them in the chat session picker. You can also provide optional MCP tool connections via mcpServers so the agent automatically connects to additional tools when sessions start. MCP support is currently limited to stdio transports, so each entry must include the command to launch the tool and any arguments or environment variables it needs:
"acpClient.agents": {
"cagent": {
"title": "Docker cagent",
"command": "/opt/bin/cagent",
"args": [
"acp",
"/agents/coding.yaml"
],
"mcpServers": [
{
"type": "stdio",
"name": "workspace-tools",
"command": "/opt/bin/mcp-tool",
"args": ["serve"],
"env": {
"WORKSPACE": "${workspaceFolder}"
}
}
],
"enabled": false
},
"opencode": {
"title": "OpenCode Agent",
"command": "/opt/bin/opencode",
"args": [
"acp"
],
"mcpServers": [],
"enabled": true
}
}At the moment the extension is under development, so this is not yet published into VSCode market place. But if you want to try out as it is you can install the extension by building it locally and installing into your VSCode Insider since this extension relies on some of the experimental APIs only available in VSCode Insider.
To build the extension locally you can follow these steps:
-
Clone the repository
git clone https://github.com/gayanper/vscode-acp-provider.git
-
Navigate to the project directory
cd vscode-acp-provider -
Install the dependencies
npm install
-
Build the extension
npm run package
-
Open VSCode Insider and install the extension
- Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on Mac)
- Type
Extensions: Install from VSIX...and select it - Browse to the location of the built
.vsixfile (usually in thevscode-acp-providerdirectory) and select it to install
-
Configure Runtime Arguments to enable proposed API for this extension
- Open the command palette (Ctrl+Shift+P or Cmd+Shift+P on Mac)
- Type
Preferences: Configure Runtime Argumentsand select it - Add the following line to the
argv.jsonfile that opens:"enable-proposed-api": ["org-gap.vscode-acp-client"]
- Save the file and restart VSCode Insider
After configuring you should see the configured agents in the chat session picker. Select one to start a new chat session with the external agent.
