You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial/lessons/08-planning-mode.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,6 @@ There are two ways:
36
36
37
37
Look at the bottom of your terminal to see which mode you're in. Just keep pressing Shift+Tab until you see the plan mode indicator.
38
38
39
-
> **Note on Autopilot Mode:** When using Autopilot Mode, Copilot limits itself to 5 continuation messages by default to prevent unbounded autonomous execution. You can adjust this limit with the `--max-autopilot-continues` flag when launching Copilot:
40
-
> ```
41
-
> copilot --max-autopilot-continues 10
42
-
> ```
43
-
> This safety default means Autopilot Mode will pause and wait for your input after 5 steps in a longer task.
44
-
45
39
**`/plan` command** — You can also type `/plan` followed by your prompt:
Copy file name to clipboardExpand all lines: tutorial/lessons/14-session-management.md
+5-19Lines changed: 5 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,18 +29,6 @@ Each session has a unique ID. You can resume a specific session by ID:
29
29
30
30
---
31
31
32
-
### Session history with `/chronicle`
33
-
34
-
**`/chronicle`** — Review a structured history of your session, including which files were read or edited and when:
35
-
36
-
```
37
-
/chronicle
38
-
```
39
-
40
-
This shows a timeline of file interactions during your session — useful for understanding what Copilot accessed and in what order. It's especially helpful when you want to audit a long session or hand off context to a colleague.
41
-
42
-
---
43
-
44
32
### Context compression
45
33
46
34
As conversations grow, the context window fills up. Copilot handles this automatically — at 95% token capacity, it auto-compacts the conversation to make room. But you can also manage it manually:
@@ -127,22 +115,20 @@ Sometimes it's better to start over than to correct course:
127
115
128
116
1. Try `/context` to see your token usage visualisation
129
117
2. Try `/usage` to see your session statistics
130
-
3. Try `/chronicle` to see a timeline of files accessed in this session
131
-
4. Think about when you'd use `--continue` vs `/resume`:
118
+
3. Think about when you'd use `--continue` vs `/resume`:
132
119
-`--continue`: "I closed my terminal but want to pick up exactly where I left off"
133
120
-`/resume`: "I have several ongoing sessions and want to choose which one to revisit"
134
-
5. If your context feels long, try `/compact "Focus on the current lesson"`
121
+
4. If your context feels long, try `/compact "Focus on the current lesson"`
135
122
136
123
---
137
124
138
125
## Hints
139
126
140
127
1.`/context` shows a visual breakdown — it's the quickest way to understand your token budget
141
128
2.`/usage` gives you raw session stats
142
-
3.`/chronicle` shows a timeline of files accessed in this session — useful for auditing what Copilot read or wrote
143
-
4.`/compact` is your friend for long sessions — it summarises without losing the thread
144
-
5.`/restart` reloads the CLI without clearing your conversation — useful when the CLI feels buggy or after changing config
145
-
6. This is about building habits: use `/clear` between tasks, `/compact` when sessions get long, `/restart` when the CLI misbehaves, and `/resume` to pick up where you left off
129
+
3.`/compact` is your friend for long sessions — it summarises without losing the thread
130
+
4.`/restart` reloads the CLI without clearing your conversation — useful when the CLI feels buggy or after changing config
131
+
5. This is about building habits: use `/clear` between tasks, `/compact` when sessions get long, `/restart` when the CLI misbehaves, and `/resume` to pick up where you left off
Copy file name to clipboardExpand all lines: tutorial/lessons/15-programmatic-mode.md
-14Lines changed: 0 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,20 +28,6 @@ cat error.log | copilot -p "explain this error and suggest a fix" > summary.txt
28
28
git diff main | copilot -p "review these changes for bugs"
29
29
```
30
30
31
-
### Attaching files and images
32
-
33
-
In non-interactive mode, use `--attachment` to pass images or documents alongside your prompt:
34
-
35
-
```bash
36
-
copilot -p "describe the UI shown in this screenshot" --attachment screenshot.png
37
-
```
38
-
39
-
```bash
40
-
copilot -p "review the architecture described in this diagram" --attachment architecture.pdf
41
-
```
42
-
43
-
This enables CI/automation workflows that include visual content — for example, screenshot regression checks or automated design review pipelines. You can include multiple `--attachment` flags in a single command.
44
-
45
31
### Scoping permissions
46
32
47
33
When running in automation, lock down what Copilot can do:
In addition to specific models, Copilot CLI offers an **Auto** mode that uses server-side model routing to automatically select the best model for each request in real time. This can give you better results without you having to manually switch models.
15
+
|**Claude Sonnet 4.6** (default) | Daily coding tasks, good balance of speed and quality |
16
+
|**Claude Opus 4.6**| Complex reasoning, architectural work, thorough analysis |
17
+
|**GPT-5**| Code generation, broad knowledge |
20
18
21
19
### Switching models
22
20
@@ -77,10 +75,9 @@ This creates a `.github/copilot-instructions.md` file with sensible defaults bas
77
75
1. Try `/model` to see what models are available and how to switch between them
78
76
2. Try `/theme` to see available visual themes
79
77
3. Think about when you'd switch models:
80
-
- Working on a quick bug fix? Stay on Sonnet 4.5
81
-
- Designing a complex architecture? Switch to Opus 4.5
82
-
- Want a different perspective on an approach? Try GPT-5.2 Codex
83
-
- Not sure which model to use? Try **Auto** mode and let Copilot decide
78
+
- Working on a quick bug fix? Stay on Sonnet 4.6
79
+
- Designing a complex architecture? Switch to Opus 4.6
80
+
- Want a different perspective on an approach? Try GPT-5.3 Codex
1. The easiest approach: take a screenshot of this terminal right now (`Cmd+Shift+4` on Mac, `Win+Shift+S` on Windows), then paste it into Copilot and ask "what do you see?"
51
50
2. Copilot can read most common image formats: PNG, JPG, GIF, WebP
52
-
3. For CI/automation scripts, use `--attachment` with the `-p` flag: `copilot -p "describe this" --attachment image.png`
53
-
4. This is about knowing the capability exists — you'll use it naturally when you encounter a visual debugging situation
51
+
3. This is about knowing the capability exists — you'll use it naturally when you encounter a visual debugging situation
0 commit comments