Completely Free

Catch Bugs Before
They Hit Review

Get instant AI feedback on every change — before it reaches your PR. No waiting for reviewer comments. Works with Claude Code or Cursor.

Works with your Claude Code or Cursor subscription.

See It in Action

A flexible AI agent orchestrator under your full control. Configure agents and rules to match your project goals.

terminal
diffray CLI running multi-agent code review with security, performance, and bug detection

$0 forever.

Uses your existing Claude Code or Cursor subscription.

No account needed

Runs locally

Open source

5 specialized agents, one command

Each agent focuses on a specific area. Create unlimited custom agents.

security-scanSQL injection, XSS, exposed secrets
bug-hunterNull checks, race conditions, edge cases
performance-checkMemory leaks, slow queries, N+1
consistency-checkNaming, patterns, code style
generalReadability, complexity, best practices

+ create unlimited custom agents with YAML

CLI vs Platform — Choose what fits

diffray CLI

This page

  • Free & open-source
  • Runs locally with your AI subscription
  • Manual rule configuration
  • Perfect for solo developers
$ npm install -g diffray

diffray Platform

For teams

  • Connects to GitHub/GitLab in 2 clicks
  • Auto-comments on every PR
  • Learns from your feedback over time
  • Team dashboards & analytics

Get Started in Seconds

Two steps to your first AI code review

1

Install the CLI

Install diffray globally using npm, yarn, or pnpm.

$npm install -g diffray
2

Run your first review

Navigate to any Git repository and run a review. Uses your existing Claude Code configuration.

$diffray review

Powerful Features

Everything you need for comprehensive code reviews, right in your terminal

Lightning Fast

Get instant feedback on your code changes without leaving your terminal or switching context.

Security Analysis

Detect security vulnerabilities, OWASP Top 10 issues, and potential exploits in your code.

Multi-Agent System

Specialized AI agents for security, performance, architecture, and code quality.

Git Integration

Works with any Git repository. Review staged changes, branches, or specific commits.

Custom Rules

Define your own review rules and guidelines using simple YAML configuration.

CI/CD Ready

Easy to integrate into your CI/CD pipeline for automated code reviews.

Available Commands

Simple, intuitive CLI commands for every use case

diffray review

Review current staged changes or working directory

diffray review --branch feature-branch

Review all changes in a specific branch

diffray review --commit HEAD~3..HEAD

Review a range of commits

diffray config

Configure API keys and preferences

diffray init

Initialize diffray configuration in your project

diffray agents

List and configure review agents

Everything Included

Multi-agent AI review system
Security vulnerability detection
Performance analysis
Code style checking
Architecture review
Duplicate code detection
Custom rules support
JSON/Markdown output formats
CI/CD integration
Offline mode with your API key
Git branch comparison
Configurable agents

Why a CLI tool?

We believe code review should happen where you work. Not in a browser, not in a separate app, but right in your terminal alongside your code.

The diffray CLI brings the full power of our multi-agent AI review system directly to your command line, making it faster and more integrated into your workflow.

FAQ

How is this different from diffray.ai?
diffray.ai is our hosted service for team PR reviews via GitHub integration. The CLI is a free, local tool using your own AI subscription — same review engine, different delivery.
Does my code leave my machine?
Never. Everything runs locally. Code is sent only to Claude/Cursor API (your subscription) for analysis.
What languages are supported?
TypeScript, JavaScript, Python, Go, Rust, Java, C#, Ruby, PHP, Swift, Kotlin, and 15+ more.
Can I use it in CI/CD?
Yes! Use diffray review --json for machine-readable output perfect for pipelines.

Ready to try it?

Install and improve your code with AI code review from diffray

$npx diffray review
100% Free
Open Source
No Account Required