Claude Code & Context Engineering

GitHub Copilot Agent Mode: A Workflow Guide Beyond Autocomplete

5 November 2026 · Updated 28 November 2026 · 11 min read · by Yang Kai

How Copilot's agent mode and cloud agent actually work — VS Code agent mode, issue-to-PR delegation, custom instructions, model choice, and AI Credits pricing explained.

Template inside: Agent-mode task briefing template

Contents
  1. The short version
  2. Two agents, two working styles
  3. What changed in June 2026: premium requests became AI Credits
  4. Plans and pricing (checked November 2026)
  5. Briefing the cloud agent so the PR is worth reading
  6. A cloud-agent issue template
  7. Task
  8. Context
  9. Constraints
  10. Done when
  11. Custom instructions: one repo, several agents
  12. Spending credits on purpose
  13. Where Copilot's agent story is strongest — and where it is not
  14. Reviewing what the cloud agent did
  15. Which plan fits which working style?
  16. How we researched this

Autocomplete is no longer the interesting part of GitHub Copilot. The product has moved to agents: one that works beside you in your editor, and one that works without you on GitHub itself — and since June 2026, both are metered by the token rather than by the request, which changes what heavy agent use costs.

This guide covers how the two agents work, how to brief them so the output is worth reviewing, and what they cost under the current AI Credits pricing.

Everything factual here comes from GitHub’s own documentation and plans pages, checked in November 2026. One correction up front, because older guides — including an earlier version of this one — get it wrong: premium requests no longer exist. GitHub retired them on 1 June 2026.

The short version

You need Use Why
A refactor or feature you want to watch happen Agent mode in the editor It works in your workspace, with diffs you review as it goes
A well-specified task you want off your plate The cloud agent (formerly the coding agent) Assign an issue; review a draft pull request later
Line completions all day Any paid plan Completions do not consume AI Credits on paid plans
Daily agent work on frontier models Pro+ or Max Pro’s 1,500 monthly credits run out fast under agent loads

Two agents, two working styles

Agent mode is supervised work. In VS Code you open the Chat view, switch the mode picker from Ask or Edit to Agent, and describe the outcome. The agent plans steps, edits files across the project, runs terminal commands, reads the errors, and iterates until the task is done or it needs you. VS Code got it first; GitHub has since brought agent mode to its other supported editors, including Visual Studio, JetBrains IDEs, Xcode and Eclipse.

The cloud agent is delegated work. You write a GitHub issue, assign it to Copilot, and it works in an ephemeral environment on GitHub’s infrastructure, pushing a branch and opening a draft pull request with its session logs attached. You review asynchronously, leave PR comments, and it iterates. GitHub introduced this as the “coding agent”; current documentation mostly calls it the cloud agent.

Confusing the two is the main beginner error. Agent mode tolerates vague briefs because you are there to correct course. The cloud agent punishes them — a vague issue becomes a confidently wrong PR that costs you more review time than writing the code would have.

What changed in June 2026: premium requests became AI Credits

Under the old system, agent work consumed premium requests, with each model carrying a multiplier. On 1 June 2026 GitHub replaced that with GitHub AI Credits, per its billing documentation:

One footnote for long-time subscribers: annual-plan holders could stay on premium-request billing until their plan renews. Everyone else is on credits.

Plans and pricing (checked November 2026)

From GitHub’s published plans page and billing documentation:

Plan Price AI credits per month Notes
Free $0 Limited allowance (amount not published) 2,000 completions/month; automatic model selection only; no cloud agent
Pro $10/month 1,500 (1,000 base + 500 flex) Cloud agent and code review included
Pro+ $39/month 7,000 (3,900 base + 3,100 flex) Widest individual model choice, including the top frontier models
Max $100/month 20,000 (10,000 base + 10,000 flex) Priority access to new models and features
Business $19 per user/month 1,900 per user, pooled Central management, policy controls, audit logs
Enterprise $39 per user/month 3,900 per user, pooled Everything in Business, plus priority access

Pricing: as listed above, checked November 2026. Because credits are worth a cent each, the allowances translate directly: Pro carries $15 of metered usage, Pro+ carries $70, Max carries $200.

Briefing the cloud agent so the PR is worth reading

The issue is the prompt, and it needs the things a good task brief always needs: the problem, the constraints, the definition of done, and the pattern to follow. Point at the exemplar (“follow the structure of the CSV exporter in src/exports/”), name the tests that must pass, and state what not to touch.

A cloud-agent issue template

## Task
[One sentence: the outcome, not the steps.]

