132 words
1 minutes
How to Plan Before Coding in GitHub Copilot CLI【/plan】

Overview#

Ever told Copilot “build this feature” and it immediately started writing code that was… not what you had in mind?

Jumping straight into code — whether you’re human or AI — tends to go sideways. Plan first. That’s what /plan does.


Usage#

Run this in Copilot CLI:

/copilot> /plan implement JWT authentication

Instead of writing code immediately, Copilot creates an implementation plan. You can review and adjust the plan before moving to implementation.


Shift+Tab Also Works#

Press Shift+Tab to cycle through modes. In “plan” mode, Copilot will always present a plan before taking action.


When to Use It#

ScenarioBenefit
Adding a large featureUnderstand the big picture first
Changes spanning multiple filesKnow which files will be touched beforehand
Unsure about the design approachGet options laid out clearly

How to Plan Before Coding in GitHub Copilot CLI【/plan】
https://naonao-na.com/en/posts/github-copilot-cli-plan/
Author
[object Object]
Published at
2026-03-28