Repository navigation
Description
Affected version or release
Copilot app (github.exe) 1.1.15 · bundled CLI binary in ...\github-copilot-sdk\cli\1.0.83-5\, --version reports 1.0.84-1 · Windows 11 Enterprise 10.0.26200
Installation context
Local desktop install, single user. Custom agents contributed by a locally-installed CLI plugin (copilot plugin install <local path>). No org/enterprise agent configuration involved.
What happened?
The documentation states that name: in a custom agent's frontmatter is optional, and that when it is omitted the filename is used as the agent's identifier and default display name.
That fallback is applied for project-sourced agents (.github/agents/*.agent.md) but not for plugin-sourced agents. Plugin agents come back from the app's list_global_agents handler with name and displayName as empty strings.
Because the picker renders displayName, every plugin-contributed agent renders as a blank row. With no other custom agents present, the Settings → default agent picker appears to contain nothing but "Default agent", and the new-session agent selector looks empty — even though the agents are fully functional and resolve correctly when named explicitly via --agent.
Why this is a bug rather than a missing field. Two documentation pages specify the fallback:
Custom agents configuration (reference):
| Property | Type | Purpose |
|---|---|---|
name |
string | Display name for the custom agent. Optional. |
description |
Required string | Description of the custom agent's purpose and capabilities |
About custom agents (concepts), under "Agent profile format":
Name (optional): A display name for the custom agent. If omitted, the agent's filename is used as its identifier and default display name.
So an agent file carrying only description: is a documented-valid configuration that is supposed to receive a filename-derived display name. The CLI honors this — copilot --agent <invalid> lists filename-derived identifiers for every plugin agent. The app does not.
The example agent in the plugin authoring guide (step 3.1) always includes name:, which likely explains why this has gone unnoticed — most plugin agents in the wild set name: explicitly and therefore mask the broken fallback path.
Steps to reproduce
A controlled A/B isolating a single variable: both agents are identical except for the presence of name:.
Part 1 — project-sourced agents (control, works as documented)
- In any project directory, create
.github/agents/alpha.agent.md:--- name: Alpha Agent description: Test agent that declares a name in frontmatter. --- Alpha body.
- Create
.github/agents/beta.agent.md— identical but with noname::--- description: Test agent with no name field. --- Beta body.
- Query the app's
list_global_agentshandler withproject_pathset to that directory.
Result:
{ "id": "alpha", "name": "Alpha Agent", "displayName": "Alpha Agent", "source": "project" }
{ "id": "beta", "name": "beta", "displayName": "beta", "source": "project" }✅ beta receives the filename fallback, exactly as documented.
Part 2 — plugin-sourced agents (bug)
- Create a minimal plugin,
my-plugin/plugin.json:{ "name": "My Plugin", "description": "Minimal repro plugin", "version": "1.0.0", "agents": "agents/" } - Add
my-plugin/agents/my-agent.agent.mdwith noname::--- description: Plugin agent with no name field. --- Body.
copilot plugin install ./my-plugin- Restart the app so it re-reads the plugin set.
- Query
list_global_agentsagain, and open Settings → default agent.
Result:
{ "id": "my-agent", "name": "", "displayName": "", "source": "unknown",
"description": "Plugin agent with no name field.",
"path": "C:\\Users\\<user>\\.copilot\\installed-plugins\\_direct\\my-plugin\\agents\\my-agent.agent.md" }❌ name and displayName are empty strings, and the agent renders as a blank row in the picker. description and path are populated correctly, so the file was found and parsed — only the name derivation failed.
Expected behavior
name and displayName should fall back to the filename stem (my-agent), matching both the documented behavior and the observed behavior for project-sourced agents. The agent should render with a readable label in the picker.
Actual: both are "", and the agent renders as a blank row in every surface that displays displayName.
Additional context
Confirmation that this is the rendering cause. Adding name: my-agent to the frontmatter and restarting the app makes the agent appear correctly in both the Settings → default agent picker and the new-session agent selector. I verified this against 5 plugin agents at once: with name: absent all 5 rendered blank; with name: added all 5 rendered correctly. No other variable changed.
Suspected cause. Plugin agents are reported with "source": "unknown", while project agents get "source": "project". The filename-fallback branch appears to be conditioned on the source being a recognized value, so agents arriving as unknown skip it.
That unknown looks like a defect in its own right. The JSDoc for agents.discover in the bundled SDK (<app install dir>\copilot-sdk\index.js) describes the recognized sources as "Discovers custom agents across user, project, plugin, and remote sources" — so plugin is an expected source value that the app does not appear to map. Fixing the source mapping may fix the naming as a side effect.
Impact. Affects any plugin author who omits the optional name: field — a documented-valid configuration. The symptom (an apparently empty agent picker) gives no indication that frontmatter is involved, and the agents work fine via --agent, which makes it look like a UI or installation problem rather than a naming one.
Possibly related
- github/app#1168 — "[Bugs]: Custom agents not showing" (open, undiagnosed; may share this root cause)
- github/app#2049 — plugin-provided agent honored on one code path but not another
- github/copilot-cli#2475 — same
Custom agent "x" not foundstring, but triggered by a filename/namemismatch rather than absence
Paths, plugin names and agent names in this report are genericized; the reproduction does not depend on the originals.
Activity
devinj-msft commentedon Sep 5, 2026
Related: #3551 covers a second, independent defect found on the same investigation — live (directory-marketplace) plugins being invisible to the app's global agent lookup and to session resume. The two share a symptom (an apparently empty agent picker) but have different triggers and different fixes: this issue affects any plugin agent that omits the optional
ame:\ field, while #3551 affects only plugins registered through a directory-source marketplace.
devinj-msft commentedon Sep 5, 2026
Related: #3557 reports the equivalent problem for plugin-contributed skills — they are absent from the
/autocomplete in attached sessions becausesession.skills.listreturns zero plugin-sourced entries while the global list returns 35.Both issues are cases of the app layer mishandling plugin-contributed content that the CLI/engine resolves correctly, so they may be worth triaging together. This issue concerns naming of plugin agents in the global list; #3557 concerns plugin skills being dropped from the session-scoped list.
gimenete commentedon Sep 7, 2026
Thanks for the detailed report and reproduction steps. A fix has been merged so plugin-provided custom agents that omit the optional name field will display a filename-derived name in the agent picker and remain selectable when starting or continuing a session. The fix will be available in an upcoming app release. If you still encounter this after updating to a release containing the fix, please open a new report with the affected app version.
github-app-releaser commentedon Sep 8, 2026
This issue was fixed in the public GitHub Copilot app release v1.1.16.