Diamond helps reduce your team's overall time-to-merge by providing your developers with immediate, actionable feedback on all of their pull requests.
Enabling Diamond
Before Diamond can start leaving comments, it must be enabled for a repository.
To enable Diamond, navigate to the Diamond settings page and click "Enable Diamond".
After you click "Enable Diamond", you'll be prompted to select the repositories that you want to enable Diamond on. If you do not see the expected repositories, make sure that they are synced with Graphite.
Review comments
Once you have enabled Diamond, it will automatically start analyzing any new pull requests in the repository. Whenever it finds a bug, it will leave a comment directly on the pull request calling out the bug and suggesting potential fixes.
In the right-hand panel of the PR page, you can see whether Diamond has previously run, is currently running, or won't run (for example, because the PR is too large).
The feed
After Diamond has been running for a few days, you'll start to see comments aggregate in your feed.
Accessible from the right-hand panel of the Diamond settings page, the feed shows you all the comments that Diamond has left in your selected repositories.
How Diamond works
Under the hood, Diamond watches for every new pull request. When it detects a new pull request, it gathers other relevant information from your repository (including similar past pull requests, additional files that might be relevant, and past comments) and passes that information to a sequence of large language models to determine if there are any bugs and how those could be fixed.
We use Anthropic as our LLM provider, and always design with the security of your data in mind. We do not train on your data (nor does Anthropic). You can find more details in our AI security and privacy page.