Start with one change you can check yourself. Suppose a booking app should refuse a reservation when a class has zero seats. Copilot can explain the condition, suggest an edit, or help with a wider change. You decide what the app should do and verify the result before it reaches real bookings.
What can GitHub Copilot do?
In a supported editor, Copilot can suggest code as you type. Copilot Chat can explain code and help plan an edit. An editor with agent mode can work across files and ask to run commands. Check the feature matrix for your editor and version and confirm your account's access.
On GitHub, an eligible cloud agent session can work on a selected repository. It can prepare changes on a branch, a separate line of work, and open a pull request for a person to review. Start with editor suggestions or an explanation if you want to see and decide on each edit as you go.
What should you try first?
Before opening a project with Copilot enabled, use a disposable local repository with only invented files. Verify the folder is separate from your real project, has no Git remote or credentials, and cannot reach real records or connected services. Close unrelated editor tabs and confirm the GitHub account you use is allowed to send the sample. If you cannot verify that setup, work through the two results below on paper.
For the editor route, follow GitHub's setup steps for your editor and sign in with the eligible account. You can also compare GitHub Copilot's editor and cloud options if you are choosing how to work.
-
Write the expected results. Zero seats should return
false. One seat should returntrue. -
Ask for an explanation first. In the disposable repository, save this as
booking.js. Ask Copilot in chat what the two examples return and why. Then ask it to suggest only the smallest change that makes the results match your rule.function canBook(remainingSeats) { return remainingSeats >= 0; } console.log(canBook(0)); console.log(canBook(1)); -
Read the suggested change. The starting condition includes zero, so both lines print
true. Changing>= 0to> 0should change only the first result. If you have Node.js installed and verified that the file contains only this sample and the intended edit, runnode booking.jsfrom the disposable folder. Expectfalseandtrue, on separate lines.
What context helps Copilot suggest a useful change?
Give it the smallest piece of context that describes the work. Name the file, state the expected behavior and give an example that should keep working. In the booking example, the answer is easier to check if Copilot knows that a full class means zero remaining seats.
A supported editor can provide context from your workspace, and inline suggestions can use nearby code and open tabs. Look at any file references the interface shows and open the source yourself if the explanation depends on it. For repeated work, a supported Copilot feature can also read repository instructions about the project's conventions and checks. Inline suggestion context · Repository instruction support
When does an agent make sense?
An agent can help when a change needs several coordinated edits, such as showing a full class on the booking page and refusing the reservation when the request reaches the server. In a supported editor, check which project is open and which commands or tools the agent is allowed to use. On GitHub, verify the working repository, starting branch and execution environment before starting a cloud agent task.
Write the expected result and the files or systems that should stay untouched. For a first delegation, use a separate test repository and confirm that databases, emails, payments and deployment connections are off or test-only before the agent can read or run anything. Give the agent a small task, inspect the changed files and review the pull request yourself before merging. A change that prevents two people from claiming the last seat needs a check of how the app saves bookings as well as a check of the button.
What can go wrong with a plausible suggestion?
A suggestion can be valid code and still change the wrong behavior. Read the unfamiliar part, check any library function you rely on, and try the case most likely to break. For a booking change, check that a full class is refused and a class with space still works.
Copilot features can send relevant project context for online processing. Use files you are authorized to share and check the active account and organization settings before enabling it in a real project. Keep credentials and private records out of the conversation and the test project. For an unfamiliar command, find out what it reads, changes or contacts before allowing it to run.
What does GitHub Copilot charge for?
On usage-based plans, the subscription and included credits depend on your plan. GitHub listed one AI credit as US$0.01 when checked on November 12, 2026. Paid plans include unlimited standard code completions and next edit suggestions without AI-credit charges. Free limits completions. Check the current plan and credit allowances for your account.
| What you do | What to check before using it |
|---|---|
| Ask in chat or delegate an agent task | Model usage can consume AI credits. A longer task can make several model calls. The model and the amount of text it processes affect usage. |
| Request Copilot review on a GitHub pull request | Review uses AI credits and can also consume GitHub Actions minutes. Check your repository and runner allowances. |
| Run a session in a GitHub cloud sandbox | Running time and memory are metered separately. Keeping a saved snapshot after stopping can also use billable storage. Check the sandbox budget separately from the AI-credit budget. |
Some existing annual Pro and Pro+ subscriptions remain on legacy premium-request billing until their term ends. Check which meter and spending limit apply before starting a longer task. Usage-based billing · Code review costs · Cloud sandbox costs
How do you decide whether Copilot fits your work?
Check the job you want to do in the editor or repository you already use. For regular suggestions, try one change and see whether you can explain the edit and verify it without leaving your normal workflow. For team work, confirm the people who will review changes have access to the pull request and know who can approve commands and merges. If your project rules prohibit sharing its code with an online service, keep Copilot disabled for that project.
What should you record before sharing the change?
Say which behavior changed, which checks you actually ran, and what still needs a test. For example, a local seat-count check can show whether the helper returns the right answer for zero seats. It tells the reviewer exactly what was checked and leaves the whole booking flow, including simultaneous requests, for separate verification.