Commit 4314170
docs: add /compact, /context, /usage commands and ACP session notes to Learning Hub (#1575)
Document the /compact, /context, and /usage slash commands in the
Copilot Configuration Basics page. These commands were not covered
in the main Learning Hub (outside the separate cli-for-beginners
track), but are broadly useful for interactive and ACP sessions:
- /context: visualize context window token usage
- /usage: display per-session token and API call metrics
- /compact: summarize conversation history to reclaim context space
- Note that all four (/env included) now work in ACP sessions (v1.0.39+)
- Note that ACP clients can toggle allow-all mode via session
configuration without a slash command (v1.0.39+)
Sources:
- https://github.com/github/copilot-cli/blob/main/changelog.md
(v1.0.39 – 2026-04-28)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b6c4bb6 commit 4314170
1 file changed
Lines changed: 25 additions & 1 deletion
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
498 | 520 | | |
499 | 521 | | |
500 | 522 | | |
| |||
519 | 541 | | |
520 | 542 | | |
521 | 543 | | |
| 544 | + | |
| 545 | + | |
522 | 546 | | |
523 | 547 | | |
524 | 548 | | |
| |||
0 commit comments