# GitHub: kind can now return "CUSTOM_AGENT"

> Source: <https://driftwatch.et/changes/github-2026-12-04-1031387b>
> Published: 2026-12-04 23:40:42+00:00

**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".

## 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](https://driftwatch.et/method).
