Try Graphite Chat now!

Instant AI code review

Make your codebrilliant

Find critical bugs and security issues before they reach production.

Decorative code brackets with a glassy, modern aesthetic
Trusted by engineers at
Diamond
342 issues found
Potential edge case
Documentation issue
Code quality/style
Performance issue
Accidentally committed code
Security issue
Logic bug

1482
PRs reviewed
281
Issues led to fixes
3.5%
Comments downvoted
server.js
Javascript
+48
3 + const port = 3000;
Unresolved thread: line +3
Diamond1h ago
Logic bug
Change the port from 3000 to 8000 to match the exported port in the tests. The CI test is failing because it expects the server to run on port 8000.
Suggested change
3 - const port = 3000;
3 + const port = 8000;
Commit suggestion
Filters
Dialogs do not need explicit onClose handlers.
Don't leave comments about naming changes that could be considered nits
Commit suggestion
Update server.js
Commit suggestion
Custom rules
- Implement rate limiting and request validation to prevent abuse.
- Verify the integrity of third-party libraries and dependencies before use.
Get feedback on every PR in seconds, not hours
Features

Why teams choose Diamond

Features

More impact, less noise

Teams that use Diamond catch more critical issues with fewer false positives than competing solutions, from benchmark tests.

Less than 5% negative comment rate

Instant reviews

Diamond integrates directly with GitHub where you can take suggestions in 1-click. No context switching needed.

Seamless integration with GitHub

Custom rules

Scale your team’s best practices. Write your team’s preferred rules in plain language, or choose from templates. Diamond enforces them across every PR, instantly.

Adhere to your team's best practices
Getting started

How it works

Start catching bugs in under 3 minutes.

Step 1

Connect GitHub

One-click authorization. No config files. No setup.

Step 2

Get instant reviews

Diamond analyzes every pull request in seconds, flagging only real issues.

Step 3

Fix with one click

Accept AI-powered suggestions or customize the fix. Ship with confidence.

Logic bug
The condition in the if statement should be inverted. Change it to: if (!Object.keys(ASYNC_JOB_REGISTRY).includes(kind)) {
Potential edge case
readlink -f is not available on macOS by default. A more portable solution would be: bash filepath=$(perl -e 'use Cwd "abs_path";print abs_path(shift)' "$0") This achieves the same result but works across both Linux and macOS environments.
Security issue
Please remove this token logging. Exposing GitHub access tokens in logs creates a security risk, as these tokens grant API access and should be treated as sensitive credentials.
Accidentally committed code
Adding || true to this condition causes the function to unconditionally return "BINARY", bypassing the binary detection logic. This appears to be unintentional and should be removed to restore the original file type detection behavior.
Performance
The await inside Promise.all([...]) is preventing parallel execution of these promises. Since Promise.all expects an array of promises, the await here will cause the stack dependency check to complete before the merge job query begins. To achieve the intended parallel execution, remove the await from db.stack.getStackDependencyForPr().
Code style/quality
The callsite value markNotifAsRead doesn't match the function name markAsReadEndpoint.
Documentation issue
The description 'Get auth tokens for user' doesn't match the command's actual functionality. Consider changing it to 'Run async job queue and send a test email'.
Catch more than just typos
Logic bug
Potential edge case
Security issue
Accidentally committed code
Performance
Code style/quality
Documentation issue
Testimonials

What customers are saying

See what other engineers have said about Diamond

Konrad Komorowski

Software Engineer, Isometric

Diamond is very high signal, unlike other tools on the market. It found a months old bug in our codebase, that no human engineer could spot and so far, every highlighted issue has been a real problem.

Brian Michel

Software Engineer, The Browser Company

It's different from other AI tools because... it actually works. It doesn't blindly say 'hey here's a typo,' it gives well reasoned recommendations based on the context of what I'm trying to build and what I'm trying to build it in.

Mike Deeks

Infra Engineer, Braintrust

Diamond is currently my favorite thing. No fuss, easy to set up, easy to use, super helpful. I inserted our credit card and our lives got better.

Saket Gejji

CTO, Game Theory

We're seeing it comment on nits that we definitely would have missed, which is fantastic for improving our code quality.

Ruven Chu

Software Engineer, Goody

Diamond has been great for us! It does a fantastic job at finding real problems with our code and not delivering a lot of noise.

Ali Andaç

Software Engineer, Lasso MD

Diamond is a handy teammate who checks the PR quickly and saves your hours before merging your change. With this instant boost, development process time could decrease dramatically and ensure code quality level. Suggesting teams who aim for speed.

Reggie Escobar

Software Engineer, Soar Energy Solutions

It's really fast (it caught things before our CI did). It caught things before PR reviewers did.

Adam Walker

Co-Founder & CEO, Voxel Games

I've been using it for two weeks now and have to say, while it has only triggered a handful of times, each time has been an incredibly helpful insight on something I overlooked as well as other members of my team.

Konrad Komorowski

Software Engineer, Isometric

Diamond is very high signal, unlike other tools on the market. It found a months old bug in our codebase, that no human engineer could spot and so far, every highlighted issue has been a real problem.

Brian Michel

Software Engineer, The Browser Company

It's different from other AI tools because... it actually works. It doesn't blindly say 'hey here's a typo,' it gives well reasoned recommendations based on the context of what I'm trying to build and what I'm trying to build it in.

Mike Deeks

Infra Engineer, Braintrust

Diamond is currently my favorite thing. No fuss, easy to set up, easy to use, super helpful. I inserted our credit card and our lives got better.

Saket Gejji

CTO, Game Theory

We're seeing it comment on nits that we definitely would have missed, which is fantastic for improving our code quality.

Ruven Chu

Software Engineer, Goody

Diamond has been great for us! It does a fantastic job at finding real problems with our code and not delivering a lot of noise.

Ali Andaç

Software Engineer, Lasso MD

Diamond is a handy teammate who checks the PR quickly and saves your hours before merging your change. With this instant boost, development process time could decrease dramatically and ensure code quality level. Suggesting teams who aim for speed.

Reggie Escobar

Software Engineer, Soar Energy Solutions

It's really fast (it caught things before our CI did). It caught things before PR reviewers did.

Adam Walker

Co-Founder & CEO, Voxel Games

I've been using it for two weeks now and have to say, while it has only triggered a handful of times, each time has been an incredibly helpful insight on something I overlooked as well as other members of my team.
Pricing

Plans that grow with your team

Find the right plan for your team.

Starter

Best for individuals and small teams.

Free

Immediate reviews

  • Automatically run for up to 100 PRs / month

  • Post comments with suggestions

  • Connects with your GitHub

  • One-click suggested edits

Standard
Most Popular

Best for large teams with high PR volume.

$20

per active committer / month

Actionable, smarter reviews

  • Codebase-aware AI

  • Customize with rules

Reviews at scale

  • Run for unlimited PRs

25% off for Graphite subscribers

Enterprise

Best for org-wide deployments.

Custom

Security and compliance

  • ACLs

  • SAML

  • Audit log (SIEM)

  • GHES support

Support

  • Dedicated support

  • SLAs

Finance and legal

  • Custom payment terms

  • Custom MSA and DPA

Diamond is just the start. Level up your entire development workflow with Graphite – an intelligent code review platform.

FAQ

Frequently asked questions

Still have questions? Reach out to our team.

Supercharge
your team today

Diamond close-up render