Skip to content

Commit 6cea860

Browse files
hubwriterCopilot
andauthored
Copilot CLI: Update /context output (#61790)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4caa729 commit 6cea860

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

19.4 KB
Loading

content/copilot/concepts/agents/copilot-cli/context-management.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ This means that in a very long session, {% data variables.product.prodname_copil
3434

3535
## Checking your context usage
3636

37-
You can check how much of the context window is currently in use by entering the `/context` slash command. This displays a visual breakdown of your token usage, showing:
38-
39-
* **System/Tools**: The fixed overhead of system instructions and tool definitions.
40-
* **Messages**: The space used by your conversation history.
41-
* **Free Space**: How much room is left for new messages.
42-
* **Buffer**: A reserved portion that triggers automatic context management.
37+
You can use the `/context` slash command to visualize your current context window usage. The first line of the output shows the active model and the number of tokens currently in use out of the model's total context window capacity. The remainder of the output shows token usage, and context window percentage, for:
38+
39+
* **System Prompt**: the base system prompt.
40+
* **Custom Instructions**: your loaded custom instructions (shown only when present).
41+
* **System Tools**: built-in tool definitions.
42+
* **MCP Tools**: tool definitions contributed by MCP servers.
43+
* **Messages**: your conversation history.
44+
* **Free Space**: unused context still available.
45+
* **Buffer**: capacity reserved for the model's response and headroom.
4346

4447
![Screenshot of the output of the '/context' CLI command.](/assets/images/help/copilot/copilot-cli-context-usage.png)
4548

0 commit comments

Comments
 (0)