Skip to main content

Private AI PR Reviewer by Cody Labs

Cody gives GitHub pull requests a focused second pair of eyes using the OpenAI or Anthropic model you choose. It runs inside GitHub Actions with your own provider API key. The inspected, unmodified Action contains no Cody Labs review-service integration; its code and dependencies run with access to the secrets you provide.

Cody pull request

What makes the review useful

  • Actionable findings include severity, file, line, impact, and a small fix.
  • Optional trusted-base context files apply your repository's own rules.
  • Custom instructions focus the reviewer on the risks that matter to your team.
  • One persistent PR comment is updated after each push instead of adding noise.
  • Generated files and other paths can be excluded from the review.

See a real Cody review that found three concrete issues in Cody's own code.

Set up the GitHub Action

The GitHub repository is the canonical source for installation, provider selection, supported inputs, and current model examples. Keeping the workflow in one place prevents copied setup instructions from becoming stale when Cody is released.

The installation guide covers both providers and the trusted pull_request_target workflow required when API keys are available. Choose one model and add only the matching OPENAI_API_KEY or ANTHROPIC_API_KEY repository secret.

Trigger pull request review

GitLab and Azure DevOps

Cody Pro brings the same review workflow to GitLab merge requests and Azure DevOps pull requests with ready-made pipeline templates.

Get Cody Pro →

Questions and suggestions

For support, feature requests, or bugs, open an issue on GitHub.

License

Cody's source is available for inspection and modification under its repository license. It is not distributed under an OSI-approved open-source license.