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

# Slop Detection

> Automatically detect low-quality, AI-generated 'Slop' pull requests on GitHub repositories.

export const EarlyAccessBadge = ({tip = "This feature is in early access. Enable it by setting `early_access: true` in your `.coderabbit.yaml`, or by toggling Early Access on the web interface.", title = "Early Access", cta = "View configuration", href = "/reference/configuration#param-early-access", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="flask-conical" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const EssentialsPlanBadge = ({tip = "This feature is available on Essentials (formerly Pro), Team (formerly Pro+), Advanced, and Enterprise. Please refer to our pricing page for more information about our plans and features.", title = "Essentials Plan", cta = "Read more", href = "https://coderabbit.ai/pricing", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="shield-check" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const GitHubBadge = ({tip = "This feature is available on GitHub and GitHub Enterprise.", title = "GitHub", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="github" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

<GitHubBadge /> | <EssentialsPlanBadge title="Essentials Plan *" tip="Slop Detection is available on all plans for public repositories and requires the Essentials plan and above for private repositories." /> <EarlyAccessBadge />

On GitHub repositories CodeRabbit analyzes pull requests for signals of low-quality, AI-generated content. If the PR is classified as slop, CodeRabbit notes this in the PR Walkthrough comment. You can also configure a label in your settings to get the suspicious PRs labeled automatically.

Analysis runs only on the first full, non-incremental review of a pull request, and only when `reviews.slop_detection.enabled` is on. No additional setup is required beyond enabling the feature.

## Configuration

<Tabs>
  <Tab title="Configuration file">
    Configure the `slop_detection` section in your [`.coderabbit.yaml`](/getting-started/yaml-configuration) file:

    ```yaml .coderabbit.yaml wrap theme={null}
    reviews:
      slop_detection:
        enabled: true   # Runs automatically on eligible repos unless disabled
        include_all_authors: false
        label: "slop"   # Add a label to apply when slop is detected (no label applied by default)
    ```
  </Tab>

  <Tab title="Web UI">
    1. Go to `CodeRabbit settings` for your [repository](https://app.coderabbit.ai/settings/repositories) or [organization](https://app.coderabbit.ai/organization/settings/general).
    2. Switch the mode (bottom-left) to **All Settings**.
    3. Navigate to **Reviews → General**.
    4. Scroll down to the **Anti-Slop** section to toggle **Enabled** or **Include All Authors** on or off, and optionally set a custom **Label**.
  </Tab>
</Tabs>

### Disabling Slop Detection

To disable Slop Detection on a repository, set `enabled` to `false` or disable it in the web UI:

```yaml .coderabbit.yaml theme={null}
reviews:
  slop_detection:
    enabled: false
```

### Include all pull request authors

By default, Slop Detection exempts authors whose repository relationship is collaborator, contributor, organization member, or repository owner. To analyze pull requests from these authors too, set `include_all_authors` to `true`:

```yaml .coderabbit.yaml theme={null}
reviews:
  slop_detection:
    include_all_authors: true
```

Service and automation accounts remain exempt when this option is enabled.

### Label flagged PRs

By default, Slop Detection does not apply any label, it only adds a note to the PR Walkthrough comment. To also apply a label to flagged PRs, set the `label` field:

```yaml .coderabbit.yaml theme={null}
reviews:
  slop_detection:
    label: "slop"   # Or any label name you prefer, e.g. "ai-spam"
```

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Does Slop Detection work on private repositories?">
    Yes. Slop Detection runs on private repositories for organizations on the Essentials plan and above. Public repositories are eligible across all plans.
  </Accordion>

  <Accordion title="Are any pull request authors exempt?">
    By default, service or automation accounts are exempt, as are collaborators, contributors, organization members, and repository owners. Set `reviews.slop_detection.include_all_authors` to `true` to include authors based on repository relationship; service and automation accounts remain exempt.
  </Accordion>

  <Accordion title="Will Slop Detection block a PR from being merged?">
    No. Slop Detection does not block merges. When a PR is classified as slop, a note is added to the PR Walkthrough comment. If a label is configured, it is also applied so maintainers can filter and triage PRs at their discretion.
  </Accordion>

  <Accordion title="Can I automatically close slop PRs?">
    Not at the moment. CodeRabbit is currently gathering data and tuning the detection mechanism to ensure accuracy.
  </Accordion>
</AccordionGroup>

## What's next

<CardGroup cols={1}>
  <Card title="Pre-Merge Checks" href="/pr-reviews/pre-merge-checks" icon="shield" horizontal>
    Enforce quality gates and custom requirements before pull requests are merged
  </Card>

  <Card title="Automatic review controls" href="/configuration/auto-review" icon="settings" horizontal>
    Fine-tune which PRs CodeRabbit reviews automatically using labels, branches, and author filters
  </Card>

  <Card title="Configuration reference" href="/reference/configuration" icon="book" horizontal>
    See the full slop\_detection schema with types, defaults, and constraints
  </Card>
</CardGroup>
