Use Copilot for narrow coding tasks only
A developer first let GitHub Copilot Agent Mode handle most coding, then restricted it after losing track of their own code.
- What they did
- A developer used GitHub Copilot Agent Mode for nearly every coding task, including tests, refactors, and new modules. Over time, they noticed that handing over too much work left them less able to understand and debug what they had built. They then changed their workflow so the agent still drafts changes, but they review its reasoning, compare it with their architecture, and stay involved in the decision-making.
- How it went
- They described the narrower setup as a better fit because it kept them more in control of the codebase and made them feel like a stronger developer. The main downside of the earlier approach was that debugging became harder when they relied on the agent too much.
- Tips
- Use the agent as a partner, not a replacement: limit it to one bounded area and make it explain its choices. Pause before any irreversible action so you can approve the final step yourself.
Try it yourself with GitHub Copilot
In my [language/framework] project, help with only [one narrow task, such as writing unit tests for [folder] or refactoring [file]]. Before changing anything outside that scope, ask me. For each proposed change, explain in plain language what you would do and why, then wait for my approval before you apply it. Stop once [specific completion condition, such as all tests pass or the refactor is finished].
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
Set Copilot to code in a branch before it pushes
A developer used GitHub Copilot to work issues, but learned to give tighter instructions after it wrote weak first PRs and pushed to the wrong place.
Design a PR review agent for Azure DevOps
A developer explored how to use GitHub Copilot to review pull requests for Azure DevOps repos, despite Copilot’s built-in review being limited to GitHub.
Use Copilot CLI subagents for parallel terminal work
A commenter used GitHub Copilot CLI to split repo work across multiple subagents, run commands in parallel, and review the results live.
Update a codebase with Copilot in chat and agent mode
A developer used GitHub Copilot to make code changes and preferred the CLI’s autopilot workflow and todo list.
Try Copilot Agents for a complex app upgrade
A developer moved a big web app migration from Copilot Chat to Copilot Agents after Chat had trouble keeping up with the full project.
Break a runtime migration into tiny reviewable PRs
GitHub engineers had Copilot agents carry out most of a large TypeScript-to-Rust runtime rewrite.