Skip to content

Org-level custom agents ignore model; a model list drops the agent #5585

Backlog

Description

@walter-group-pofuk

Describe the bug

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

  1. Add to <org>/.github-private/agents/test-writer.md:
    ---
    name: test-writer
    description: Writes unit tests.
    model: claude-haiku-5.5
    model-policy: required
    ---
  2. 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

  1. added
    area:agents
    area:models
    and removed on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentsarea:models

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions