Exam GH-600 Topic 1 Question 28 Discussion
Actual exam question for Microsoft's GH-600 exam
Question #: 28
Topic #: 1
Question #: 28
Topic #: 1
You have a GitHub repository.
You use the GitHub Copilot CLI to run an agentic workflow from the terminal.
During execution, the conversation history approaches the context limit. The agent cannot continue the current session unless the amount of retained context is reduced.
You need to continue the current session without losing all the prior progress.
Which Copilot CLI slash command should you run?
You use the GitHub Copilot CLI to run an agentic workflow from the terminal.
During execution, the conversation history approaches the context limit. The agent cannot continue the current session unless the amount of retained context is reduced.
You need to continue the current session without losing all the prior progress.
Which Copilot CLI slash command should you run?
Suggested Answer: D Vote an answer
You should run the /compact slash command.
Context Management in GitHub Copilot CLI/compact: This command triggers the compaction process manually. It takes a snapshot of your full conversation history, sends it to the AI model to generate a summary, and replaces the bulky history with that concise summary. This reduces token usage instantly while preserving prior progress.
Reference:
https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview
Context Management in GitHub Copilot CLI/compact: This command triggers the compaction process manually. It takes a snapshot of your full conversation history, sends it to the AI model to generate a summary, and replaces the bulky history with that concise summary. This reduces token usage instantly while preserving prior progress.
Reference:
https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview
by Robert at Aug 21, 2026, 01:37 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).