Skip to content

docs: fix conflicting Copilot CLI custom agent precedence guidance - #46105

Closed
BaconMan1168 wants to merge 1 commit into
github:mainfrom
BaconMan1168:fix/copilot-cli-agent-precedence-docs
Closed

BaconMan1168 wants to merge 1 commit into
github:mainfrom
BaconMan1168:fix/copilot-cli-agent-precedence-docs

Conversation

@BaconMan1168

Copy link
Copy Markdown
Contributor

Why:

Closes: #46100

What's being changed (if available, include any code snippets, screenshots, or gifs):

The custom agent how-to and the CLI configuration directory reference stated opposite precedence rules for when a personal agent and a repository agent share the same name. I checked GitHub Copilot CLI's actual behavior directly (its skill-discovery mechanism, which follows the same personal-versus-repository resolution as agents) and confirmed that the repository-level definition takes precedence, and that matching is based on the name value in the frontmatter rather than the file name. Both pages now state this consistently.

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

Project-level agents now take precedence over personal agents with the same name, and both pages clarify that identity is based on the frontmatter name value, not the file name.
@github-actions

Copy link
Copy Markdown
Contributor

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli.md fpt
ghec
fpt
ghec
copilot/reference/copilot-cli-reference/cli-config-dir-reference.md fpt
ghec
fpt
ghec

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Sep 28, 2026
@subatoi

subatoi commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

I'm afraid this hasn't been approved for contributors as we've had no chance to investigate and figure out the best way to solve the problem in question, so I'm going to close this out. Sorry this won't be the outcome you were hoping for

@subatoi subatoi closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conflicting precedence guidance for personal and repository Copilot CLI agents

3 participants