-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[bot] docs: update Learning Hub for Copilot CLI v1.0.10/v1.0.11 features #1150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aaronpowell
merged 1 commit into
staged
from
learning-hub/cli-v1-0-11-updates-f4a9542ad2cf6414
Mar 24, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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-03-23 | ||||||||||||||
| lastUpdated: 2026-03-24 | ||||||||||||||
| estimatedReadingTime: '10 minutes' | ||||||||||||||
| tags: | ||||||||||||||
| - configuration | ||||||||||||||
|
|
@@ -170,6 +170,43 @@ A well-organized Copilot configuration directory looks like this: | |||||||||||||
| └── api-design.instructions.md | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| ### Monorepo Support | ||||||||||||||
|
|
||||||||||||||
| In monorepos with multiple packages or services, GitHub Copilot CLI discovers customizations at **every directory level** from your working directory up to the git repository root. This means each package or service can have its own `.github/` folder with specialized agents, instructions, skills, and MCP servers, while still inheriting configuration from parent directories. | ||||||||||||||
|
|
||||||||||||||
| ``` | ||||||||||||||
| my-monorepo/ | ||||||||||||||
| ├── .github/ | ||||||||||||||
| │ └── instructions/ | ||||||||||||||
| │ └── shared-conventions.instructions.md ← applies everywhere | ||||||||||||||
| ├── packages/ | ||||||||||||||
| │ ├── api/ | ||||||||||||||
| │ │ └── .github/ | ||||||||||||||
| │ │ └── agents/ | ||||||||||||||
| │ │ └── api-expert.agent.md ← applies in packages/api/ | ||||||||||||||
| │ └── web/ | ||||||||||||||
| │ └── .github/ | ||||||||||||||
| │ └── instructions/ | ||||||||||||||
| │ └── react-conventions.instructions.md ← applies in packages/web/ | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| When you work inside `packages/api/`, Copilot loads configuration from `packages/api/.github/`, then `packages/.github/` (if it exists), then the root `.github/`. This layered discovery ensures the right context is active no matter where in the repository you're working. | ||||||||||||||
|
|
||||||||||||||
| ### Personal Skills Directory | ||||||||||||||
|
|
||||||||||||||
| In addition to repository-level skills, GitHub Copilot CLI supports a **personal skills directory** at `~/.agents/skills/`. Skills you place here are discovered automatically across all your projects, making them ideal for personal workflows and reusable utilities that are not project-specific. | ||||||||||||||
|
|
||||||||||||||
| ``` | ||||||||||||||
| ~/.agents/ | ||||||||||||||
| └── skills/ | ||||||||||||||
| ├── my-review-style/ | ||||||||||||||
| │ └── SKILL.md ← available in all sessions | ||||||||||||||
| └── cleanup-todos/ | ||||||||||||||
| └── SKILL.md | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| This personal directory aligns with the VS Code GitHub Copilot for Azure extension's default skill discovery path, so skills defined here work consistently across tools. | ||||||||||||||
|
|
||||||||||||||
| ### Custom Agents | ||||||||||||||
|
|
||||||||||||||
| Agents are specialized assistants for specific workflows. Place agent definition files in `.github/agents/`. | ||||||||||||||
|
|
@@ -357,6 +394,25 @@ CLI settings use **camelCase** naming. Key settings added in recent releases: | |||||||||||||
|
|
||||||||||||||
| > **Note**: Older snake_case names (e.g., `include_gitignored`, `auto_updates_channel`) are still accepted for backward compatibility, but camelCase is now the preferred format. | ||||||||||||||
|
|
||||||||||||||
| ### CLI Session Commands | ||||||||||||||
|
|
||||||||||||||
| GitHub Copilot CLI has two commands for managing session state, with distinct behaviours: | ||||||||||||||
|
|
||||||||||||||
| | Command | Behaviour | | ||||||||||||||
|
Comment on lines
+399
to
+401
|
||||||||||||||
| 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example
sessionStarthook prints JSON that interpolatesgitbranch 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.