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.
Supported models
As of 21 Apr 2024, Copilot supports these core LLMs:
Model | Ask | Edit | Agent | Plan |
---|---|---|---|---|
Claude 3.5 Sonnet | ✅ | ✅ | ✅ | Free |
Gemini 2.0 Flash | ✅ | ❌ | ❌ | Free |
GPT‑4.1 | ✅ | ✅ | ✅ | Free |
GPT‑4o | ✅ | ✅ | ✅ | Free |
o3‑mini | ✅ | ❌ | ❌ | Free |
Claude 3.7 Sonnet | ✅ | ✅ | ✅ | Pro |
Claude 3.7 Sonnet Thinking | ✅ | ❌ | ❌ | Pro |
Gemini 2.5 Pro | ✅ | ✅ | ✅ | Pro |
o1 | ✅ | ❌ | ❌ | Pro |
o4‑mini | ✅ | ✅ | ✅ | Pro |
GPT‑4.5 | ✅ | ✅ | ✅ | Pro+ |
o3 | ✅ | ✅ | ✅ | Pro+ |
All models are trained on vast public code and natural‑language data.
Refer to the official guide, Choosing the right AI model for your task, for more details.
I personally prefer Claude 3.5 Sonnet or Claude 3.7 Sonnet, switching to Gemini 2.5 Pro or GPT‑4.1 as needed.
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.
Item | Free | Pro | Pro+ |
---|---|---|---|
Price | USD 0 | USD 10 mo / USD 100 yr | USD 39 mo / USD 390 yr |
Code completions | 2,000 / mo | Unlimited | Unlimited |
Premium requests | 50 / mo | 300 / mo | 1,500 / mo |
Extra premium req. | – | USD 0.04 / req | USD 0.04 / req |
Advanced‑model access | – | Excludes GPT‑4.5 & o3 | Full |
Model premium‑request multipliers
Model | Premium‑request cost |
---|---|
Base model (currently GPT‑4o) | 0 (paid), 1 (free) |
Claude 3.5 Sonnet | 1 |
Claude 3.7 Sonnet | 1 |
Claude 3.7 Sonnet Thinking | 1.25 |
Gemini 2.0 Flash | 0.25 |
Gemini 2.5 Pro | 1 |
GPT‑4.1 | 1 |
GPT‑4.5 | 50 |
o1 | 10 |
o3‑mini | 0.33 |
- GPT‑4.5 will be removed from the API on 14 Jul 2025.
- Premium‑request billing dates:
- 5 May 2025 – all personal plans (Free, Pro, Pro+)
- 12 May 2025 – self‑serve enterprises (card)
- 19 May 2025 – large enterprises (invoice)
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 + Shift + 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