Agent Mode Public Preview Launches for Visual Studio 17.14
Katie Savage and Aaron Yim introduce Agent mode in Visual Studio 17.14, which empowers developers to define and complete complex tasks in natural language using GitHub Copilot’s autonomous planning and execution capabilities.
Agent Mode Arrives in Preview for Visual Studio
Authors: Katie Savage, Aaron Yim
Overview
Agent mode is now publicly available in preview for all users of Visual Studio 17.14. This feature enables developers to define tasks using natural language prompts, leveraging Copilot to autonomously plan, edit code, invoke tools, and iteratively resolve any issues until the prompt is fully addressed.
Unlike Copilot Chat or Edits, Agent mode persists through multiple suggestions or file edits, working iteratively until task completion.
What Is Agent Mode?
Agent mode enhances the development experience by:
- Autonomously determining context and relevant files to edit.
- Suggesting terminal commands for user approval and execution.
- Iterating through the task, continually checking for errors, running builds or tests, and validating results.
- Invoking trusted tools via MCP (Model Context Protocol) servers, including linters, test runners, and static analyzers, directly within your environment.
Agent mode is being positioned as the new, more powerful default way to apply code changes in Visual Studio, advancing the Edits functionality in Copilot Chat.
Enabling Agent Mode
Agent mode is off by default during its preview phase. To enable it:
- Use Visual Studio 17.14 GA or later.
- Open Feature Search (
Ctrl + Q
). - Search for “agent.”
- Enable: Copilot Chat: Agent Enabled.
- In the Copilot Chat window, switch to “Agent” mode and enter a high-level prompt. The Copilot Chat window can be accessed via the Copilot badge in the IDE’s upper-right corner.
Scenarios and Use Cases
Agent mode can be applied to a variety of development scenarios:
- Creating apps from scratch
- Refactoring code across multiple files
- Writing and running tests
- Generating documentation
- Integrating new libraries
- Implementing complex or terminal-heavy tasks
- Answering questions about complex codebases
Key Features
Aspect | Description |
---|---|
Edit Scope | Searches project to autonomously determine the relevant context/files to edit |
Task Complexity | Handles intricate tasks, including tool invocations and terminal commands |
Duration | May take longer, as it involves multi-step processes and planning |
Self-iteration | Evaluates and iterates on output, resolving intermediate issues multiple times |
Multiple Requests | Can generate several backend requests from a single user prompt |
Example Prompts
- “Add error handling to this API”
- “Convert this project to use environment variables”
- “Write tests for this class and fix anything that fails”
- “Add structured logging with Serilog”
- “Replace HttpClient with IHttpClientFactory”
Providing custom instructions improves Copilot’s responses. The documentation guides on how to set these up.
MCP Servers Integration
This release deepens Agent mode’s capabilities by supporting Model Context Protocol (MCP) servers. MCP servers offer enriched context for Copilot, connecting AI applications to tools, data, and resources without the need for custom connections per source.
Capabilities via MCP Servers
- Interact with cloud environments: Official Azure MCP server enables listing, querying, and interaction with Azure Storage, Cosmos DB, Azure CLI, etc.
- Query and manage databases: Execute Cosmos DB queries, manage Azure Storage containers/blobs, and fetch metadata.
- Version control management: Use GitHub API for bulk issues, batch file updates, code and issue searches across repositories, etc.
You can even build your own MCP servers with supported SDKs (including C#).
Copilot Monthly Release Schedule
Visual Studio is transitioning to a monthly release cadence for Copilot features, ensuring prompt access to the latest updates. Users are encouraged to keep Visual Studio updated to benefit from ongoing improvements.
Resources
- Visual Studio Downloads
- Visual Studio Hub: Central resource for release notes, videos, and community updates.
- Developer Community: Feedback and issue reporting platform.
Closing and Feedback
The Visual Studio team values community feedback as it refines Agent mode and Copilot integration. All users are encouraged to share ideas and issues via the Developer Community.
Plan, build, test, and fix — all from one prompt. Agent mode aims to make development in Visual Studio more autonomous, productive, and context-aware.
This post appeared first on “Microsoft DevBlog”. Read the entire article here