Review commands and fixes
Read Droid’s review, request another pass, or ask Droid about a finding on GitHub or GitLab.
Use @droid commands to interact with Droid after setting up automated review. On GitHub, you need the mention workflow even if automatic reviews already run. On GitLab, you need an explicit pipeline route for the comment.
Commands
On GitHub, post these commands as pull request comments. Droid checks that the commenter has write access to the repository before running the command.
| Command | What it does |
|---|---|
@droid or @droid review | Review the pull request. By default, a re-review focuses on changes since the previous review. |
@droid review --full | Review the entire current pull request diff instead of using the previous review as the starting point. |
@droid review Focus on error handling | Ask for a review that pays particular attention to the text after review. Add --full to also review the entire diff. |
@droid help | Show available commands. An unrecognized top-level request also shows help. |
@droid fix | Ask Droid to fix findings with open inline threads. For a single finding, reply in its thread instead. |
@droid resolve | Dismiss and resolve open Droid findings on the pull request. This changes thread state, not code. |
@droid pause | Stop future automatic reviews on this pull request. Manual review commands remain available. |
@droid resume | Re-enable automatic reviews on this pull request and reset its automatic review count. |
@droid security or @droid review security | Request a security review of the current pull request diff. |
@droid security --full or @droid review security --full | Request a repository security audit and a separate report pull request. |
@droid fill | Generate or refresh a pull request description. |
To ask what a finding means or whether an alternative would address it, reply in that finding’s inline thread, for example: @droid Would moving this check before the write address this issue? A free-form top-level comment is not a general coding request.
On GitHub, the example workflow cannot authenticate inline replies on fork pull requests under GitHub’s default secret restrictions. A user with write access can still request a review with a top-level comment. Top-level comments do not support finding-thread questions or single-finding fixes.
What a review posts
Droid generates candidate findings and then validates them before posting. Look for the summary comment, or for a generated block in the pull request description if your repository puts the summary there.
- The running comment shows when the review started, not a fixed estimate for when it will finish.
- The completed summary shows severity labels with colored badges by default. A finding title links to its inline thread when there is one. Findings outside the commentable diff stay visible as text in the summary.
- Fix in Factory appears at the end of a completed GitHub summary when it includes findings and agent prompts are enabled. It hands the findings to a Factory session, not to the
@droid fixworkflow.
GitHub-rendered preview with sample findings. The summary can include optional sections, such as suggested reviewers.
Check the inline comment for the evidence and any suggested change. The summary can also explain issues that span the change and cannot be tied to a single line.
Example inline finding from the same preview. The code block shows what to change, but it is not a GitHub suggestion you can apply.
Incremental and full reviews
The first review uses the full pull request diff. Subsequent reviews normally focus on changes since the last successful review. Droid can skip an unchanged diff, avoids reposting the same finding, and preserves threads that people dismissed. When automatic thread resolution is enabled, a re-review resolves a previous Droid thread only when validation confirms that the issue is fixed. A finding that is absent from a new review is not automatically fixed.
On GitHub, after a rebase or force-push, Droid can compare the previously reviewed tree to the current tree if the old commit is available in the checkout. If it is missing, Droid falls back to the current full pull request diff rather than fetching the old commit by SHA. An unchanged diff can still be skipped. Changes brought in from the base branch can appear in a tree comparison after a rebase.
Use @droid review --full when you want a fresh pass over the entire current pull request diff, even if it has not changed. To use the full diff on every run, set review_incremental: false in review configuration.
Fix or resolve findings
Use @droid fix on the pull request to work on findings with unresolved inline threads, or reply @droid fix in one of those threads to target just that finding. Findings that appear only in the summary are not selected. You can also apply a suggested change yourself. Fix requests and thread resolution are separate: resolving a thread is not proof that its finding was fixed.
fix_mode | How Droid publishes a requested fix |
|---|---|
commit (default) | Attempts to commit to the pull request branch. If restrictions prevent a direct commit, Droid can open a stacked pull request when it has permission. |
pr | Opens a stacked pull request into the original pull request’s branch instead of committing directly. |
off | Disables fix publishing. Use this to turn off fixes even if the App can obtain a write token. |
Droid checks that the branch head has not changed and that it has permission to publish. Forks without write access and a pull request whose source is the default branch are not eligible. Branch protection or a writable fork can require a stacked pull request. Droid can use that route only if it can create and push a fix branch and open the pull request.
Droid proposes edits only in existing files tied to the selected findings. Protected paths, such as .github/workflows and .factory, cannot be changed by this command. Droid does not run repository tests when publishing fixes. Review the changes and let your normal CI run before merging. If Droid cannot publish, review the finding and apply the fix yourself.
Update a pull request description
Use @droid fill to create or refresh Droid’s generated description. Droid preserves author text outside the generated block, so keep your own edits outside it. If review_summary is set to description, Droid manages the review summary in a separate generated block. Leave the block markers intact so Droid can identify the text it owns.
GitLab commands
GitLab does not start a CI pipeline just because you post a merge request note. The Droid Review component supports the commands above when a pipeline receives a real note, and it verifies that the note's author is an active Developer, Maintainer, or Owner. GitLab publishes fixes as commits or stacked merge requests and uses native discussions for findings and inline questions. Its full security command can open a report-only merge request; it does not apply security fixes.
For a same-project merge request, post the command as a note. For a question or targeted fix, reply in the existing Droid discussion. Then start a pipeline on the source branch with CI_MERGE_REQUEST_IID set to the merge request number (for example, 42 for !42) and DROID_TRIGGER_NOTE_ID set to the numeric note ID. The component accepts web, API, or trigger pipelines, but your project workflow rules must allow the selected route.
To route eligible notes automatically, see the GitLab webhook bridge setup. The bridge is optional and refuses fork refs. It delegates pipeline authority, not just a review command. Use it only for authors and branches you trust with the trigger token's access.