Skip to content

Instantly share code, notes, and snippets.

@esthor
Created September 17, 2025 23:01
Show Gist options
  • Select an option

  • Save esthor/2dcb01916c9d8ab19268158793c71f2c to your computer and use it in GitHub Desktop.

Select an option

Save esthor/2dcb01916c9d8ab19268158793c71f2c to your computer and use it in GitHub Desktop.
Custom cursor command to run CodeRabbit code review via the CodeRabbit CLI

For expert code review, we will use CodeRabbit's CLI.

To do that, run coderabbit --prompt-only and wait.

Keep in mind that this will trigger a fairly long-running and thorough code review. So you will need to wait a while for the review. Once it does return to you, you will likely have multiple issues to address. Complete those and submit changes for review again.

Run this loop (fix issues CodeRabbit found -> CodeRabbit review) until CodeRabbit is satisfied. You will know when CodeRabbit is satisfied because it will end with something like "Review completed ✔" and not have any tasks or issues for you to address.

Note: Try using the coderabbit command first, but if the coderabbit comand is not available, ask the user if they want you to install it. If the user wants to proceed, proceed with executing this command and prompt the user to manually go through the secure authorization steps: curl -fsSL https://cli.coderabbit.ai/install.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment