Skip to content

Commit 8b00bb4

Browse files
docs-botgithub-actions[bot]sarahs
authored
docs: update copilot-cli content from source docs (#60498)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
1 parent d693808 commit 8b00bb4

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ redirect_from:
7474
| `/add-dir PATH` | Add a directory to the allowed list for file access. |
7575
| `/agent` | Browse and select from available agents (if any). |
7676
| `/allow-all`, `/yolo` | Enable all permissions (tools, paths, and URLs). |
77-
| `/clear`, `/new` | Clear the conversation history. |
77+
| `/clear [PROMPT]`, `/new [PROMPT]` | Start a new conversation. |
7878
| `/compact` | Summarize the conversation history to reduce context window usage. |
7979
| `/context` | Show the context window token usage and visualization. |
8080
| `/cwd`, `/cd [PATH]` | Change the working directory or display the current directory. |
@@ -125,7 +125,6 @@ For a complete list of available slash commands enter `/help` in the CLI's inter
125125
| `--allow-all-urls` | Allow access to all URLs without confirmation. |
126126
| `--allow-tool=TOOL ...` | Tools the CLI has permission to use. Will not prompt for permission. For multiple tools, use a quoted, comma-separated list. |
127127
| `--allow-url=URL ...` | Allow access to specific URLs or domains. For multiple URLs, use a quoted, comma-separated list. |
128-
| `--alt-screen=VALUE` | Use the terminal alternate screen buffer (`on` or `off`). |
129128
| `--autopilot` | Enable autopilot continuation in prompt mode. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/autopilot). |
130129
| `--available-tools=TOOL ...` | Only these tools will be available to the model. For multiple tools, use a quoted, comma-separated list. |
131130
| `--banner` | Show the startup banner. |
@@ -147,7 +146,6 @@ For a complete list of available slash commands enter `/help` in the CLI's inter
147146
| `--log-level=LEVEL` | Set the log level (choices: `none`, `error`, `warning`, `info`, `debug`, `all`, `default`). |
148147
| `--max-autopilot-continues=COUNT` | Maximum number of continuation messages in autopilot mode (default: unlimited). See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/autopilot). |
149148
| `--model=MODEL` | Set the AI model you want to use. |
150-
| `--no-alt-screen` | Disable the terminal alternate screen buffer. |
151149
| `--no-ask-user` | Disable the `ask_user` tool (the agent works autonomously without asking questions). |
152150
| `--no-auto-update` | Disable downloading CLI updates automatically. |
153151
| `--no-bash-env` | Disable `BASH_ENV` support for bash shells. |
@@ -282,7 +280,6 @@ Settings cascade from user to repository to local, with more specific scopes ove
282280
| Key | Type | Default | Description |
283281
|-----|------|---------|-------------|
284282
| `allowed_urls` | `string[]` | `[]` | URLs or domains allowed without prompting. |
285-
| `alt_screen` | `boolean` | `true` | Use the terminal alternate screen buffer. |
286283
| `auto_update` | `boolean` | `true` | Automatically download CLI updates. |
287284
| `banner` | `"always"` \| `"once"` \| `"never"` | `"once"` | Animated banner display frequency. |
288285
| `bash_env` | `boolean` | `false` | Enable `BASH_ENV` support for bash shells. |
@@ -400,6 +397,8 @@ Prompt hooks auto-submit text as if the user typed it. They are only supported o
400397
| `postToolUse` | After each tool completes. | No |
401398
| `agentStop` | The main agent finishes a turn. | Yes — can block and force continuation. |
402399
| `subagentStop` | A subagent completes. | Yes — can block and force continuation. |
400+
| `subagentStart` | A subagent is spawned (before it runs). Returns `additionalContext` prepended to the subagent's prompt. Supports `matcher` to filter by agent name. | No — cannot block creation. |
401+
| `preCompact` | Context compaction is about to begin (manual or automatic). Supports `matcher` to filter by trigger (`"manual"` or `"auto"`). | No — notification only. |
403402
| `errorOccurred` | An error occurs during execution. | No |
404403

405404
### `preToolUse` decision control
@@ -536,7 +535,6 @@ Skills are loaded from these locations in priority order (first found wins for d
536535
| `~/.copilot/skills/` | Personal | Personal skills for all projects. |
537536
| `~/.agents/skills/` | Personal | Agent skills shared across all projects. |
538537
| `~/.claude/skills/` | Personal | Claude-compatible personal location. |
539-
| `~/.agents/skills/` | Personal | Alternative personal location. |
540538
| Plugin directories | Plugin | Skills from installed plugins. |
541539
| `COPILOT_SKILLS_DIRS` | Custom | Additional directories (comma-separated). |
542540

content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Common settings include:
5151
| `model` | string | AI model to use (e.g., `"gpt-5.2"`, `"claude-sonnet-4.6"`) |
5252
| `effortLevel` | string | Reasoning effort level for models that support it |
5353
| `theme` | string | Color theme: `"auto"`, `"dark"`, or `"light"` |
54-
| `alt_screen` | boolean | Use the alternate screen buffer (default: `true`) |
5554
| `mouse` | boolean | Enable mouse support in alt screen mode (default: `true`) |
5655
| `banner` | string | Animated banner frequency: `"always"`, `"once"`, or `"never"` (default: `"once"`) |
5756
| `render_markdown` | boolean | Render markdown in responses (default: `true`) |
@@ -70,7 +69,7 @@ Common settings include:
7069
For a full list of configuration settings, enter `copilot help config` in your terminal.
7170

7271
> [!TIP]
73-
> Some settings can also be set using command-line flags. For example, `--alt-screen` and `--no-alt-screen` set the `alt_screen` value and persist it to `config.json`. The `/model` slash command writes your model selection to this file so it persists across sessions.
72+
> Some settings can also be set using command-line flags. For example, the `/model` slash command writes your model selection to this file so it persists across sessions.
7473
7574
### `mcp-config.json`
7675

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
990f654fe346f8ee9e49f3aea699a71c01a7814c
1+
220f40fa27593ccceb482a0c5546fc151e3976e8

0 commit comments

Comments
 (0)