AI code reviews in AI coding agents

Supercharge AI coding agents with automated code reviews

AI Code Reviews in CLI integrates seamlessly with AI coding agents like Cursor, Claude Code, Windsurf, and others, enabling natural language code reviews and automated fixes.

Prerequisites

Before you begin, make sure you have:

Why use code review CLI with AI agents?

AI coding agents are great at writing code, but they need expert guidance to catch security vulnerabilities, performance issues, and best practices violations. The AI Code Reviews in CLI provides that expertise.

The power combination:

  • AI Code Reviews in CLI provides specialized code analysis

  • Your AI agent (Cursor, Claude Code, Windsurf, etc.) implements the fixes and iterates based on feedback

  • You stay in natural conversation, never leaving your workflow

How it works

1

Configure your agent

Add bitoreview command to your agent's rules file so it knows when and how to run code reviews. See the Setup guide section below for commands to set this up for your specific coding agent.

2

Ask for code reviews in natural language

Simply tell your agent "review my changes" or "check for security issues"

3

Agent runs code review CLI Automatically

Your agent executes the bitoreview command and reads the results

4

Get fixes implemented instantly

Tell your agent which issues to fix, and it implements the changes automatically

Setup guide

The guidelines filearrow-up-right is a set of instructions that tells your AI coding agent (Claude Code, Cursor, etc.) how to correctly run bitoreview command when you ask it to do a code review. It defines the expected workflow, such as always using --prompt-only for structured JSON output, waiting for the review to complete before responding, grouping issues by severity, and validating problems in the actual code before suggesting fixes. Without these guidelines, the AI coding agent may not know how to use Bito's AI Code Reviews in CLI.

To get started, you need to add the guidelines to your agent's rules file. Depending on your AI coding agent, this is either done automatically during installation, or manually per project using a simple command:

Global configuration (auto-applied during install)

During setup, the installer automatically adds the usage guidelines globally for the following AI coding agents if they are detected on your system:

AI Coding Agent
Guidelines file location

Claude Code

~/.claude/CLAUDE.md

Windsurf

~/.codeium/windsurf/memories/global_rules.md

Project-level configuration (manual, per-project)

For all other supported IDEs such as Cursor, VS Code (GitHub Copilot), Junie, and JetBrains AI Assistant, you need to add the guidelines manually inside each project directory where you want them to apply.

Navigate to your project root, then run the relevant command:

Cursor:

  • macOS / Linux:

  • Windows:

Windsurf:

  • macOS / Linux:

  • Windows:

VS Code (GitHub Copilot):

  • macOS / Linux:

  • Windows:

Junie:

  • macOS / Linux:

  • Windows:

JetBrains AI Assistant:

  • macOS / Linux:

  • Windows:

Other agents: Check your agent's documentation for the custom rules/instructions file location, then copy and paste the sample guidelines content provided below directly into that file.

Last updated