docs: update Learning Hub with CLI v1.0.40–v1.0.41 features (#1626)

Add documentation for features shipped in Copilot CLI v1.0.40 and
the v1.0.41 prerelease builds that weren't yet covered in the Hub:

- copilot-configuration-basics.md: document --attachment flag for
  attaching images/documents in prompt mode (-p)
- automating-with-hooks.md: extend the prompt mode security callout
  to cover the new GITHUB_COPILOT_PROMPT_MODE_EXTENSIONS env var
  (user extensions load by default; project extensions need opt-in)
- building-custom-agents.md: note that ACP clients receive the
  agent's live plan in real time for multi-step tasks (v1.0.40+)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-05-06 10:05:48 +10:00
committed by GitHub
parent ce516684b5
commit 8788c5d142
3 changed files with 15 additions and 5 deletions
@@ -3,7 +3,7 @@ title: 'Copilot Configuration Basics'
description: 'Learn how to configure GitHub Copilot at user, workspace, and repository levels to optimize your AI-assisted development experience.'
authors:
- GitHub Copilot Learning Hub Team
lastUpdated: 2026-05-01
lastUpdated: 2026-05-05
estimatedReadingTime: '10 minutes'
tags:
- configuration
@@ -581,6 +581,16 @@ copilot --autopilot --max-autopilot-continues 10 "Refactor the authentication mo
Set it higher for long-running tasks, or lower for tasks where you want more frequent checkpoints. Setting it to `0` disables automatic continuation entirely.
The `--attachment` flag (available in prompt mode, `-p`) lets you attach files — images or native documents — to the initial prompt in non-interactive mode:
```bash
copilot -p "Summarize the architecture shown in these diagrams" \
--attachment arch-overview.png \
--attachment data-flow.pdf
```
This is useful in automated pipelines where you want to pass visual or document context (screenshots, design specs, PDF reports) to the model without interactive file selection. Multiple `--attachment` flags can be specified to include several files at once.
The `COPILOT_HOME` environment variable sets the Copilot CLI configuration directory. It is the preferred replacement for the `--config-dir` flag, which is deprecated:
```bash