Introduction
On 7 April 2025, Visual Studio Code released Agent Mode to the stable channel, adding support for the Model Context Protocol (MCP).
After studying the documentation, I enabled the feature immediately and recommended it to my colleagues the next day.
In my opinion, Agent Mode has fundamentally reshaped my workflow and dramatically increased project velocity. Whether you are a beginner or a veteran, it is a tool worth mastering early.
For new projects, developers usually need to set up the environment, install various tools, and read extensive documentation. In such scenarios, Agent Mode can run commands on your behalf, providing precise guidance that shortens both the learning curve and overall development time.
Since Agent Mode was released to the stable version of VS Code earlier this month—about two weeks ago—I have fully integrated it into my daily development workflow with remarkable results. This article outlines my practical experience and observations using it in conjunction with GitHub Copilot.
What is GitHub Copilot?
GitHub Copilot is an AI coding assistant jointly developed by GitHub and OpenAI. It helps developers write code faster and more easily so they can focus on problem‑solving and collaboration.
Key features
- Real‑time code suggestions – While you type in Visual Studio Code, JetBrains IDEs, Neovim, and other IDEs, Copilot predicts the next line—or even an entire function—based on context, greatly accelerating development.
- Natural‑language interaction – Ask Copilot Chat (in Chinese, English, or your local language) to explain complex code, generate tests, assist with debugging, refactor existing code, or translate it into other languages.
- Cross‑platform integration – Beyond IDEs, Copilot works in GitHub Mobile, the CLI, Windows Terminal, and on GitHub.com, ensuring a seamless developer experience.
- Knowledge‑base & docs generation – On enterprise plans, teams can build private knowledge bases and automatically generate high‑quality pull‑request descriptions, saving communication overhead.
Operating modes
Copilot provides three escalating modes with different privileges:
Ask Mode | Edit Mode | Agent Mode | |
---|---|---|---|
Permission | Read‑only | Edit files | Full system & terminal access |
Output form | Plain text | Text + code changes | Automated tasks incl. package install & structure changes |
Use cases | Syntax, concepts, API docs | Refactoring, feature impl., styling, bug fixes | Env setup, project bootstrap, automated DevOps |
Example op. | Analysis & suggestions | Direct code edits | Modify project structure, run terminal cmds |
Capability | No file mutations | Code edits & optimizations | End‑to‑end automation |
In practice, use Ask Mode for lightweight queries and Agent Mode for environment configuration, package installs, or complex restructuring.
Model Comparison
GitHub Copilot is powered by several leading large language models (LLMs).
As of June 7, 2025, the supported core models are as follows:
Available Models | Free | Pro | Pro+ | Business | Enterprise |
---|---|---|---|---|---|
Claude 3.5 Sonnet | ✅ | ✅ | ✅ | ✅ | ✅ |
Claude 3.7 Sonnet | ❌ | ✅ | ✅ | ✅ | ✅ |
Claude 3.7 Sonnet Thinking | ❌ | ✅ | ✅ | ✅ | ✅ |
Claude Sonnet 4 | ❌ | ✅ | ✅ | ✅ | ✅ |
Claude Opus 4 | ❌ | ❌ | ✅ | ❌ | ✅ |
Gemini 2.0 Flash | ✅ | ✅ | ✅ | ✅ | ✅ |
Gemini 2.5 Pro | ❌ | ✅ | ✅ | ✅ | ✅ |
GPT-4o | ✅ | ✅ | ✅ | ✅ | ✅ |
GPT-4.1 | ✅ | ✅ | ✅ | ✅ | ✅ |
GPT-4.5 | ❌ | ❌ | ✅ | ❌ | ✅ |
o1 | ❌ | ✅ | ✅ | ✅ | ✅ |
o3 | ❌ | ❌ | ✅ | ❌ | ✅ |
o3-mini | ✅ | ✅ | ✅ | ✅ | ✅ |
o4-mini | ❌ | ✅ | ✅ | ✅ | ✅ |
All the models listed above are trained on vast amounts of public code and natural language data, enabling them to handle a wide range of programming languages and generate high-quality suggestions. Currently, my primary preference is to use Claude 3.5 Sonnet or Claude 3.7 Sonnet, switching to Gemini 2.5 Pro or GPT-4.1 as needed depending on the situation.
For more information on the models and recommendations for usage scenarios, please refer to the official documentation: Choosing the right AI model for your task.
Pricing tiers
The Free tier has several limits, keyed to the linked GitHub account:
- Up to 2,000 code completions per month.
- Up to 50 Copilot Chat messages per month (across IDE, terminal, CLI).
- Quotas reset automatically each month.
Below is a comparison table of the various GitHub Copilot plans:
Feature | Copilot Free | Copilot Pro | Copilot Pro+ | Copilot Business | Copilot Enterprise |
---|---|---|---|---|---|
Price | Free | USD 10/month or USD 100/year | USD 39/month or USD 390/year | USD 19/user/month | USD 39/user/month |
Code completions | 2,000 per month | Unlimited | Unlimited | Unlimited | Unlimited |
Premium requests | 50 per month | 300 | 1,500 per month | 300 per user/month | 1,000 per user/month |
Extra premium req. | – | USD 0.04 per request | USD 0.04 per request | USD 0.04 per request | USD 0.04 per request |
Model Multipliers for Advanced Requests
The number of advanced requests consumed per model is shown in the table below:
MoModel | Premium Request Consumption |
---|---|
Base Model (Currently GPT-4.1) | 0 (Paid Users) / 1 (Copilot Free) |
GPT-4.1 | 1 |
GPT-4o | 1 |
GPT-4.5 | 50 |
Claude 3.5 Sonnet | 1 |
Claude 3.7 Sonnet | 1 |
Claude 3.7 Sonnet Thinking | 1.25 |
Claude Sonnet 4 | 1 |
Claude Opus 4 | 10 |
Gemini 2.0 Flash | 0.25 |
Gemini 2.5 Pro | 1 |
o1 | 10 |
o3 | 5 |
o3-mini | 0.33 |
o4-mini | 0.33 |
- The GPT-4.5 model will be officially removed from the API service on July 14, 2025.
- Billing for advanced requests on individual plans was originally scheduled to begin on May 8, 2025, and was later postponed to June 4, 2025. Due to further adjustments, it has been postponed a second time, and a new official start date for billing has not yet been determined.
- Asking a single question in Copilot Chat using GPT-4.5 (which has a 50× multiplier) will consume 50 advanced requests, as each request is multiplied by the model’s multiplier.
Official pricing information is subject to change; please refer to the GitHub Copilot Premium Requests documentation for the latest consumption rates.
Education & open‑source benefits
Students, educators, and active open‑source maintainers can apply for Copilot Pro free of charge.
Student application flow
- Link your school email to your GitHub account.
- Upload valid ID (student ID, enrollment cert., or transcript).
- Review takes ~3–5 business days.
- If rejected, fill in missing docs and resubmit.
Using GitHub Copilot in VS Code
Launch Visual Studio Code.
Install the GitHub Copilot extensions
- Click the Extensions icon.
- Search for
Copilot
. - Install GitHub Copilot and GitHub Copilot Chat.
Sign in to GitHub
- After installation, VS Code prompts you to sign in.
- Click the account icon (lower left) to sign in manually if needed.
- Grant Copilot the requested scopes.
The status bar shows Copilot usage stats.
Click the toolbar button or press Ctrl + Alt + I to open Copilot Edits.
Drag a folder into the chat window so Copilot can analyze it. You may also use # variables such as
#codebase
(load the full project) or#fetch
(grab a webpage).
Enabling Agent Mode
Open Settings (
Ctrl +,
or click the gear icon).Search agent and enable Chat › Agent.
Troubleshooting
After updating VS Code to the latest version on another machine, I couldn’t find the Chat > Agent option. The issue was resolved by resetting the user settings through the following steps:
- Close VS Code.
- Delete the
%appdata%\Code
directory. - Restart VS Code.
You can use the following command to quickly delete the directory (Note: This operation will erase all user settings and cached data):
|
|
Subsequent Agent Mode operations
In an empty folder I issued: “Initialize a C project and create main.c.”
Agent Mode responded:
|
|
The README.md file outlines the compilation steps and how to execute the files. Any subsequent requirements can be continuously fulfilled using the agent mode.
Using a PostgreSQL MCP server
The PostgreSQL MCP server lets AI tools (e.g., Claude Desktop, VS Code) query and manipulate a PostgreSQL database via natural language.
- Open the project root.
- Press F1, type
mcp
, choose MCP: Add Server. - Select NPM package and enter
@modelcontextprotocol/server-postgres
. - Follow the prompts; use the default server ID or your project name.
- A new mcp.json appears. Replace
postgresql://localhost/mydb
with your URL. - Start the MCP server.
- In Agent Mode, select this server.
- You can now issue SQL‑related prompts. For example, when I input “Use MCP to tell me the database status,” the following output is returned:
|
|
Conclusion
Introducing GitHub Copilot Agent Mode has broken long‑standing bottlenecks in my projects. Problems that once required hours of research and trial‑and‑error now receive actionable solutions from a single natural‑language request.
From rapid front‑end prototyping to diagnosing technical issues and streamlining workflows, Copilot consistently proves practical and reliable. With clear objectives and specs, Agent Mode automates most development chores, boosting productivity and project momentum.
Integrating a PostgreSQL MCP server bridges the gap between natural language and database operations—especially valuable for developers unfamiliar with complex SQL. Routine CRUD tasks become conversational, reducing the learning curve and accelerating cross‑disciplinary collaboration.
In short, GitHub Copilot plus MCP Agent Mode is not merely an assistant but a paradigm shift in development and teamwork. Embed it in daily workflows to enhance efficiency, cut troubleshooting time, and lower the barrier to sophisticated data operations—delivering tangible gains in productivity and project pace.
References
- Agent mode: available to all users and supports MCP
- March 2025 (version 1.99)
- What is GitHub Copilot? - GitHub Docs
- VS Code Agent Mode Just Changed Everything
- About premium requests - GitHub Docs
- Deprecations - OpenAI API
- Introducing the Model Context Protocol \ Anthropic
- modelcontextprotocol/servers: Model Context Protocol Servers
- Enforcement of Copilot premium request limits moved to June 4, 2025 - GitHub Changelog