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: 01-setup-and-first-steps/README.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -361,11 +361,11 @@ These commands work in interactive mode. **Start with just these six** - they co
361
361
362
362
| Command | What It Does | When to Use |
363
363
|---------|--------------|-------------|
364
-
|`/help`| Show all available commands | When you forget a command |
365
364
|`/clear`| Clear conversation and start fresh | When switching topics |
365
+
|`/help`| Show all available commands | When you forget a command |
366
+
|`/model`| Show or switch AI model | When you want to change the AI model |
366
367
|`/plan`| Plan your work out before coding | For more complex features |
367
368
|`/research`| Deep research using GitHub and web sources | When you need to investigate a topic before coding |
368
-
|`/model`| Show or switch AI model | When you want to change the AI model |
369
369
|`/exit`| End the session | When you're done |
370
370
371
371
That's it for getting started! As you become comfortable, you can explore additional commands.
@@ -381,20 +381,20 @@ That's it for getting started! As you become comfortable, you can explore additi
381
381
382
382
| Command | What It Does |
383
383
|---------|--------------|
384
-
|`/init`| Initialize Copilot instructions for your repository |
385
384
|`/agent`| Browse and select from available agents |
386
-
|`/skills`|Manage skills for enhanced capabilities|
385
+
|`/init`|Initialize Copilot instructions for your repository|
387
386
|`/mcp`| Manage MCP server configuration |
387
+
|`/skills`| Manage skills for enhanced capabilities |
388
388
389
389
> 💡 Agents are covered in [Chapter 04](../04-agents-custom-instructions/README.md), skills are covered in [Chapter 05](../05-skills/README.md), and MCP servers are covered in [Chapter 06](../06-mcp-servers/README.md).
390
390
391
391
### Models and Subagents
392
392
393
393
| Command | What It Does |
394
394
|---------|--------------|
395
-
|`/model`| Show or switch AI model |
396
395
|`/delegate`| Hand off task to Copilot coding agent on GitHub (agent in the cloud) |
397
396
|`/fleet`| Split a complex task into parallel subtasks for faster completion |
397
+
|`/model`| Show or switch AI model |
398
398
|`/tasks`| View background subagents and detached shell sessions |
399
399
400
400
### Code
@@ -403,40 +403,43 @@ That's it for getting started! As you become comfortable, you can explore additi
403
403
|---------|--------------|
404
404
|`/diff`| Review the changes made in the current directory |
405
405
|`/pr`| Operate on pull requests for the current branch |
406
-
|`/review`| Run the code-review agent to analyze changes |
407
406
|`/research`| Run deep research investigation using GitHub and web sources |
407
+
|`/review`| Run the code-review agent to analyze changes |
408
408
|`/terminal-setup`| Enable multiline input support (shift+enter and ctrl+enter) |
409
409
410
410
### Permissions
411
411
412
412
| Command | What It Does |
413
413
|---------|--------------|
414
-
|`/allow-all`| Auto-approve all permission prompts for this session |
415
414
|`/add-dir <directory>`| Add a directory to allowed list |
416
-
|`/list-dirs`|Show all allowed directories|
415
+
| `/allow-all [on|off|show]` |Auto-approve all permission prompts; use `on` to enable, `off` to disable, `show` to check current status|
417
416
|`/cwd`, `/cd [directory]`| View or change working directory |
417
+
|`/list-dirs`| Show all allowed directories |
418
418
419
419
> ⚠️ **Use with caution**: `/allow-all` skips confirmation prompts. Great for trusted projects, but be careful with untrusted code.
420
420
421
421
### Session
422
422
423
423
| Command | What It Does |
424
424
|---------|--------------|
425
-
|`/resume`|Switch to a different session (optionally specify session ID)|
426
-
|`/rename`|Rename the current session|
425
+
|`/clear`|Abandons the current session (no history saved) and starts a fresh conversation|
426
+
|`/compact`|Summarize conversation to reduce context usage|
427
427
|`/context`| Show context window token usage and visualization |
428
+
|`/new`| Ends the current session (saving it to history for search/resume) and starts a fresh conversation. |
429
+
|`/resume`| Switch to a different session (optionally specify session ID) |
430
+
|`/rename`| Rename the current session (omit the name to auto-generate one) |
431
+
|`/rewind`| Open a timeline picker to roll back to any earlier point in the conversation |
428
432
|`/usage`| Display session usage metrics and statistics |
429
433
|`/session`| Show session info and workspace summary |
430
-
|`/compact`| Summarize conversation to reduce context usage |
431
434
|`/share`| Export session as markdown file or GitHub gist |
432
435
433
436
### Help and Feedback
434
437
435
438
| Command | What It Does |
436
439
|---------|--------------|
437
-
|`/help`| Show all available commands |
438
440
|`/changelog`| Display changelog for CLI versions |
Copy file name to clipboardExpand all lines: 02-context-conversations/README.md
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -330,19 +330,27 @@ copilot
330
330
331
331
### Check and Manage Context
332
332
333
-
As you add files and conversation, Copilot CLI's [context window](../GLOSSARY.md#context-window) fills up. Two commands help you stay in control:
333
+
As you add files and conversation, Copilot CLI's [context window](../GLOSSARY.md#context-window) fills up. Several commands are available to help you stay in control:
334
334
335
335
```bash
336
336
copilot
337
337
338
338
> /context
339
-
Context usage: 45,000 / 128,000 tokens (35%)
339
+
Context usage: 62k/200k tokens (31%)
340
340
341
341
> /clear
342
-
# Wipes context and starts fresh. Use when switching topics
342
+
# Abandons the current session (no history saved) and starts a fresh conversation
343
+
344
+
> /new
345
+
# Ends the current session (saving it to history for search/resume) and starts a fresh conversation
346
+
347
+
> /rewind
348
+
# Opens a timeline picker allowing you to roll back to an earlier point in your conversation
343
349
```
344
350
345
-
> 💡 **When to use `/clear`**: If you've been reviewing `books.py` and want to switch to discussing `utils.py`, run `/clear` first. Otherwise stale context from the old topic may confuse responses.
351
+
> 💡 **When to use `/clear` or `/new`**: If you've been reviewing books.py and want to switch to discussing utils.py, run /new first (or /clear if you don't need the session history). Otherwise stale context from the old topic may confuse responses.
352
+
353
+
> 💡 **Made a mistake or want to try a different approach?** Use `/rewind` (or press Esc twice) to open a **timeline picker** that lets you roll back to any earlier point in your conversation, not just the most recent one. This is useful when you went down the wrong path and want to backtrack without starting over entirely.
0 commit comments