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โ
-
PR opened in GitHub Automatic trigger when you create or update a pull request
-
AI analyzes code Advanced AI reviews your changes (5-10 minutes)
-
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:
| Agent | What It Catches |
|---|---|
| ๐ Security Expert | Vulnerabilities, injection attacks, exposed secrets, OWASP Top 10 |
| โก Performance Specialist | N+1 queries, memory leaks, bottlenecks, scalability issues |
| ๐ Bug Hunter | Null errors, race conditions, edge cases, logic bugs |
| โจ Quality Guardian | Code smells, dead code, unclear logic, missing validation |
| ๐๏ธ Architecture Advisor | SOLID violations, tight coupling, design pattern issues |
| ๐ Consistency Checker | Duplicated code, pattern deviations, naming inconsistencies |
| ๐ Documentation Reviewer | Outdated docs, missing API docs, misleading comments |
| ๐งช Test Analyst | Missing coverage, flaky tests, poor isolation |
| ๐ง General Reviewer | Project conventions, git hygiene, cross-cutting concerns |
| ๐ SEO Expert | Meta tags, OpenGraph, structured data, search visibility |
| ๐จ Refactoring Advisor | Code 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-reviewlabel
๐ Status Labelsโ
Track review progress through automatic labels:
diffray-review-started- review starteddiffray-review-completed- review completeddiffray-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โ
- Sign In with your GitHub account
- Install GitHub App on your account/organization
- Add Repositories in the dashboard
- Create a PR and watch the magic! โจ
What's Next?โ
Ready to improve your code review process? Let's get started!