cd /news/developer-tools/breaking-github-kind-can-now-return-… · home › topics › developer-tools › article
[ARTICLE · art-182337] src=driftwatch.et ↗ pub= topic=developer-tools verified=true sentiment=· neutral

GitHub: kind can now return "CUSTOM_AGENT"

GitHub's API specification now lists "CUSTOM_AGENT" as a possible value for copilot_code_review_sources[].kind on review-comment objects, adding it to the existing "CUSTOM_INSTRUCTIONS", "MCP" and "SKILL" values. The change affects code that reads GitHub review-comment objects across 7 GitHub operations, and breaks exhaustive switches, strict parsers and generated client enums that lack a branch for the new value.

key takeaway

Add a "CUSTOM_AGENT" branch to any exhaustive switch or strict parser over copilot_code_review_sources[].kind, which now returns "CUSTOM_AGENT" alongside "CUSTOM_INSTRUCTIONS", "MCP" and "SKILL".

read1 min views2 publishedDec 4, 2026

What changed #

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects copilot_code_review_sources[].kind on review-comment reachable from 1 operation.

New value: CUSTOM_AGENT.

can now return "CUSTOM_AGENT"

Who is affected #

Code that reads GitHub's review-comment objects, used by 7 GitHub operations.

Before and after #

Where Before After
review-comment.copilot_code_review_sources[].kind "CUSTOM_INSTRUCTIONS", "MCP", "SKILL" "CUSTOM_AGENT", "CUSTOM_INSTRUCTIONS", "MCP", "SKILL"
pull-request-review-comment.copilot_code_review_sources[].kind "CUSTOM_INSTRUCTIONS", "MCP", "SKILL" "CUSTOM_AGENT", "CUSTOM_INSTRUCTIONS", "MCP", "SKILL"

Code that breaks #

switch (response.copilot_code_review_sources[0].kind) {
  // existing branches …
  // no branch for "CUSTOM_AGENT"
  default:
    throw new Error("unexpected kind");
}

Based on GitHub’s published API specification. How severity is decided.

── more in #developer-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/breaking-github-kind…] indexed:0 read:1min 2026-12-04 · —