GitHub Copilot: the agent inside the editor you already use
Install Copilot in VS Code, sign in with a GitHub account (free plan included), switch Chat into agent mode, and use the Copilot CLI for terminal work. Plans and AI credits explained without the marketing.
What Copilot is now
Copilot started in 2021 as autocomplete with opinions. In 2026 it’s three products sharing one subscription:
- Completions โ ghost text in the editor, still the thing you’ll use every minute.
- Chat + agent mode โ a panel that can read your workspace, edit multiple files, run terminal commands, and call MCP tools, with your approval.
- Copilot CLI โ the same agent in a terminal, for repos and scripts outside the editor.
The pricing model changed with it: Copilot is now metered in GitHub AI credits rather than “chat requests”. Each plan includes a monthly allowance; heavy agent use burns through it.
Step 1 โ Install in VS Code
- Open VS Code โ Extensions view.
- Install GitHub Copilot (Microsoft) โ the Chat extension comes with it.
- Click the Copilot icon in the status bar โ Sign in with GitHub.
- Authorize in the browser, come back to VS Code.
No subscription? The Free plan activates with your GitHub account. It’s genuinely usable for learning: completions, chat, and agent mode with a monthly credit allowance and automatic model selection.
Step 2 โ Switch Chat into agent mode
Open Chat from the Copilot icon, then look at the mode selector at the bottom of the input box:
- Ask โ question/answer, reads context, changes nothing.
- Edit โ multi-file edits you review as a diff.
- Agent โ plans, edits, runs commands, reads output, iterates. This is the one that does work.
In agent mode, every terminal command and file write is proposed first. You approve, skip, or edit. Approval fatigue is the real risk โ after the tenth npm test it’s tempting to hit “always allow”. Don’t do that for anything that writes outside the repo.
Two settings worth knowing:
- Custom instructions:
.github/copilot-instructions.mdat the repo root is read automatically. Put your conventions there, not in chat. - MCP servers: Copilot can call external tools (databases, browsers, issue trackers) through MCP. Start with one, not five. What MCP is โ
Step 3 โ Copilot CLI
For work outside the editor โ a server over SSH, a script folder, a CI job:
npm install -g @github/copilot # Node.js 22+
winget install GitHub.Copilot # Windows
brew install --cask copilot-cli # macOS / Linux
First run:
cd ~/projects/my-app
copilot
/login # authenticate with GitHub, once
Then just ask. Shortcuts that matter: @ to mention files, / for slash commands, ? for help, Esc to cancel, Ctrl+C to clear or exit.
Non-interactive, for scripts:
copilot -p "explain what this repo does"
copilot -sp "list the TODO comments in src/" # -s: response only, no usage noise
copilot from ~ gives an agent read access to your SSH keys, browser profiles and every .env on the machine.Step 4 โ Which plan, really
Prices as of November 2026, per user per month:
| Plan | Price | AI credits / month | Who it’s for |
|---|---|---|---|
| Free | $0 | small allowance | trying it out, students |
| Pro | $10 | 1,000 | one developer, daily use |
| Pro+ | $39 | 3,900 | heavy agent use, premium models |
| Max | $100 | 10,000 | all-day agent work |
| Business | $19/seat | 1,900 | orgs with policy controls |
| Enterprise | $39/seat | larger pool | GitHub Enterprise Cloud |
A credit is not a request: a long agent turn with a big model can cost many credits, a completion costs a fraction. The practical rule: start on Free, move to Pro the first month you hit the cap, and only consider Pro+ if you’re in agent mode most of the day.
Copilot vs. Cursor vs. Claude Code
| Copilot | Cursor | Claude Code | |
|---|---|---|---|
| Surface | VS Code / JetBrains / CLI | its own editor | terminal |
| Free tier | yes | yes (limited) | no |
| Model choice | GitHub-hosted selection | multi-vendor | Anthropic only |
| Strength | cheapest path from zero, enterprise controls | best editor UX | best long agent sessions |
| Weakness | agent features lag | subscription upheaval (see next page) | no free tier |
If your team already pays for GitHub, Copilot is the least-friction choice and the one your security team has already reviewed. If you live in a terminal, the CLI is good but Claude Code and Codex CLI are more capable there.