Graphite home page
Search...
⌘K
Get started
Overview
Setup & configuration
Authenticate with GitHub
Configure GitHub repository settings
Install & authenticate the CLI
Diamond (AI code review)
Overview
Setup & configuration
Review comments
Customization
PR workflows
Pull Request Inbox
Review pull requests
Merge pull requests
Stacking (Graphite CLI)
Overview
Quick Start
Command Reference
Command Cheatsheet
Configure The CLI
GT MCP
Basic tutorials
Advanced tutorials
Integrations
Overview
VS Code Extension
Menu Bar App (Mac)
Slack Notifications
Linear
Repository management
Merge Queue
Automations
Insights
Administration
Privacy & security
User permissions
Billing & plans
GitHub Enterprise Server
References
FAQs
CLI Changelog
Graphite CLI v1 command names
Learn to stack
Evaluating Graphite
LLM-Friendly Documentation
App
Graphite home page
Search...
⌘K
Ask AI
App
Search...
Navigation
Diamond (AI code review)
Review comments
Diamond (AI code review)
Review comments
Understanding Diamond’s feedback and how to get the most value from it
How Diamond provides feedback
When Diamond identifies an issue in a pull request, it adds a comment directly on the relevant lines of code. Each comment includes:
A clear description of the problem
An explanation of why it matters
A concrete suggestion for how to fix it
You can see Diamond’s comments, suggestions, and choose to commit suggestions — just like your teammates’.
Types of issues Diamond identifies
Diamond catches a wide range of issues that often slip through manual code review and testing:
Logic bugs
Diamond identifies when your implementation doesn’t match the intended behavior, detecting issues like:
Functions that don’t accomplish what they’re named to do
Inconsistencies between code behavior and documentation
Mismatches between API usage and implementation
Off-by-one errors and incorrect loop boundaries
Edge cases
Diamond finds potential failure modes that aren’t handled in your code:
Missing null checks or error handling
Race conditions in asynchronous code
Memory leaks and resource management issues
Unexpected side effects
Security vulnerabilities
Diamond spots security issues before they reach production:
SQL injection vulnerabilities
Cross-site scripting (XSS) opportunities
Authorization bypass possibilities
Insecure cryptographic practices
Performance issues
Diamond detects code that might cause performance problems:
Inefficient algorithms or data structures
Unnecessary API calls or database queries
Memory-intensive operations that could be optimized
N+1 query patterns
Accidentally committed code
Diamond catches code that was likely not meant to be committed:
Debug statements and console logs
Test data and development configurations
Commented-out code blocks
Temporary workarounds
Tracking Diamond’s impact
You can monitor Diamond’s activity and impact from the Diamond dashboard, accessible via the
Diamond settings page
.
The dashboard provides:
A feed of all comments Diamond has left across your repositories
Statistics on the number of PRs reviewed and issues found
Feedback metrics showing how often Diamond’s suggestions were applied
Filtering options to view comments by category or repository
How to check Diamond’s status
For any pull request, you can see Diamond’s current status in the right-hand panel of the PR page:
Diamond will show as:
Running
: Diamond is currently analyzing the PR
Completed
: Diamond has finished reviewing and left any relevant comments
Not running
: Diamond won’t analyze this PR (e.g., if the PR exceeds 100,000 characters)
Was this page helpful?
Yes
No
Previous
Customization
Tailor Diamond to your team's specific needs and coding standards
Next
On this page
How Diamond provides feedback
Types of issues Diamond identifies
Logic bugs
Edge cases
Security vulnerabilities
Performance issues
Accidentally committed code
Tracking Diamond’s impact
How to check Diamond’s status
Assistant
Responses are generated using AI and may contain mistakes.