Overview
Hand a scoped code change to GitHub Copilot on GitHub.com, let it plan and implement the change on a branch in a cloud environment, then review its pull request and merge only after your own checks pass.
Problem or Objective
- Which agents build a non-trivial feature with you?
- Which agents take on multi-step tasks in the background and report back when they finish or need approval?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- GitHub Copilot · GitHub
- Prerequisites
- A paid Copilot plan for the newer cloud experience on GitHub.com (from 28 October 2026), subject to applicable organisation and enterprise policies; repository owners and administrators can disable Copilot for particular repositories.
How It Works
Pick a change that is small and well described, such as a missing test suite or a bug with clear reproduction steps, and write down what done looks like. On GitHub.com, open Copilot from the repository, issue or pull request and describe the task, naming the repository and the branch to start from. Copilot researches the repository, plans the change and implements it in the background, running tests and linters in a cloud environment. Read its plan and the proposed changes, ask for refinements, then have it open a pull request. Follow the session log to see which tools it used. Request a Copilot code review if you like, but do your own review and run your checks before you merge; the merge is your decision. Keep branch protection or rulesets on the default branch, and decide deliberately whether Copilot may bypass them.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up GitHub Copilot.
- Connect the toolsConnect the tools this workflow relies on: GitHub Copilot, GitHub.
- Check the prerequisitesA paid Copilot plan for the newer cloud experience on GitHub.com (from 28 October 2026), subject to applicable organisation and enterprise policies; repository owners and administrators can disable Copilot for particular repositories.
- Gather your detailsCollect what the prompt asks for: Repository, Branch to start from, The change to make, What done looks like.
- Run the starter promptPaste the starter prompt below into GitHub Copilot and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.github.com before you rely on it.
Practical Starter Prompt: Implement this scoped change
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In [Repository], starting from the [Branch to start from] branch, implement the following change: [The change to make]. Done means: [What done looks like]. First show me your plan and wait for my go-ahead before making changes. Run the existing tests and linters, and add tests for the new behaviour. Then open one pull request that explains what changed and why, and list anything you were unsure about. Do not merge: I will review and merge it myself.Review the plan before Copilot changes code, then review and test the pull request yourself before merging. Keep branch protection on the default branch.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. GitHub's documentation says Copilot on GitHub.com can research a repository, plan changes and implement them in the background, editing files and running tests and linters in a cloud environment, and that you can review proposed changes before a pull request is created. It also says Copilot works on one branch at a time with one pull request per task. The pages give no figures on the quality of delegated changes, so how well a given task goes depends on your repository and your review.
Limitations and Considerations
GitHub warns that Copilot can produce incorrect or suboptimal code, including code with security vulnerabilities, so review and test it before production. Session logs show the work but do not replace your own review. A ruleset or branch protection rule can stop Copilot from creating or updating pull requests unless an administrator configures a bypass, so choose that setting on purpose. From 28 October 2026 the newer cloud experience is for paid Copilot plans, subject to organisation and enterprise policies. Available features depend on your plan and organisation policies; check usage allowances and costs in GitHub's billing documentation. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- GitHub Copilot on GitHub.com and GitHub Mobile - GitHub Docs (opens in a new tab)
Project documentation · docs.github.com · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- Copilot can research a repository, plan changes, and implement them in the background. It can edit files and run tests and linters in a cloud development environment, rather than your local IDE.
- When you ask for changes, Copilot works against the repository and branch you provided. You can review the proposed changes and ask for refinements before creating a pull request, or request a pull request in your prompt.
- A ruleset or branch protection rule can prevent Copilot from creating or updating pull requests. Repository administrators can configure a ruleset bypass for Copilot.
- Starting October 28, 2026, the new Copilot in the cloud experience on GitHub.com and GitHub Mobile is available to users with a paid Copilot plan, subject to applicable organization and enterprise policies.