{"slug": "breaking-github-kind-can-now-return-custom-agent", "title": "GitHub: kind can now return \"CUSTOM_AGENT\"", "summary": "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.", "body_md": "## What changed\n\nProducer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.\n\nAffects `copilot_code_review_sources[].kind` on `review-comment` reachable from 1 operation.\n\nNew value: `CUSTOM_AGENT`.\n\ncan now return \"CUSTOM_AGENT\"\n\n## Who is affected\n\nCode that reads GitHub's review-comment objects, used by 7 GitHub operations.\n\n## Before and after\n\n| Where | Before | After | \n|---|---|---|\n| review-comment.copilot_code_review_sources[].kind | \"CUSTOM_INSTRUCTIONS\", \"MCP\", \"SKILL\" | \"CUSTOM_AGENT\", \"CUSTOM_INSTRUCTIONS\", \"MCP\", \"SKILL\" | \n| pull-request-review-comment.copilot_code_review_sources[].kind | \"CUSTOM_INSTRUCTIONS\", \"MCP\", \"SKILL\" | \"CUSTOM_AGENT\", \"CUSTOM_INSTRUCTIONS\", \"MCP\", \"SKILL\" | \n\n## Code that breaks\n\n```\nswitch (response.copilot_code_review_sources[0].kind) {\n  // existing branches …\n  // no branch for \"CUSTOM_AGENT\"\n  default:\n    throw new Error(\"unexpected kind\");\n}\n```\n\nBased on GitHub’s published API specification. [How severity is decided](https://driftwatch.et/method).", "url": "https://wpnews.pro/news/breaking-github-kind-can-now-return-custom-agent", "canonical_source": "https://driftwatch.et/changes/github-2026-12-04-1031387b", "published_at": "2026-12-04 23:40:42+00:00", "updated_at": "2026-12-05 08:14:10.395575+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["GitHub", "Copilot", "CUSTOM_AGENT", "CUSTOM_INSTRUCTIONS", "MCP", "SKILL"], "also_reported_by": [], "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\".", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/breaking-github-kind-can-now-return-custom-agent", "markdown": "https://wpnews.pro/news/breaking-github-kind-can-now-return-custom-agent.md", "text": "https://wpnews.pro/news/breaking-github-kind-can-now-return-custom-agent.txt", "jsonld": "https://wpnews.pro/news/breaking-github-kind-can-now-return-custom-agent.jsonld"}}