Run Copilot CLI in loops and split multi-part work
Daniel Ward used GitHub Copilot’s autopilot and /fleet features to finish larger jobs and divide separate chunks across parallel agents.
- What they did
- Ward turned on /experimental in GitHub Copilot CLI and then let autopilot handle a task with repeated passes instead of fresh prompts each time. He paired it with /plan to set direction, and used /fleet when the work broke into distinct pieces that could be handed to several subagents at once, including custom ones.
- How it went
- That setup let Copilot carry a substantial task through to the end, which worked well for quick proof-of-concept work. Ward found that /fleet adds coordination cost and can slow down smaller jobs, and he sets --max-autopilot-continues when he can’t monitor the session.
- Tips
- Use autopilot for work you can review later, not for production changes where closer oversight matters. If a run might go unattended, cap the number of automatic follow-up loops.
Try it yourself with GitHub Copilot
In [repo path], use GitHub Copilot CLI to tackle [task]. Begin with a short plan, then hand execution to autopilot and let it continue until [completion condition]. If the work naturally separates into independent chunks such as [chunk 1] and [chunk 2], route them through /fleet and spread them across parallel subagents; otherwise keep the job with one agent. Before any irreversible step like sending, deleting, paying, or submitting, pause and ask for my approval. When you’re finished, give a concise recap and note anything uncertain.
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
Run terminal commands carefully in Copilot agent mode
A VS Code user had Copilot agent mode run shell commands, but it often missed output or got stuck until they changed the shell setup.
Break a runtime migration into tiny reviewable PRs
GitHub engineers had Copilot agents carry out most of a large TypeScript-to-Rust runtime rewrite.
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.
Use Copilot to handle small site edits in draft PRs
A developer handed GitHub Copilot two minor website tweaks and got back separate draft pull requests that were easy to test and merge.
Repair a Delete button in a GitHub repo
A developer had Jules fix a broken Delete button, add tests, and leave the branch ready for review.
Check merged PRs for docs drift each week
Use a weekly agent run to spot merged code changes that should have updated documentation.