> ## 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 pull requests on public 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 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 tip="This feature is available on public GitHub repositories." /> | <EarlyAccessBadge />

When a pull request is opened on a public GitHub repository, CodeRabbit analyzes the changes for signals of low-quality, AI-generated content. If the PR is classified as slop, CodeRabbit notes this in the PR Walkthrough comment. Additionally, you can configure a label in your settings to get the suspicious PRs labeled automatically.

The detection runs as part of CodeRabbit's standard review pipeline, no additional setup is required.

## 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 public repos unless disabled
        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** 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
```

### 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?">
    No. Slop Detection only runs on public GitHub repositories.
  </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>
