Skip to main content

Welcome to diffray

AI-Powered Code Review for GitHub Pull Requests

diffray automatically reviews your pull requests using artificial intelligence and posts detailed feedback directly in GitHub.

How It Worksโ€‹

  1. PR opened in GitHub Automatic trigger when you create or update a pull request

  2. AI analyzes code Advanced AI reviews your changes (5-10 minutes)

  3. Review published Detailed feedback posted as a comment in your PR

Specialized Review Agentsโ€‹

diffray uses a team of specialized AI agents, each expert in their domain:

AgentWhat It Catches
๐Ÿ”’ Security ExpertVulnerabilities, injection attacks, exposed secrets, OWASP Top 10
โšก Performance SpecialistN+1 queries, memory leaks, bottlenecks, scalability issues
๐Ÿ› Bug HunterNull errors, race conditions, edge cases, logic bugs
โœจ Quality GuardianCode smells, dead code, unclear logic, missing validation
๐Ÿ—๏ธ Architecture AdvisorSOLID violations, tight coupling, design pattern issues
๐Ÿ”„ Consistency CheckerDuplicated code, pattern deviations, naming inconsistencies
๐Ÿ“ Documentation ReviewerOutdated docs, missing API docs, misleading comments
๐Ÿงช Test AnalystMissing coverage, flaky tests, poor isolation
๐Ÿ”ง General ReviewerProject conventions, git hygiene, cross-cutting concerns
๐Ÿ” SEO ExpertMeta tags, OpenGraph, structured data, search visibility
๐Ÿ”จ Refactoring AdvisorCode smells, SOLID violations, technical debt, complexity

diffray comes with 1,300+ built-in rules covering security, performance, bugs, compliance, and more across 49 categories including languages, frameworks, and standards. Rules are automatically applied based on what files changed in your PR โ€” TypeScript changes get TypeScript rules, Python gets Python rules, and so on.

Compliance coverage: SOC 2, HIPAA, GDPR, LGPD, PCI-DSS rules included out of the box.

See all supported technologies โ†’

Smart & Adaptiveโ€‹

  • Context-aware โ€” only relevant rules run based on changed files
  • Noise-free โ€” intelligent deduplication removes repetitive findings
  • High-confidence โ€” validation pass filters out uncertain issues
  • Codebase-aware โ€” analyzes how changes affect existing code

Customizableโ€‹

Add project-specific rules to enforce your team's standards:

# .diffray/rules/team-standards.yaml
rules:
- id: use_internal_logger
agent: quality
title: "Use internal logger"
match:
file_glob: ["src/**/*.ts"]
...

Key Featuresโ€‹

๐Ÿค– AI Code Reviewโ€‹

Get intelligent code reviews from advanced AI models that understand your codebase

โšก Fast & Efficientโ€‹

Automatic review triggers on PR open, update, or on-demand via labels

๐ŸŽฏ Automatic Triggersโ€‹

Reviews start automatically when:

  • Opening a new PR
  • Pushing new commits to PR
  • Reopening a PR
  • Adding the diffray-review label

๐Ÿ“Š Status Labelsโ€‹

Track review progress through automatic labels:

  • diffray-review-started - review started
  • diffray-review-completed - review completed
  • diffray-review-failed - review failed

๐Ÿ” Secure Integrationโ€‹

GitHub App with controlled permissions - you choose which repositories to grant access

What You Needโ€‹

  • A GitHub account
  • A repository where you want AI code reviews
  • Admin rights to install GitHub App
  • 5 minutes to set up

Quick Startโ€‹

  1. Sign In with your GitHub account
  2. Install GitHub App on your account/organization
  3. Add Repositories in the dashboard
  4. Create a PR and watch the magic! โœจ

What's Next?โ€‹

๐Ÿš€ Getting Started

Set up diffray in 5 minutes

Start here โ†’

๐Ÿ“– Usage

Learn how to work with reviews

Learn more โ†’

๐Ÿง  AI Engines

Learn about our AI technology

Discover โ†’

๐Ÿค– Review Agents

Meet your AI review team

Explore agents โ†’

โš™๏ธ Custom Rules

Add your team's standards

Learn more โ†’

๐Ÿ“ Writing Rules

Best practices for effective rules

Read guide โ†’

Ready to improve your code review process? Let's get started!