Skip to Content
Rock8Cloud
Guides

Code Reviews

AI-assisted code review on every pull request, with a visual report in the app

Rock8Cloud can automatically review pull request diffs with AI. Findings are posted on the PR as a GitHub comment, and every review also produces a visual report in the app.

Enable

  1. Open the service's Build and Deploys → Workflows tab
  2. Enable the AI Code Review workflow
  3. Configure which PR events trigger it (defaults to opened and synchronize)

Reviews run on every matching PR and post results as a comment on the pull request.

Trigger Behavior

  • Opened - review runs when the PR is created
  • Synchronize - review runs again when new commits are pushed
  • Branch patterns control which PRs are reviewed (defaults to * - all branches)

The reviewer reads the changed files and the surrounding repository in a read-only environment. It does not edit the branch or run tests and builds as part of the review. Large pull requests may be split into smaller file groups internally, then combined into one result.

The Visual Review

Open the service Code Reviews tab to see the full report. The GitHub PR comment, check run, and channel notifications all link straight to it.

Each review is a document built from the actual changes:

  • Summary - what the PR accomplishes, in plain language
  • Changed files - a tree of every touched file with change flags. Click any file to open its diff in a side-by-side browser
  • Data model changes - shown only when the PR touches database schemas
  • API changes - shown only when the PR adds or modifies endpoints
  • Architecture - a diagram of how the changed components relate, shown only when the PR changes structure
  • Diff walkthrough - the important hunks grouped into narrative tabs, with findings pinned to the exact lines they refer to

Every section collapses, and reviews from older versions without a visual report fall back to a plain findings list.

The report is tied to the commit that was reviewed. When you open a file in the diff walkthrough, the app fetches that file's comparison between the service default branch and that reviewed commit. If the default branch advances, the comparison can change after the review even though the reviewed commit stays fixed.

Fixing Findings with the Agent

You can hand findings straight to a coding agent that works on the PR branch:

  1. Check the findings you want fixed, in the diff or in the findings list
  2. Optionally click any line number in a diff to leave the agent an instruction on that line
  3. Click Send to agent

The agent starts a session on the PR branch, applies the batch, and pushes a commit. The push triggers a fresh review automatically. The review shows the agent's status with a link to its session in the Agents tab, where you can keep chatting with it about the same PR. The session view also links the PR's latest review and has its own Send button with the same behavior.

Sending again reuses the same session, so follow-up batches become new instructions to the agent you already briefed. Dismiss a finding to leave it out of the batch on this review. A later review of new changes can still flag the same issue if it is still there. The dismiss reason is passed to the next review of the PR, which does not re-raise the finding unless the code changed in a way that invalidates the reason.

This requires the coding agent feature to be enabled for your organization. When it is off, the review stays read-only.

Learnings

The reviewer can be taught what not to flag. Code Reviews > Learnings holds per-service instructions that are appended to every review run on that service.

Two ways to add one:

  • From a finding - dismiss it, check Don't flag this again, and edit the instruction it proposes
  • By hand - open the Learnings sub-tab and write the rule yourself

Active learnings go into the reviewer's prompt on every run. Toggle one off to pause it without losing the text, or delete it outright.

Good learnings are narrow and about your codebase, not about style in general. "Don't flag missing JSDoc on internal helpers, we only document exported APIs" works. "Be less picky" does not.

Coding agents have their own separate list, see Instructions.

Skipping generated files

The reviewer automatically skips lockfiles and common generated files: minified JS and CSS, source maps, test snapshots, protobuf output, *.generated.* files, Dart codegen, Drizzle snapshots, go.sum and npm-shrinkwrap.json.

To skip other generated files, mark them in .gitattributes with the linguist-generated attribute. GitHub uses the same attribute to collapse generated files in pull request diffs.

dist/** linguist-generated

Mark large generated files this way so the reviewer spends its budget on real code.

To force a file back into review, set the attribute to false:

src/vendor/widget.min.js linguist-generated=false

Reading Results on GitHub

Review findings also appear as a GitHub PR comment with:

  • Issues grouped by severity
  • File and line references
  • A link to the full visual review in the app

If the reviewer stops before finishing (for example it runs out of context or a provider error ends the session), or part of a large PR (a group of files reviewed separately) could not be reviewed, the findings it already confirmed are still published. The review is marked Partial in the app, the PR comment opens with an "incomplete" banner, and the GitHub check run concludes neutral instead of success. Critical findings still fail the check.

Use Continue review on a partial review with recorded remaining files, Retry Review on a failed review or a partial review without recorded remaining files, or Re-run on the GitHub check. Partial reviews can also be retried with the retry_code_review MCP tool.

On rock8cloud-hosted repositories there is no check Re-run button. Comment @rock8cloud review on the PR instead, optionally followed by the service name. The bot replies when it cannot retry.

A failed review is reviewed again in full. For a partial review with recorded remaining files and no new commits pushed since, the retry continues where it stopped: it keeps the findings for files already reviewed and reviews only the files the first run did not reach. An issue the resumed run reports again replaces the earlier copy of it, so the review never lists the same issue twice. If the PR has new commits, it reviews the whole PR again.

An accepted Re-run reviews the pull request at its current head. Only the newest review of a PR can be retried, including through its GitHub check. Re-run on a check belonging to a superseded review does not start another review. Pushing a commit still triggers a fresh review as before.

If starting a retry fails after creating a replacement review, the page opens that failed review so you can retry it. This only happens while you are still viewing the original review.

Treat automated findings as guidance - always validate before merging.

Notifications

If the workflow has Notifications enabled, your project's notification channels receive alerts when reviews complete or fail, including the link to the visual review. See Notifications.

On this page