> ## Documentation Index
> Fetch the complete documentation index at: https://www.greptile.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> Get started with Greptile's AI code review agent. Automatically summarize PR changes, catch bugs, and get context-aware code suggestions.

<Note>GitHub, GitLab, and GitHub Enterprise Server supported (email [hello@greptile.com](mailto:hello@greptile.com) for GHES access)</Note>

Greptile's code review agent does three things:

<Steps>
  <Step title="Summarizes Changes">
    Greptile summarizes the changes in the pull/merge request

    <Frame>
      <img src="https://mintcdn.com/greptile/wvtqATBJVpVBBYwq/images/cr-bot/summary.png?fit=max&auto=format&n=wvtqATBJVpVBBYwq&q=85&s=4e18b6cf4f3779b82af239d778d80d0b" alt="Example of Greptile AI code review summary" width="1330" height="886" data-path="images/cr-bot/summary.png" />

      <figcaption>Example of Greptile AI code review summary</figcaption>
    </Frame>
  </Step>

  <Step title="Comments on Issues">
    Greptile comments on specific file changes and suggests potential issues and unforeseen consequences of the change.

    <Frame>
      <img src="https://mintcdn.com/greptile/wvtqATBJVpVBBYwq/images/cr-bot/cr-comment.png?fit=max&auto=format&n=wvtqATBJVpVBBYwq&q=85&s=8b6fe2dbdf2b6338f2eef2e2fd494f92" alt="Example of Greptile AI code review comments" width="2822" height="1078" data-path="images/cr-bot/cr-comment.png" />

      <figcaption>Example of Greptile AI code review comments</figcaption>
    </Frame>
  </Step>

  <Step title="Suggests Fixes">
    Greptile suggests potential fixes for issues and unforeseen consequences of the change.

    <Frame>
      <img src="https://mintcdn.com/greptile/wvtqATBJVpVBBYwq/images/cr-bot/cr-suggestion.png?fit=max&auto=format&n=wvtqATBJVpVBBYwq&q=85&s=32ec8932063841009857480eeeca27ac" alt="Example of Greptile AI code review suggestions" width="1426" height="1436" data-path="images/cr-bot/cr-suggestion.png" />

      <figcaption>Example of Greptile AI code review suggestions</figcaption>
    </Frame>
  </Step>
</Steps>

### What does Greptile comment on?

Greptile comments on many types of bugs, antipatterns and style violations out-of-the-box, and can be configured to enforce your custom rules.

You can think of Greptile as a stack-agnostic, AI-powered linter.

<Card title="Logic" icon="lightbulb" horizontal>
  Surfaces logical errors by inferring the intent of the change and scanning related files, imports, and more.
</Card>

<Card title="Style" icon="code" horizontal>
  Enforces stack-specific best practices as well as your custom style guide and patterns.
</Card>

<Card title="Performance" icon="gauge-high" horizontal>
  Identifies potential performance issues by analyzing the impact of the changes on the codebase.
</Card>

<Card title="Security" icon="shield" horizontal>
  Identifies potential security issues by analyzing the impact of the changes on the codebase.
</Card>

<Card title="Compliance" icon="list-check" horizontal>
  Enforces your custom compliance rules and regulations.
</Card>

<Card title="Code Repetition" icon="copy" horizontal>
  Identifies potential code repetition by scanning the codebase for similar code.
</Card>

### Why is it useful?

Greptile's code review agent writes comments that:

* Are context-aware, so can discuss the implications of the changes to the wider codebase.
* Can identify potential performance, security or compliance issues produced by the changes.
* Reference similar code or abstractions related to the changes that are already in the codebase, to prevent repetition.
* Enforces your custom style guide and prescribed patterns.

This means:

1. Less time spent reviewing PRs or awaiting review, and more time spent writing code.
2. More bugs caught that humans might miss.
3. A human reviewer can focus on the "big picture" and "strategic" aspects of the changes, while the agent can focus on the "tactical" aspects.

<Card href="https://github.com/twentyhq/twenty/pull/5718">
  Click here to see a sample PR review on `twentyhq/twenty`! ->
</Card>
