You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Org-level custom agents ignore model; a model list drops the agent #5585
Org-level custom agents (agents/*.md in <org>/.github-private) ignore the model frontmatter field. The same file honours model when placed in .github/agents/ of the repo.
The API returns the model correctly, so it is dropped client-side:
GET https://api.githubcopilot.com/agents/swe/custom-agents/<org>/<repo>?exclude_invalid_config=true&include_sources=org,enterprise
→ { "name": "test-writer", ..., "model": "claude-haiku-5.5" }
Related: a model list (supported locally since v1.0.83, #2133) makes the server exclude the org agent as invalid, so it silently disappears (No such agent).
Reproduce
Add to <org>/.github-private/agents/test-writer.md:
---
name: test-writerdescription: Writes unit tests.model: claude-haiku-5.5model-policy: required
---
In a clone of any repo in <org>, without a local copy of the agent: copilot -p "Reply: ready" --agent test-writer --output-format json
Agent source
model used
.github/agents/ in the repo
claude-haiku-5.5 ✅
org .github-private
claude-sonnet-5.5 (session default) ❌
org, with model: [claude-haiku-5.5, gpt-6-luna]
agent not loaded ❌
model-policy: required makes no difference for org agents.
Expected
Org agents honour model and model-policy like repo-level agents, and accept a model list.
Environment
Copilot CLI 1.0.116, Linux (Docker, node:24-slim), github.com
Activity