Copilot extension for integrating multiple Code Agent CLIs directly into VS Code Copilot Chat.
Introduction
Motivation
GitHub Copilot provides a highly structured and well-integrated development experience, offering fine-grained control for Agent Coding. However, as a product specialized for coding, its underlying models often come with restricted Context Windows.
On the other hand, pure models like Gemini and Claude (such as Sonnet 4.5 with its 1M context window) provide extensive context capabilities. Switching contexts or applications to leverage these large-context models creates unnecessary friction. This extension aims to bridge this gap, allowing developers to utilize these powerful CLIs without leaving the VS Code Copilot Agent environment.
Features
Chat Participants
This extension adds the following chat participants to GitHub Copilot:
@gemini: Google Gemini AI Assistant
@claude: Anthropic Claude AI Assistant
Note: Since Gemini and Claude are used directly as CLIs, Copilot's request processing is not used.
Commands
This extension provides the following commands:
Scaffold Code Agents: Creates the recommended project structure for Code Agent integration
Command ID: copilot-cli-agents.scaffold-llm
Creates .github/copilot-instructions.md and related directories (agents, prompts, instructions)
Sets up GEMINI.md and CLAUDE.md symlinks at the project root for agent-specific instructions
When the Participant is first called, a {workspaceFolder}/.github/copilot-cli-agents.json file is created.
Note: This is used to restore the chat session between Copilot and the CLI. It is safe to add it to .gitignore.
Even if you use GitHub Copilot's 'Add Context' feature, it is not attached.
Note: This is intended to use the CLI cleanly without polluting its own features. If you wish to perform advanced tasks, please use the CLI directly after restoring the session.
The working directory for all CLIs is the open path in VS Code.
Note: This allows you to purely utilize the instruction files and capabilities within the project.
The only available tool for the CLI is the 'Web Search' tool.
Note: This project is intended to utilize other CLIs as 'auxiliary tools' using GitHub Copilot.