/icons/vscode-config.svg Copilot Agent Mode Pro
Category: GitHub Copilot
Overview
Unlock the full power of GitHub Copilot Agent Mode with this advanced configuration. Agent Mode allows Copilot to work autonomously, making multiple requests, running tasks, and even executing terminal commands with proper safeguards.
What’s Included
Agent Mode Core
- Enabled: Agent mode is active and ready to handle complex multi-step tasks
- Max 25 requests: Allows Copilot to make up to 25 autonomous requests per task
- Auto-fix: Automatically diagnose and fix issues in generated code
- Task execution: Run workspace tasks automatically during code generation
Model Context Protocol (MCP)
- MCP access enabled: Copilot can use MCP servers for extended capabilities
- Manual discovery: MCP server discovery is manual for security (you control which servers are used)
Terminal Command Safety
- Smart approval system: Dangerous commands (rm, del, kill, etc.) require manual approval
- Regular expression support: Flexible pattern matching for command approval
- Global auto-approve disabled: Critical security protection - prevents blanket approval
Advanced Tools
- Workspace creation: Enable
/newworkspace scaffolding in chat - Todo list tool: Copilot can create and manage todo lists for complex tasks
Usage Tips
- Start agent mode: In Copilot Chat, describe a complex task like “Set up a new React component with tests”
- Review proposals: Agent mode will show you its plan before executing
- Terminal commands: Always review terminal commands before approving, especially destructive ones
- MCP servers: Configure MCP servers in
.vscode/mcp.jsonfor extended capabilities
Security Note
⚠️ Important: This configuration includes safety measures for terminal command execution. Never set chat.tools.global.autoApprove to true as this disables critical security protections.
Best For
- Advanced developers comfortable with AI autonomy
- Complex refactoring and architecture tasks
- Multi-file code generation
- Teams with established MCP server configurations
Settings JSON
{
"chat.agent.enabled": true,
"chat.agent.maxRequests": 100,
"github.copilot.chat.agent.autoFix": true,
"github.copilot.chat.agent.runTasks": true,
"chat.mcp.access": true,
"chat.mcp.discovery.enabled": false,
"chat.tools.terminal.autoApprove": {
"rm": false,
"rmdir": false,
"del": false,
"kill": false,
"curl": false,
"wget": false,
"eval": false,
"chmod": false,
"chown": false,
"/^Remove-Item\\b/i": false
},
"chat.tools.global.autoApprove": false,
"github.copilot.chat.newWorkspaceCreation.enabled": true,
"chat.todoListTool.enabled": true
}