Fields
An unavailable
model, or an option the input mode does not support, skips the check with a configuration message in its details. An unsupported reasoning level warns and falls back to low.
Input modes
incremental(default): Recommended for most diff-based checks. Reviews files changed since this agent’s last completed review, each shown as its full PR diff. Saves tokens on later pushes by leaving unchanged files out.full_diff: Sends the entire PR diff on every run. Useful when the agent needs PR-wide context each time; usually uses more input tokens than incremental on later pushes.code_object: Runs a separate agent per changed code object, with up to 20 running concurrently. Use for specialized checks that need focused, parallel review of individual objects. Can be much more expensive because each object runs its own agent.pr_metadata: Sends the title, author, labels, description, and commit messages, without the diff. Use when the task does not need the diff, such as ticket links or title conventions. Often much more token-efficient for these tasks.
input value warns and falls back to full_diff.
An incremental agent’s first run covers all in-scope files. Later runs use its last completed review as the baseline. Skips, errors, cancellations, and incomplete reviews do not advance it. No new in-scope changes means a free, skipped check.
Force-pushes, rebases, a moved merge base, configuration or ignore-rule changes, explicit mentions, and GitHub reruns cause a full review when the prior baseline cannot be reused safely.
pr_metadata uses the same triggers, file-scope rules, and tools as full_diff. Its tools can still inspect code when instructed.
Persistent threads
By default, every run starts a new conversation. Withthread: persistent, an agent keeps its conversation across pushes to the same PR: after a completed review, the next commit resumes that conversation and adds the new head’s context and diff, so the agent can revisit its earlier findings.
- The
inputmode still decides the diff:incrementaluses its usual baseline,full_diffsends the whole PR, andpr_metadatasends no diff. - Persistent threads are not supported with
input: code_objector in GitHub Actions agents; either is a configuration error, as is any value other thanfreshorpersistent. - A change to the agent’s configuration, instructions, model, tools, or ignore rules starts a new thread. So does a rerun on the same commit.
- Only complete reviews advance the thread; skipped, cancelled, and incomplete runs don’t. If the saved thread is unavailable, the run starts fresh with a warning.
- History grows with each push and counts against the model’s context window. If a resumed thread is too long to start, or runs out of context mid-run while the agent’s tools are all read-only, the run restarts once on a fresh thread; otherwise it ends with the usual context-window result. Run and spend limits apply to each run as usual.
File scope
include selects files; exclude removes them. Patterns without / match at any depth, * matches within one path segment, and ** spans directories.
.macroscope/ignore.md when the repository has one, otherwise the default ignore patterns. The same rules apply in every input mode and to GitHub Actions agents.
An explicit include overrides those ignore rules, but not the agent’s exclude. With include set, the agent reviews exactly the files its include matches, minus exclude, whatever the ignore rules say. The check warns when it overrides a pattern from your ignore file. Agents without include respect the ignore rules.
An agent that targets a default-ignored file type, such as
package.json, lock files, or *.json configuration, finds nothing in scope and skips. Add those files to the agent’s include, for example include: ["**/*.json"]. Writing a repository ignore file also works, but it replaces every default pattern and changes what correctness review covers too. Unreviewable binaries are always excluded.Test files
Check Run Agents skip test files by default, like correctness. An agent’s test policy is decided in this order:- The agent’s own
ignoreTests, when set.trueremoves test files even whenincludematches them;falsekeeps them. - If the agent sets
include, its include decides which test files are in scope. Like other ignore rules, the repository’s test setting doesn’t apply to files an agent includes. ignoreTestsin the repository’s ignore file, when set.- Otherwise, test files are skipped.
ignoreTests: false in its front matter. To review them in every agent and in correctness, set ignoreTests: false in the ignore file. ignoreTests: false does not override path patterns in your ignore file; remove those patterns or use include. Test detection is the same path-based detection correctness uses.
In every mode, comments on out-of-scope files are dropped. If every file is excluded, no agent runs and no usage is billed.
include/exclude normally produce no check; requiredStatusCheck: true produces a skipped check. Repository ignore rules that exclude everything always produce a skipped check.
Applicability filters
authors, labels, and targets each require at least one match within their list. All configured axes must match. A configured axis replaces the corresponding repository skip rule; omitted axes follow repository settings.
[bot]. Target branches are literal names, with only_default_branch as a special value. Blank entries are ignored and duplicates removed. Front matter filters apply even to explicit mentions and reruns.
Required status checks
conclusion: failure allows a check to fail when it finds a violation; a clean result still reports success. Add the check to GitHub branch protection to make that failure block merging.
conclusion: failure requires input: full_diff, code_object, or pr_metadata. It is unsupported with incremental (the default), which cannot replay an earlier failure verdict.
For scoped checks, also set requiredStatusCheck: true. A selected agent excluded by its applicability or file filters then reports skipped, which GitHub accepts, instead of leaving an indefinitely pending required check.
This option does not schedule the agent. If the feature is disabled, the definition is deleted or renamed, or the event selects another agent, no check is created. Keep branch protection consistent with those settings.
Prerequisite steps
Use names from the PR’s Checks tab. Matching is exact apart from case and applies to individual check runs, not whole workflows. At most 10 distinct names acrosswaitsFor and requires.
lint must pass. Every waited-for result is supplied to the agent.
requires accepts GitHub’s passing conclusions: success, neutral, and skipped. A failed, cancelled, timed-out, stale, or action-required check prevents the agent from running. Use waitsFor when the agent should investigate failures.
Missing prerequisites, timeouts, and dependency cycles skip the agent without starting it. Cycles across either field are detected at parse time.
Wildcard waits
waitsFor: ["*"] waits for all other checks, excluding itself and other wildcard agents so those agents can run in parallel. requires: ["*"] also requires the waited-for checks to pass. You can combine a wildcard wait with a named requirement.
Timeouts
waitsForDiscoveryTimeout limits how long a named check may take to appear. waitsForTimeout limits the total wait for completion; discovery time is included in it. Both accept 1–60 minutes.
For named checks, discovery ends as soon as all names appear. For wildcard waits, the discovery window is a minimum delay on every run. Raising it to 10 minutes delays every wildcard run by at least 10 minutes; the check warns about this configuration.
An agent counts as running while it waits for prerequisites, so Approvability’s wait for it includes that time. If an agent’s prerequisites can take longer than Approvability’s waitsForTimeout (20 minutes by default), raise it in approvability.md.
Run and spend limits
Omitted or non-positive
maxRuns, maxBudgetPerRun, and maxBudgetPerPR mean no limit. Positive budgets below $0.00001 are raised to that amount; values above $100,000 are clamped, with a warning. maxBudgetPerRun is unsupported with code_object.
Limits are checked in this order: workspace balance and monthly limit, the workspace Check Run Agents per-PR limit, maxBudgetPerPR, then maxRuns. See Triggers and skips for which triggers bypass each one.
Budgets are best effort. Completed work is billed, and concurrent runs can overshoot limits. The workspace’s combined agent per-PR limit, balance, and monthly limit also apply. Raising an agent budget does not raise workspace limits.
Tools
Specifyingtools replaces the defaults, including comment-posting access. List every tool you want to retain.
Connect services in Settings → Connections. Tools without their required connection are silently disabled.
mcp uses your workspace’s MCP connectors; see MCP in automated agents for which connectors are available.