## Context
- Relevant files: [paths]
- Follow the pattern in: [exemplar file/feature]
- Related issue/PR: [#]

## Constraints
- Do not modify: [paths/APIs]
- Use only dependencies already in the project.
- Keep the change under ~[N] files unless you explain why not.

## Done when
- [ ] [Behaviour, stated as something a user/test can observe]
- [ ] Existing tests pass: [command]
- [ ] New tests cover: [cases]
- [ ] PR description summarises the approach and the risks

File issues at this standard and the cloud agent becomes a junior contributor with infinite patience. File them at “fix the export thing” standard and you will get exactly the PR that brief deserves.

Custom instructions: one repo, several agents

GitHub supports repository-level custom instructions in .github/muse-instructions.md, written once and applied to Copilot interactions across the repo, including the cloud agent’s sessions. Path-specific instruction files (.github/instructions/*.instructions.md) scope rules to parts of the tree.

This is the same instruction-file idea as CLAUDE.md, and Copilot also reads AGENTS.md files. If you maintain instructions for more than one tool, keep the conventions identical across the files; two agents following two style guides in one repo is a slow-motion merge conflict. The overlap between the formats is mapped in AGENTS.md vs CLAUDE.md.

Spending credits on purpose

Token metering rewards a different discipline than request counting did:

This is the same discipline as the Claude Code cost ladder, transplanted to a different meter: the model picker is a spending decision, not a preference.

Where Copilot’s agent story is strongest — and where it is not

The strength is location. Copilot sits inside the GitHub workflow teams already run: issues, PRs, code review, Actions. The cloud agent’s PRs arrive where review already happens, its sessions are auditable, and Copilot code review can take a first pass before a human does. For a team standardised on GitHub, that integration is worth more than a marginally better agent elsewhere — and it is the axis on which Copilot, Claude Code and Cursor-style tools genuinely differ.

The limits are equally concrete: the cloud agent works only on GitHub-hosted repos and is not on the Free plan, agent mode depends on editor support, and neither offers the deep local customisation — hooks that fire on every tool call, scripted pipelines, headless CI runs — that terminal agents in CI provide. Copilot does support MCP servers in agent mode, so external tools can join the workflow; vet them with the same care as anywhere else, per the MCP security checklist.

Reviewing what the cloud agent did

Delegated work is only cheap if reviewing it is fast. Three habits keep it that way:

Which plan fits which working style?

Mostly completions, occasional chat: Pro. The metered allowance covers light agent use, and completions — the thing you actually do all day — are unmetered.

Agent mode or the cloud agent most days: Pro+ or Max. At 7,000 and 20,000 credits respectively, they are priced for sustained agent work; on Pro, the same habit turns into overage charges or a paused meter mid-month.

A team on GitHub: Business, for the pooled credits and the policy controls. Pooling matters under token metering: one developer’s heavy week is absorbed by the team’s quieter members instead of hitting a personal wall.

A large organisation with compliance needs: Enterprise — the same pooled model at 3,900 credits per user, with the governance layer on top.

Whichever plan you pick, the first month is measurement: run your normal work, read the usage page, and let your own credit consumption — not a pricing table — make the final call.

How we researched this

Desk research from primary sources: GitHub’s Copilot documentation for agent mode, the cloud agent and custom instructions, and GitHub’s plans page and billing documentation for the AI Credits allowances — all checked in November 2026. No hands-on testing is claimed; the workflow advice follows from the documented behaviour and the pricing maths, which you can verify against your own usage page. Plan differences and IDE support are also tracked in the GitHub Copilot tool profile.

FAQ

What is the difference between Copilot agent mode and the cloud agent? Agent mode runs in your editor, in your workspace, supervised by you in real time. The cloud agent runs asynchronously on GitHub’s infrastructure: you assign an issue, it works in a cloud environment and opens a draft pull request for review.

Does Copilot agent mode cost extra? It is included in Copilot plans, but agent work consumes AI Credits, metered by token at the model’s published rate. Heavy agent use can exhaust a plan’s monthly allowance, after which additional usage is billed at $0.01 per credit if you have set a budget for it, or metered features pause.

What happened to premium requests? GitHub retired them on 1 June 2026 and replaced them with AI Credits — token-based metering at $0.01 per credit. Some annual-plan subscribers remain on the old system until their plan renews.

Can Copilot use my project’s instruction files? Yes. Repository custom instructions live in .github/muse-instructions.md, with path-specific instruction files for scoping, and Copilot also reads AGENTS.md. These instructions apply across chat, agent mode, and the cloud agent.

Is the cloud agent safe to let loose on a repo? It works on its own branch and opens draft PRs — nothing merges without human review, and its environment has restricted network access by default. The real risk is review burden, not rogue merges: brief issues precisely and keep tasks small.

Category: Claude Code & Context Engineering · Tags: #ai-coding #ai-agents #automation #git #pricing

Next step: this article is part of Claude Code guides, which covers the full topic from first setup to advanced use.

Related guides

Claude Code & Context Engineering

Aider: Terminal Pair Programming Where Every Edit Is a Git Commit

An Aider setup and workflow guide built from the official docs: installation, the repo map, architect mode's two-model split, the slash commands that matter, real costs, and who this open-source tool still suits.

10 min read