# AI Reviews - Instant AI code review.

Graphite Chat finds critical bugs and security issues before they reach production.

## Main Features

### Instant Reviews
- **1-click fixes**
- **High signal**
- **Custom rules**

### Metrics
- 342 issues found
- 1482 PRs reviewed
- 281 Issues led to fixes
- 3.5% Comments downvoted

## Code Review Example

### File: server.js
```javascript
const port = 3000;
```

#### Unresolved thread: line +3

**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**
```javascript
const port = 8000;
```

## Commit Suggestions

### Custom rules
Define information to consider when determining types of comments not to leave.  
- Dialogs do not need explicit onClose handlers.
- Don't leave comments about naming changes that could be considered nits

### Update server.js

#### Filters
Define rules to detect issues in your codebase in addition to general bugs:
- Implement rate limiting and request validation to prevent abuse.
- Verify the integrity of third-party libraries and dependencies before use.

## Logic Bugs and Potential Issues

- **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")
  ```  
- **Security issue:** Please remove this token logging. Exposing GitHub access tokens in logs creates a security risk.
- **Documentation issue:** The description 'Get auth tokens for user' doesn't match the command's actual functionality. Suggested change: 'Run async job queue and send a test email'.

### Features of Graphite Chat
- **Why teams choose Graphite Chat**
  - More impact, less noise.
  - Instant reviews.
  - Seamless integration with GitHub.

### Testimonials

#### Konrad Komorowski, Software Engineer
> Graphite Chat is very high signal, unlike other tools on the market.

#### Brian Michel, Software Engineer, The Browser Company
> It's different from other AI tools because... it actually works.

#### Mike Deeks, Infra Engineer, Braintrust
> Graphite Chat is currently my favorite thing.

#### Saket Gejji, CTO, Game Theory
> We're seeing it comment on nits that we definitely would have missed.

#### Ruven Chu, Software Engineer, Goody
> Graphite Chat has been great for us!

#### Reggie Escobar, Software Engineer, Soar Energy Solutions
> It's really fast.

## FAQ

### How do I enable AI code reviews?
Still have questions? Reach out to our team.

## Call to Action
#### Built for the world’s fastest engineering teams, now available for everyone.
