Skip to content

GitHub Copilot AI: Setup, Plans, and Agent Mode Guide

A developer working at a desk with a laptop and monitor showing a dark code editor


A developer working at a desk with a laptop and monitor showing a dark code editor

GitHub Copilot AI is GitHub’s AI coding assistant that suggests code as you type and answers questions about your project, while its agent features edit files and open pull requests on your behalf.

GitHub changed how Copilot bills its heavier features on 1 June, so chat and agent work now draw on AI credits while inline completions stay unlimited on paid plans and draw no credits at all.

Copilot began as a Tab key autocomplete. It has grown into a set of tools that share one account and one credit balance.

One mix-up to clear up early: Microsoft 365 Copilot is a different product for office apps such as Word and Excel. The Microsoft 365 Copilot guide covers that one. GitHub Copilot is the one for code.

Which surface should you start with

Inline completions are the smallest unit: gray text appears with a likely next line, and Tab accepts it while Esc dismisses it. Use completions for the next line and the boilerplate you have written a hundred times.

Copilot Chat is the step up. Ask in plain language, attach context with @workspace or a slash command, and read the answer before you touch any code.

Agent mode goes further: describe an outcome, and Copilot plans the edits, changes files, runs the tests, and shows you the diff. Give it one small task first.

The cloud coding agent works away from your machine. Hand it an issue or a prompt on github.com and it opens a draft pull request when it finishes. Copilot CLI brings the same help to the terminal.

Copilot runs in VS Code and Visual Studio and the JetBrains IDEs. Neovim and Xcode are covered, and so is Eclipse.


An over the shoulder view of a programmer looking at a code editor with blurred lines of code and a keyboard in front

Set it up in five minutes

Install the GitHub Copilot extension from inside your editor and sign in with the GitHub account that holds your plan. Open a real project, not an empty file.

Run one small loop first. Type a comment that describes a short function, watch the gray suggestion appear, and press Tab to accept it or Esc to turn it down. TMS Outsource covers the same setup and credit rules.

Pick a plan after that loop, not before it. Copilot Free costs nothing and caps completions at 2,000 a month. Upgrade when Free starts to pinch.


A laptop showing an extensions marketplace with puzzle piece tiles and a hand on the trackpad

Set custom instructions before you write real code

Copilot guesses your house style from the files it can see. Custom instructions remove the guesswork: write the rules once, and every suggestion follows them. State the language version and the test framework.

Two places hold these rules. Your personal settings hold them under Settings, then GitHub Copilot, then Custom Instructions. A copilot-instructions.md file in a repository’s .github folder applies to everyone on that project. Hugo W’s guide calls custom instructions the single highest-ROI configuration.

Keep the file short. Ten rules a new hire could follow beat fifty that nobody reads.


A developer looking at a monitor split between a code editor and a chat panel with message bubbles

GitHub Copilot AI plans and AI credit pricing

GitHub bills Copilot two ways: a monthly seat price, and AI credits for chat and agent work. One credit costs one cent, and each model burns credits at its own rate.

Pro costs $10 a month and includes 1,500 credits, split into 1,000 base credits and a 500 credit flex allotment; Pro+ costs $39 with 7,000 credits, and Max costs $100 with 20,000. Inline completions stay unlimited on all three and use no credits.

Teams pay per seat. Business costs $19 per seat a month with 1,900 credits per user, and Enterprise costs $39 with 3,900, pooled across the organization. GitHub Docs lists each plan with its price and credit allowance. Flex allotments can change.

Models are the other half of the decision. OpenAI and Anthropic supply most of the headline names, with Google and xAI in the same roster, and the GPT-4o guide and the Gemini 3 guide cover two of the model families behind Copilot. Recent guides list GPT-5.5, Claude Sonnet 5.5, and Gemini 3.8 Flash among the current options. Free and Student users get automatic selection only, while paid plans let you choose.


A laptop showing three blank pricing plan cards with a notebook and coffee cup on a wooden desk

Agent mode and the cloud coding agent

Agent mode lives in your editor. Describe the outcome in Chat, switch to agent mode, and watch Copilot edit files and run commands. It reads the errors and tries again.

Approval stays in your hands. Agent mode pauses before it edits files or runs terminal commands. Start with one small task on its own branch, and run the tests yourself after Copilot says it finished.

The cloud coding agent takes the same idea off your machine. Assign it an issue or a prompt from github.com and it opens a draft pull request for review. Paid plans include it. GitHub’s own tutorial walks through Agent mode and the coding agent with working prompts.

Copilot is not the only agent in town. Claude Code and OpenAI Codex take the same agent idea into the terminal, and the ChatGPT agent guide covers OpenAI’s browser-based counterpart.


A developer reviewing a file changes view with green and red blocks on a monitor beside a checklist

What Copilot still gets wrong

Copilot writes code that looks right and runs wrong. GitHub says so itself: its docs warn that suggestions can be syntactically correct and still insecure. Treat every suggestion as a draft. Run the tests and read the diff.

One more wrinkle hides in the model picker: testing found evaluation models may perform worse on security-related prompts, and they can appear under codenames. If security matters, pick a named general release model.

Your code has a second life to consider. On Free, Pro, Pro+, and Max, GitHub may use your interactions to train and improve its models unless you opt out in settings. Business and Enterprise plans skip that training by default.

Start on Free and give Agent mode one small tested task. If the credits run out before the month does, Pro is the next step. If they do not, you have your answer.


Two developers discussing code review comments on a large screen in an office

Frequently asked questions about GitHub Copilot AI

Is GitHub Copilot AI free?

Copilot Free costs nothing. It caps completions at 2,000 a month and includes a limited credit allowance, but the cloud coding agent needs a paid plan.

How much does GitHub Copilot cost per month?

Pro costs $10, Pro+ costs $39, and Max costs $100, with 1,500, 7,000, and 20,000 AI credits a month in the same order.

Which editors does Copilot work in?

VS Code and Visual Studio lead the list, with the JetBrains IDEs close behind. Neovim and Xcode are covered too, as is Eclipse.

Does GitHub train its models on my code?

On individual plans, GitHub may use your prompts and surrounding code for training unless you opt out. Business and Enterprise plans skip that training.

What is the difference between Agent mode and the coding agent?

Agent mode runs inside your editor and edits files while you watch; the coding agent runs in the cloud from github.com and opens a draft pull request when it finishes.

Should I trust Copilot code review on its own?

Treat it as a second pair of eyes, not the only review. GitHub’s docs say code review can miss real problems and flag ones that do not exist. Read the diff yourself before you merge.

Leave a Comment