Skip to content

Commit 49eadc3

Browse files
docs-botgithub-actions[bot]hubwriter
authored
docs: update copilot-cli content from source docs (#62433)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 699f7cb commit 49eadc3

3 files changed

Lines changed: 22 additions & 8 deletions

File tree

content/copilot/reference/copilot-cli-reference/cli-command-reference.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ Use `--model=MODEL` or the `COPILOT_MODEL` environment variable to select the AI
471471
| `gpt-5.3-codex` | Code-focused tasks |
472472
| `gemini-3.1-pro-preview` | Google Gemini reasoning |
473473
| `gemini-3.5-flash` | Fast Google Gemini responses |
474+
| `gemini-3.6-flash` | Fast Google Gemini responses |
474475
| `mai-code-1-flash` | Fast, adaptive coding tasks |
475476

476477
You can also switch models during an interactive session using the `/model` slash command.
@@ -675,7 +676,7 @@ Use `copilot mcp` to manage MCP server configurations from the command line with
675676
| Type | Description | Required fields |
676677
|------|-------------|----------------|
677678
| `local` / `stdio` | Local process communicating via stdin/stdout. | `command`, `args` |
678-
| `http` | Remote server using streamable HTTP transport. | `url` |
679+
| `http` | Remote server using streamable HTTP transport. `"streamable-http"` is also accepted as an alias and is normalized to `"http"`. | `url` |
679680
| `sse` | Remote server using Server-Sent Events transport. | `url` |
680681

681682
### Local server configuration fields
@@ -716,7 +717,7 @@ The `--registry` flag and other npm configuration flags (`--userconfig`, `--glob
716717

717718
| Field | Required | Description |
718719
|-------|----------|-------------|
719-
| `type` | Yes | `"http"` or `"sse"`. |
720+
| `type` | Yes | `"http"` or `"sse"` (`"streamable-http"` is also accepted as an alias for `"http"`). |
720721
| `url` | Yes | Server URL. |
721722
| `tools` | Yes | Tools to enable. |
722723
| `headers` | No | HTTP headers. Supports variable expansion. |
@@ -1130,7 +1131,14 @@ Use `/permissions reset` to clear in-memory approvals for the current session.
11301131

11311132
### Plan mode
11321133

1133-
`/plan` starts a read-only analysis session that prevents write operations and shell command execution while allowing full codebase exploration. Mutating tool calls—editor writes, `apply_patch` to non-plan files, mutating shell commands, and pull request creation—are hard-blocked at the tool layer, not just discouraged by the system prompt. Subagents spawned from a plan-mode session inherit the same restriction. Reads and writes to the plan file itself are still allowed.
1134+
`/plan` starts a planning session where {% data variables.copilot.copilot_cli_short %} can explore and analyze your codebase but is blocked from editing your project files. Specifically:
1135+
1136+
- **Your project files are protected.** Any attempt to edit, patch, or run a shell command that would change a file in your workspace is blocked automatically—this isn't just a suggestion to the model, it's enforced directly, so it doesn't depend on the model choosing to behave.
1137+
- **The plan itself can still be written.** {% data variables.product.prodname_copilot_short %} needs somewhere to keep notes and draft the plan, so it's allowed to create and edit files in its own private planning workspace (including the plan file you'll review and approve).
1138+
- **Delegated sub-tasks are protected too.** If {% data variables.product.prodname_copilot_short %} spins up a helper session to research part of your question, that helper inherits the same restrictions and can't edit your project either.
1139+
- **It's a safety net, not a guarantee.** This protection is designed to catch clear, direct attempts to change your files—it's not an airtight lockdown. Some things are intentionally allowed through so research isn't overly restricted: for example, shell commands whose effect can't be clearly determined in advance, and calls to external/MCP tools you've connected. In practice this is rarely an issue, but plan mode should be thought of as "changes require your review before applying," not an absolute guarantee that nothing on disk can change.
1140+
1141+
Once you're happy with the plan, approve it to exit plan mode and let {% data variables.product.prodname_copilot_short %} make the actual changes.
11341142

11351143
### Command safety analysis
11361144

content/copilot/reference/copilot-cli-reference/cli-plugin-reference.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,13 @@ All plugins consist of a plugin directory containing, at minimum, a manifest fil
8989

9090
| Field | Type | Description |
9191
|---------|--------|-------------|
92-
| `name` | string | Kebab-case plugin name (letters, numbers, hyphens only). Max 64 chars. |
92+
| `name` | string | Kebab-case plugin name (letters, numbers, hyphens only). Max 64 chars. Plugins that opt into [Open Plugin Spec support](#open-plugin-spec-support) may also use dots (for example, `acme.tools`). |
9393

9494
### Optional metadata fields
9595

9696
| Field | Type | Description |
9797
|--------------|-----------|-------------|
98+
| `$schema` | string | Set to the canonical Agent Plugins (Open Plugin Spec) v1.0.0 schema URL to opt into spec semantics. See [Open Plugin Spec support](#open-plugin-spec-support). |
9899
| `description`| string | Brief description. Max 1024 chars. |
99100
| `version` | string | Semantic version (e.g., `1.0.0`). |
100101
| `author` | object | `name` (required), `email` (optional), `url` (optional). |
@@ -115,14 +116,19 @@ These tell the CLI where to find your plugin's components. All are optional. The
115116
| `skills` | string \| string[] | `skills/` | Path(s) to skill directories (`SKILL.md` files). |
116117
| `commands` | string \| string[] || Path(s) to command directories. |
117118
| `hooks` | string \| object || Path to a hooks configuration file, or an inline hooks object. |
118-
| `extensions`| string \| string[] \| object || Path(s) to extension directories. Use `{ paths: [...], exclusive: true }` to suppress built-in extensions. |
119+
| `extensions`| string \| string[] \| object || Path(s) to extension directories. Use `{ paths: [...], exclusive: true }` to suppress built-in extensions. In [Open Plugin Spec mode](#open-plugin-spec-support), this field has a different meaning. |
119120
| `mcpServers`| string \| object || Path to an MCP configuration file (e.g., `.mcp.json`), or inline server definitions. |
120121
| `lspServers`| string \| object || Path to an LSP configuration file, or inline server definitions. |
121122

122123
### Example `plugin.json` file
123124

124125
{% data reusables.copilot.copilot-cli.cli-example-plugin-file %}
125126

127+
## Open Plugin Spec support
128+
129+
Declaring the canonical `$schema` in `plugin.json` opts a plugin into the [Agent Plugins (Open Plugin Spec)](https://agent-plugins.org) v1.0.0 format, additively on top of standard plugin loading:
130+
131+
126132
### LSP server configuration
127133

128134
To include LSP (Language Server Protocol) servers in a plugin, create a `lsp-config/servers.json` file in the plugin directory, or specify a path or inline object using the `lspServers` field in `plugin.json`.
@@ -196,7 +202,7 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-cop
196202

197203
| Field | Type | Required | Description |
198204
|------------|----------|----------|-------------|
199-
| `name` | string | Yes | Kebab-case marketplace name. Max 64 chars. |
205+
| `name` | string | Yes | Kebab-case marketplace name. Max 64 chars. Dots are also accepted (for example, `acme.tools`) for [Open Plugin Spec](#open-plugin-spec-support) plugins. |
200206
| `owner` | object | Yes | `{ name, email? }` — marketplace owner info. |
201207
| `plugins` | array | Yes | List of plugin entries (see the table below). |
202208
| `metadata` | object | No | `{ description?, version?, pluginRoot? }` |
@@ -205,7 +211,7 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-cop
205211

206212
| Field | Type | Required | Description |
207213
|---------------|--------------------|----------|-------------|
208-
| `name` | string | Yes | Kebab-case plugin name. Max 64 chars. |
214+
| `name` | string | Yes | Kebab-case plugin name. Max 64 chars. Dots are also accepted for [Open Plugin Spec](#open-plugin-spec-support) plugins. |
209215
| `source` | string \| object | Yes | Where to fetch the plugin (relative path, {% data variables.product.github %}, or URL). |
210216
| `description` | string | No | Plugin description. Max 1024 chars. |
211217
| `version` | string | No | Plugin version. |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
99bdacdd87aebaa6496754421e70b45485235cc8
1+
00598e76021b5e4f4ba2903053c69c6010fa7190

0 commit comments

Comments
 (0)