[bot] docs: update Learning Hub for Copilot CLI v1.0.10/v1.0.11 features#1150
Conversation
- Add monorepo support section to copilot-configuration-basics: customizations discovered at every directory level up to git root - Add personal skills directory (~/.agents/skills/) documentation - Add /clear vs /new session command distinction + /undo command - Add MCP organization policy enforcement to understanding-mcp-servers - Add sessionStart additionalContext injection to automating-with-hooks - Add extension hooks merging behaviour to automating-with-hooks Source: https://github.com/github/copilot-cli/releases/tag/v1.0.11 Source: https://github.com/github/copilot-cli/releases/tag/v1.0.10 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates Learning Hub documentation to reflect new GitHub Copilot CLI v1.0.10/v1.0.11 capabilities, focusing on configuration discovery, session commands, MCP org policy enforcement, and hooks behavior.
Changes:
- Documented monorepo layered discovery, a personal skills directory, and new session commands (
/new,/clear,/undo) in configuration basics. - Added guidance on organization policy enforcement for third-party MCP servers.
- Documented
sessionStartadditionalContexthook output and extension hook merging behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| website/src/content/docs/learning-hub/copilot-configuration-basics.md | Adds monorepo discovery, personal skills directory, and CLI session command documentation. |
| website/src/content/docs/learning-hub/understanding-mcp-servers.md | Adds best-practices guidance for org policy enforcement around third-party MCP servers. |
| website/src/content/docs/learning-hub/automating-with-hooks.md | Documents sessionStart additionalContext output and hook merging across extensions/sources. |
| cat <<EOF | ||
| { | ||
| "additionalContext": "Current branch: $(git rev-parse --abbrev-ref HEAD). Open tickets: $(gh issue list --limit 3 --json number,title | jq -r '.[] | \"#\(.number) \(.title)\"' | tr '\n' '; ')" | ||
| } | ||
| EOF |
There was a problem hiding this comment.
The example sessionStart hook prints JSON that interpolates git branch names and issue titles directly into a JSON string. Since these values can contain quotes, backslashes, or newlines, the output can become invalid JSON and fail to parse. Consider generating the JSON with a proper JSON encoder (e.g., jq -n --arg ...), or otherwise escaping the interpolated values so the example always produces valid JSON.
| cat <<EOF | |
| { | |
| "additionalContext": "Current branch: $(git rev-parse --abbrev-ref HEAD). Open tickets: $(gh issue list --limit 3 --json number,title | jq -r '.[] | \"#\(.number) \(.title)\"' | tr '\n' '; ')" | |
| } | |
| EOF | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| issues="$(gh issue list --limit 3 --json number,title \ | |
| | jq -r '.[] | "#\(.number) \(.title)"' \ | |
| | tr '\n' '; ')" | |
| jq -n --arg branch "$branch" --arg issues "$issues" \ | |
| '{additionalContext: ("Current branch: " + $branch + ". Open tickets: " + $issues)}' |
| GitHub Copilot CLI has two commands for managing session state, with distinct behaviours: | ||
|
|
||
| | Command | Behaviour | |
There was a problem hiding this comment.
Spelling is inconsistent with the rest of this article (which uses American English "behavior"). Consider changing "behaviours" to "behaviors" for consistency.
| GitHub Copilot CLI has two commands for managing session state, with distinct behaviours: | |
| | Command | Behaviour | | |
| GitHub Copilot CLI has two commands for managing session state, with distinct behaviors: | |
| | Command | Behavior | |
What's new in Copilot CLI v1.0.10 and v1.0.11
Based on the official v1.0.11 and v1.0.10 releases (2026-03-20 and 2026-03-23), this PR updates three Learning Hub pages to document new features.
Changes Made
copilot-configuration-basics.md~/.agents/skills/as a cross-project personal skill store, and noting it aligns with the VS Code GHCP4A extension default./clearvs/newdistinction — Added a "CLI Session Commands" table explaining that/newbackgrounds the current session while/clearabandons it. Both commands accept an optional prompt to seed the new session./undocommand — Documented the new/undocommand that reverts the last turn including file changes.understanding-mcp-servers.mdautomating-with-hooks.mdsessionStartadditionalContext — Added a new section documenting thatsessionStarthook scripts can write JSON to stdout with anadditionalContextfield, which is injected into the conversation at session start. Includes an example script.Source Announcements