Map the work before letting Copilot edit code
A developer gave GitHub Copilot backend tasks only after locking down scope, checks, and file limits in a short written plan.
- What they did
- The developer was handling a small SaaS backend change and began by writing a brief planning doc that laid out the objective, what was out of bounds, which files could be touched, the constraints, and how success would be judged. Once that guardrail existed, they used GitHub Copilot to carry out the implementation and the repeated edits for a new endpoint, authentication updates, webhook processing, and test changes. Other chat models were used earlier to help shape the plan and work through possible edge cases.
- How it went
- They said this cut down on Copilot drifting away from the task compared with handing it a vague TODO, and it kept the generated code closer to the project’s established style. The main drawback was that Copilot could still freewheel when the assignment was too thin, especially on larger changes.
- Tips
- Wait to delegate until you can state clear acceptance checks. For bigger work, split the checklist into smaller file-level items before asking the agent to proceed.
Try it yourself with GitHub Copilot
I’ve drafted this implementation plan: [Paste your spec here, including the target change, what not to touch, which files may change, constraints, and how to verify success] Use GitHub Copilot to carry out the backend work in my repository, but do not step beyond the plan. If anything is ambiguous, ask me first. When you’re ready to make a change that could affect data, remove code, submit anything, or trigger an external action, pause and wait for my approval before doing it. Then implement the required endpoint, auth update, webhook handling, and tests, run the tests, and list every file you changed with a short reason for each.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Copilot agent mode for multi-step coding work
Hand Copilot agent mode larger coding jobs that need file selection, command runs, and repeated fixes, not just quick text edits.
Summarize a private repo’s app flow with Copilot
A developer used GitHub Copilot to map an app’s flow in a client’s private repo, then realized the work had happened under their own account.
Turn Sentry bugs into GitHub issues for Copilot
Harrison sent noisy Sentry bugs to GitHub issues and let Copilot fix them, with mixed results on failing Vitest tests.
Have Copilot repair an existing pull request
A developer used GitHub Copilot to patch a PR, but it created a separate PR instead of updating the original branch.
Plan big code changes before letting Copilot edit
Use Copilot’s planning phase to review a change list first, then let Agent mode carry out the edits after you approve it.
Use Copilot to assemble a FastAPI image browser
A developer asked GitHub Copilot Agent Mode for one FastAPI app and got a working image browser back.