> ## 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.

# Fix with your Agent

> One-click fix for Greptile review comments. Send issues directly to Claude Code, Codex, Conductor, Cursor, or Devin.

Every Greptile review comment includes a **Fix with your Agent** button. Click it, and the issue gets sent straight to your coding agent with full context: the file, line numbers, the comment, and the suggested fix. Your agent opens, applies the fix, and you review the diff. No copy-pasting, no switching between tabs.

<Note>
  Currently supports **Claude Code**, **OpenAI Codex**, **Conductor**, **Cursor**, and **Devin**.
</Note>

## Enable org-wide

Org admins can go to **Code Review Settings** at the organization level and scroll to the **Default Coding Agents** section to turn on Fix with your Agent for the org. The badge shows up on every PR review. Users who click it without having set up their own agent get walked through setup.

## Setup

<Steps>
  <Step title="Install the Greptile Bridge">
    Click your profile icon in the upper-right corner of the page and select **Settings**, then go to **Review Settings**. Under the **Fix with your Agent** section, you'll see a prompt to link your profile and to install the bridge app. The bridge is a small CLI that sits on your machine and routes fix requests from GitHub to your local agent.

    <Frame>
      <img src="https://mintcdn.com/greptile/Q2FUE0mxC5y8-IPI/images/personal-settings-menu.png?fit=max&auto=format&n=Q2FUE0mxC5y8-IPI&q=85&s=0c5db490f6e0ef51bf499796567a9627" alt="Profile dropdown menu showing Settings option" width="688" height="412" data-path="images/personal-settings-menu.png" />
    </Frame>

    ```bash theme={}
    npm install -g greptile
    ```

    Once installed, the dashboard shows a green checkmark with **Greptile bridge app connected**.

    <Frame>
      <img src="https://mintcdn.com/greptile/NhiYzohHwN4UIy-y/images/fix-in-x-settings-full.png?fit=max&auto=format&n=NhiYzohHwN4UIy-y&q=85&s=1619a65a7b17e8990369e55a0b27556e" alt="Review Settings page showing Fix with your Agent section with bridge install instructions" width="3420" height="1898" data-path="images/fix-in-x-settings-full.png" />
    </Frame>
  </Step>

  <Step title="Choose your coding agents">
    In the same section, click the **Choose your coding agents** dropdown and select the agents you want to use. You can pick from **Claude Code**, **Codex**, **Conductor**, **Cursor**, and **Devin**.

    <Frame>
      <img src="https://mintcdn.com/greptile/NhiYzohHwN4UIy-y/images/fix-in-x-select-ide.png?fit=max&auto=format&n=NhiYzohHwN4UIy-y&q=85&s=2cd0062f32f76375540099eecbe8aa23" alt="Agent selection dropdown showing Claude Code, Codex, Conductor, Cursor, and Devin options" width="3420" height="1898" data-path="images/fix-in-x-select-ide.png" />
    </Frame>

    The button label on PR comments updates to reflect your choice. The preview on the right shows what the badge will look like on your review comments.

    <Frame>
      <img src="https://mintcdn.com/greptile/NhiYzohHwN4UIy-y/images/fix-in-x-connected.png?fit=max&auto=format&n=NhiYzohHwN4UIy-y&q=85&s=eeb520b29a997c1ad2bfdcaff06efaac" alt="Fix with your Agent section after connecting with agent selected" width="3420" height="1898" data-path="images/fix-in-x-connected.png" />
    </Frame>
  </Step>
</Steps>

## Using Fix with your Agent

Once setup is done, the flow looks like this:

<Steps>
  <Step title="Greptile reviews your PR">
    When you open or update a PR, Greptile posts its review. Each inline comment gets a **Fix with your Agent** button, and the review summary has a **Fix All** button at the bottom that sends every issue at once.

    <Frame>
      <img src="https://mintcdn.com/greptile/NbRtsLvWVCnO7zAK/images/fix-in-x-pr-summary.png?fit=max&auto=format&n=NbRtsLvWVCnO7zAK&q=85&s=8b2cfc23233015db04acc8a3ab2e0b31" alt="Greptile PR summary with Fix All button" width="1766" height="1454" data-path="images/fix-in-x-pr-summary.png" />
    </Frame>
  </Step>

  <Step title="Click the button">
    Your browser asks permission to open **Greptile Fix**. Click **Open "Greptile Fix"** to continue. You can select **Always open** to skip this prompt going forward.

    <Frame>
      <img src="https://mintcdn.com/greptile/NbRtsLvWVCnO7zAK/images/fix-in-x-open-dialog.png?fit=max&auto=format&n=NbRtsLvWVCnO7zAK&q=85&s=9894b69dacb0852e913a129fd4b16426" alt="Browser dialog asking to open Greptile Fix" width="2420" height="1442" data-path="images/fix-in-x-open-dialog.png" />
    </Frame>
  </Step>

  <Step title="Point it to your local repo">
    Greptile Fix asks you to select the local directory where your repo lives. This tells it where to open your agent.
  </Step>

  <Step title="Your agent fixes the code">
    Your coding agent fires up with a detailed prompt that includes every flagged issue: file paths, line numbers, the review comment, and suggested code changes. The agent works through them one at a time.

    <Frame>
      <img src="https://mintcdn.com/greptile/NbRtsLvWVCnO7zAK/images/fix-in-x-agent-prompt.png?fit=max&auto=format&n=NbRtsLvWVCnO7zAK&q=85&s=257d765bb3d0d472e496c7ada89585ee" alt="Claude Code receiving a detailed fix prompt from Greptile" width="1698" height="1692" data-path="images/fix-in-x-agent-prompt.png" />
    </Frame>

    Review the changes your agent proposes, then commit when you're happy with them.
  </Step>

  <Step title="Comments resolve automatically">
    When you push a commit that touches the flagged files, Greptile marks the corresponding review comments as addressed.
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Button doesn't appear on review comments">
    Make sure your GitHub account is linked in **Settings → User → Linked Accounts**, you've selected at least one coding agent, and the Greptile Bridge is installed (`npm list -g greptile`).
  </Accordion>

  <Accordion title="Browser dialog doesn't appear after clicking Fix">
    This usually means the bridge isn't installed or local network access isn't enabled. Reinstall with `npm install -g greptile` and check that local network permissions are granted in your dashboard settings.
  </Accordion>

  <Accordion title="Agent applies the wrong fix">
    The agent uses the review comment and suggested code as guidance, but it may interpret things differently depending on context. Always review the diff before committing.
  </Accordion>
</AccordionGroup>
