What Autopilot controls
In a normal interactive session, Copilot eventually returns control to you for the next instruction. Autopilot changes that outer conversation flow: it can start successive model interactions on its own while working through the same task.
It does not automatically grant every tool permission. Continuation and permission are separate controls, even though Autopilot works most smoothly when the required permissions are granted up front.
How to start it
Inside an interactive Copilot CLI session, use Shift + Tab to cycle through standard, plan, and Autopilot modes. For a direct invocation, pass the task with the Autopilot flag.
# 1. Start Copilot CLI
copilot
# 2. Use Shift+Tab to enter plan mode and refine the plan
# 3. Choose “Accept plan and build on autopilot”
copilot --autopilot --yolo \
--max-autopilot-continues 10 \
-p "Implement the approved plan and run the relevant checks"
Treat --yolo as a separate risk decision
It is an alias for full permissions. It can allow file changes, deletions, tool use, paths, and URLs without another approval prompt. Use a trusted repository and review the final diff.
How it stops
Autopilot continues until one of four events occurs:
- Copilot determines the task is complete.
- A problem prevents meaningful progress.
- You press Ctrl + C.
- The configured continuation limit is reached.
By default, completion returns the CLI to standard interactive mode. The stayInAutopilot setting keeps the mode selected for your next prompt; it does not make the completed task continue indefinitely.
Autonomy is not permission
- Autopilot
- Allows successive agent continuations until the task ends.
--allow-all- Approves tool, path, and URL access but leaves the normal interactive conversation flow in place.
--no-ask-user- Suppresses clarifying questions but does not provide Autopilot’s repeated model continuations.
--max-autopilot-continues- Caps how many continuation messages Autopilot may initiate.
Where it fits
Good fits
- Implementing a detailed, reviewed plan
- Writing or repairing test coverage
- Bounded refactors with clear verification
- Fixing a known CI failure locally
Poor fits
- Vague product discovery
- Work requiring frequent judgment calls
- Untrusted repositories with broad permissions
- Periodic monitoring over hours or days
How it differs
Autopilot is task-driven
Unlike Claude /loop, the next iteration is not scheduled by elapsed time. Unlike Codex /goal, the product description centers on autonomous completion of the assigned task rather than a durable, user-defined stopping condition evaluated across turns.
First-party sources
Autopilot concepts
Behavior, permissions, stop conditions, and typical workflow.
Read GitHub Docs (opens in a new tab) ↗CLI command reference
Flags, mode shortcuts, and continuation limits.
Read the reference (opens in a new tab) ↗