Skip to content

Commit b0bbdcf

Browse files
stevewardhubwriter
andauthored
Copilot CLI 10/03 updates (#57855)
Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 47e08a2 commit b0bbdcf

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

content/copilot/concepts/agents/about-copilot-cli.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -266,17 +266,7 @@ You can mitigate the risks associated with using the automatic approval options
266266
267267
The default model used by {% data variables.copilot.copilot_cli %} is {% data variables.copilot.cca_current_model %}. {% data variables.product.github %} reserves the right to change this model.
268268

269-
You can change the model by setting the `COPILOT_MODEL` environment variable to one of the supported values. For example, change the model to {% data variables.copilot.copilot_gpt_5 %} by setting `COPILOT_MODEL` to `gpt-5`.
270-
271-
{% rowheaders %}
272-
273-
| Model name | `COPILOT_MODEL` value |
274-
|------------------------------------------------------------------|-----------------------|
275-
| {% data variables.copilot.cca_current_model %} | `claude-sonnet-4` |
276-
| {% data variables.copilot.copilot_claude_sonnet_45 %} | `claude-sonnet-4.5` |
277-
| {% data variables.copilot.copilot_gpt_5 %} | `gpt-5` |
278-
279-
{% endrowheaders %}
269+
You can change the model used by {% data variables.copilot.copilot_cli %} by using the `/model` slash command. Enter this command and select a model from the list.
280270

281271
Each time you submit a prompt to {% data variables.product.prodname_copilot_short %} in {% data variables.copilot.copilot_cli_short %}'s interactive mode, and each time you use {% data variables.copilot.copilot_cli_short %} in programmatic mode, your monthly quota of {% data variables.product.prodname_copilot_short %} premium requests is reduced by one. For information about premium requests, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests).
282272

content/copilot/how-tos/use-copilot-agents/use-copilot-cli.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ If all of the files you want to work with are in a different location, you can s
102102
/cwd /path/to/directory
103103
```
104104

105+
### Run shell commands
106+
107+
You can prepend your input with `!` to directly run shell commands, without making a call to the model.
108+
109+
```shell
110+
!git clone https://github.com/github/copilot-cli
111+
```
112+
105113
### Resume an interactive session
106114

107115
You can return to a previous interactive session, and continue your conversation with {% data variables.product.prodname_copilot_short %}, by using the `--resume` command line option, then choosing the session you want to resume from the list that's displayed.
@@ -135,6 +143,10 @@ To extend the functionality available to you in {% data variables.copilot.copilo
135143

136144
Details of your configured MCP servers are stored in the `mcp-config.json` file, which is located, by default, in the `~/.config` directory. This location can be changed by setting the `XDG_CONFIG_HOME` environment variable. For information about the JSON structure of a server definition, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/extend-coding-agent-with-mcp#writing-a-json-configuration-for-mcp-servers).
137145

146+
### View context and usage statistics for the current session
147+
148+
You can use the `/usage` slash command to view how many premium requests you've used in the current session, the duration of the session, how many lines of code have been edited, and the breakdown of token usage per model. When you have less than 20% of a model's token limit remaining, {% data variables.copilot.copilot_cli_short %} will display a warning that the context will be truncated when the token limit is reached.
149+
138150
## Find out more
139151

140152
For a complete list of the command line options and slash commands that you can use with {% data variables.copilot.copilot_cli_short %}, do one of the following:

0 commit comments

Comments
 (0)