AI-Powered Development with VS Code & GitHub CopilotΒΆ
OverviewΒΆ
This chapter teaches you how to turn VS Code into a fully AI-native development environment. We go deep on the three systems that make Copilot truly powerful: agent mode, MCP (Model Context Protocol), and custom instructions.
For a surface-level comparison of all AI coding tools, see 00_ai_dev_tools_2026.md. This chapter focuses exclusively on VS Code + GitHub Copilot.
Prerequisites:
Comfortable with Python and VS Code
Familiarity with git basics
Completed at least Phases 0-8 of the curriculum
Time: 1 week | 10-15 hours Outcome: A fully configured VS Code environment with Copilot agent mode, MCP servers, custom instructions, and model routing
What Youβll LearnΒΆ
How Copilotβs three modes work: completions, chat, and agent mode
How to configure and use MCP servers to connect Copilot to databases, browsers, and APIs
How to write custom instructions (
.github/copilot-instructions.md,.instructions.md,.prompt.md)How to select and route between models (GPT-4o, Claude, o3, Gemini)
How to build your own MCP server in Python
Real VS Code workflows for multi-file editing, debugging, testing, and code review
Module StructureΒΆ
31-ai-powered-dev-tools/
βββ README.md # This file
βββ 01_vscode_ai_setup.md # Copilot modes, model selection, settings
βββ 02_mcp_deep_dive.md # MCP protocol, server catalog, configuration
βββ 03_copilot_instructions_guide.md # All 7 customization primitives
βββ 04_copilot_workflows.md # Real VS Code + Copilot workflows
βββ 05_build_mcp_server.ipynb # Hands-on: build an MCP server in Python
Learning PathΒΆ
Day 1-2: VS Code AI SetupΒΆ
Read
01_vscode_ai_setup.mdConfigure Copilot agent mode and model selection
Set up at least one MCP server in your workspace
Exercise: Use agent mode to refactor a file, run tests, and fix failures
Day 3-4: MCP Deep DiveΒΆ
Read
02_mcp_deep_dive.mdUnderstand the MCP protocol: tools, resources, prompts
Configure Playwright MCP, a database MCP, or a filesystem MCP
Run through
05_build_mcp_server.ipynbto build your ownExercise: Build an MCP server that exposes your projectβs test results
Day 5: Custom Instructions and WorkflowsΒΆ
Read
03_copilot_instructions_guide.mdCreate a
.github/copilot-instructions.mdfor this repoCreate at least one scoped
.instructions.mdfileRead
04_copilot_workflows.mdExercise: Create a
.prompt.mdfile for a common task in your project
Key ConceptsΒΆ
The Three Layers of AI-Assisted DevelopmentΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββ
β Layer 3: Agent Mode β
β (multi-file edits, test-run-fix loops, β
β autonomous task completion) β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 2: MCP Tools β
β (database access, web search, file system, β
β API calls, custom tools) β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β Layer 1: Custom Instructions β
β (copilot-instructions.md, β
β .instructions.md, .prompt.md) β
βββββββββββββββββββββββββββββββββββββββββββββββ
Most developers only use Layer 3 (the chat). The 10x productivity gain comes from configuring Layers 1 and 2 properly.
Why This Chapter ExistsΒΆ
Copilot in 2026 is not autocomplete. It is:
An agent that reads your codebase, runs commands, and iterates on errors
Protocol-connected via MCP to databases, APIs, browsers, and cloud services
Instruction-driven by project-level config files that shape every response
Multi-model with routing between GPT-4o, Claude, o3, and Gemini per task
Understanding how to configure these systems is as important as understanding the models themselves.
How This Chapter Relates to Other PhasesΒΆ
Phase |
Connection |
|---|---|
00 β AI Dev Tools |
|
08 β RAG |
MCP servers can expose your RAG pipeline as a tool Copilot can call |
15 β AI Agents |
The agent patterns (plan β act β observe β reflect) are exactly what Copilot agent mode does |
18 β Low-Code AI Tools |
Gradio/Streamlit build UIs; this chapter builds developer workflows |
Quick Reference: Copilot Configuration FilesΒΆ
File |
Purpose |
Scope |
|---|---|---|
|
Project-wide coding rules |
All Copilot interactions in this repo |
|
Scoped rules for specific files/dirs |
Files matching the glob pattern |
|
Reusable agent workflow templates |
Available in the prompt picker |
|
MCP server configuration |
This workspace |
|
MCP server configuration (shared) |
This project, also Claude Code |
Part of the Zero to AI curriculum β Phase 31