Docs
Sign in

Ask an agent to review a pull request.

Starts the reviewer role on the pull request's head commit, on a machine, as a step Koidog adds to the pull request's crew (it is not counted as the crew's work): it reads the change with the rules in the repository's AGENTS.md and CLAUDE.md at that commit and writes findings (category, blocker|major|minor|nit, confidence, file and line).

POST/api/v1/pull-requests/{id}/review-agent

Scopecrews

It changes nothing: its checkout is discarded. Findings arrive at GET /pull-requests/{id}/findings; nothing is posted to GitHub. A direct crew's task pull request only: a managed crew's pull request already has its independent reviewer (409 managed_crew). One review per head commit at a time (409 review_running). The head must be the commit Koidog holds for the branch (409 head_not_in_mirror). Reopens an ended crew while it runs; the crew's own result does not change. The timeline records the key ID, action and outcome.

Path parameters.

idstringrequired

The pull request's id.

Headers.

Idempotency-Keystring

Retry the same request with the same key. Retry rules.

Body.

An omitted body is read as {}.

connectionIdstring

The model connection the review agent runs on. Default: the crew's reviewer connection, else its builders'. At least 5 characters.

modelstring

The model to review with. Default: the crew's reviewer model, else the connection's own. At least 1 character.

Response.

202 Accepted · JSON object. Follow progress on the timeline.

422 validation_failed
Each schema error appears in details.