Managing Code Reviews
Once you've set up Code Review, you can customize settings and monitor performance on the Agent page in the dashboard. This is your central hub for managing which repositories get reviewed, tracking costs, and analyzing how reviews are performing.
You might want to control which repositories receive automatic reviews, especially when you're testing Code Review for the first time or managing costs across a large organization.
To choose which repositories get reviewed:
- Select Agent in the top-right corner of the dashboard.
- Click the … button, and then select Settings to view the Vercel Agent settings.
- Under Repositories, choose which repositories to review:
- All repositories (default): Reviews every repository connected to your Vercel projects
- Public only: Only reviews publicly accessible repositories
- Private only: Only reviews private repositories
- Click Save to apply your changes.
These settings help you start small with specific repos or focus on the repositories that matter most to your team.
By default, Code Review skips draft pull requests since they're often work-in-progress. You can enable draft reviews if you want early feedback even on unfinished code.
To enable reviews on draft PRs:
- Select Agent in the top-right corner of the dashboard.
- Click the … button, and then select Settings to view the Vercel Agent settings.
- Under Review Draft PRs, select Review draft PRs.
- Click Save to apply your changes.
Draft reviews contribute to your Vercel Agent usage, but provide feedback earlier in your development process.
You can monitor your spending in real time to manage your budget. The Agent page shows the cost of each review and your total spending over a given period.
For detailed information about tracking usage and understanding cost breakdowns, see Track costs and usage.
The Agent page also shows you the total number of suggestions over a given period, as well as the number of suggestions for each individual review.
To view suggestions:
- Select Agent in the top-right corner of the dashboard.
- Check the Suggestions column for each review.
A high number of suggestions might indicate complex changes or code that needs more attention. A low number might mean your code is already following best practices, or the changes are straightforward.
Understanding how Code Review performs helps you optimize your setup and control usage.
The Agent page provides several metrics for each review:
- Repository: Which repository was reviewed
- PR: The pull request identifier (click to view the PR)
- Suggestions: Number of code changes recommended
- Review time: How long the review took to complete
- Files read: Number of files the AI analyzed
- Spend: Total cost for that review
- Time: When the review occurred
Use this data to identify patterns:
- Expensive reviews: If certain repositories consistently have high costs, consider whether they need special handling or different review settings
- Long review times: Reviews taking longer than expected might indicate complex codebases or large PRs that could benefit from smaller, incremental changes
- High file counts: Repositories with many files analyzed might benefit from more focused review scopes
You can export all your review data to CSV for deeper analysis, reporting, or tracking trends over time.
To export your data:
- Select Agent in the top-right corner of the dashboard.
- Click the Export button.
- Save the CSV file to your computer.
The exported data includes all metrics from the dashboard, letting you:
- Create custom reports for your team or stakeholders
- Analyze trends across multiple repositories
- Calculate ROI by comparing review costs to time saved
- Track adoption and usage patterns over time
You can stop automatic reviews from the Agent page. Manual reviews and explicit @vercel requests remain available and can create paid usage.
To turn off automatic Code Reviews:
- Select Agent in the top-right corner of the dashboard.
- Click the … button, and then select Turn off automatic Code Reviews….
- Confirm the action in the prompt that appears.
Once disabled, Code Review won't run automatically on new pull requests. You can re-enable automatic reviews at any time from the same menu.
Was this helpful?