Read Anthropic’s case study about Graphite Reviewer

Understanding AWS CodeGuru code reviewer

Sara Verdi
Sara Verdi
Graphite software engineer
Try Graphite

AWS CodeGuru is a machine learning service from Amazon that helps developers optimize their code and identify its most expensive lines. The CodeGuru Reviewer component specifically provides automated code reviews for detecting issues and suggesting improvements. It supports both Java and Python and integrates with repositories in GitHub, Bitbucket, and AWS CodeCommit.

  • Automated code review with AWS AI: CodeGuru Reviewer scans your source code for critical issues, security vulnerabilities, and provides suggestions to improve performance and code quality.
  • Intelligent code inspection on AWS: It leverages machine learning models trained across millions of code lines to identify coding best practices and detect deviations.
  • Integration with existing tools: Easily integrates into your existing development workflow with GitHub, Bitbucket, or AWS CodeCommit.

CodeGuru’s pricing is usage-based and varies depending on the lines of code analyzed during the review process and the number of active repositories. It provides an initial free tier of 100,000 lines of code reviewed per month for the first three months, which is a significant benefit for small teams or individual developers starting out with AI-powered code analysis.

  1. Setup and integration: First, connect CodeGuru to your source code repository.
  2. Continuous code review: Once integrated, CodeGuru Reviewer analyzes each pull request created in the repository. It uses machine learning to evaluate your code against a broad set of coding best practices.
  3. Feedback and insights: After analysis, it provides recommendations through comments on your pull requests. These might include issues related to resource leaks, potential concurrency race conditions, or overly complex code.

While AWS CodeGuru focuses on broad AI-powered code insights and security auditing, Graphite Reviewer offers a more targeted approach with its features:

  • Immediate, actionable feedback: Graphite Reviewer provides immediate feedback on pull requests, reducing the cycle time of code reviews.
  • Custom rules and data security: It allows for custom rules tailored to your codebase and ensures that your code remains private and secure, not using your data for training its models.
  • Cost-effective scaling: Graphite Reviewer operates on a subscription model that might be more cost-effective depending on your team's size and needs, starting at $20 per month per active repo committer with a 30-day free trial available.

AWS CodeGuru and Graphite Reviewer both enhance the code review process but cater to slightly different needs. AWS CodeGuru's strength lies in its extensive machine learning insights and integration across multiple AWS services, making it suitable for projects that are already heavily integrated into the AWS ecosystem. On the other hand, Graphite Reviewer's customization and immediate feedback loop make it ideal for teams looking to fine-tune their review processes and enforce specific coding standards.

Git inspired
Graphite's CLI and VS Code extension make working with Git effortless.
Learn more

Built for the world's fastest engineering teams, now available for everyone