Skip to main content
The Greptile plugin for Claude Code gives you direct access to your code reviews from the terminal. Fetch PR comments, apply fixes, and search review feedback without leaving your workflow.
Prerequisite: Create a Greptile account at app.greptile.com and connect your repositories.

Installation

1

Get Your API Key

Go to app.greptile.com/settings/organization/api (Settings > Organization > API Keys) and copy your API key.
2

Set Environment Variable

Add your API key to your shell configuration:
3

Open Claude Code

Launch Claude Code in your terminal:
Claude Code welcome screen
4

Open Plugin Browser

Type /plugins to open the plugin discovery interface.
Claude Code plugin browser
5

Search for Greptile

Type greptile to search for the plugin.
Searching for Greptile plugin
6

Install

Select the Greptile plugin and choose your installation scope:
  • User scope — Available in all your Claude Code sessions
  • Project scope — Available to all collaborators on this repository
  • Local scope — Available only in this repository for you
Greptile plugin installation options

What You Can Do

Once installed, ask Claude Code to work with your Greptile reviews using natural language.

Fix All Comments on a PR

Claude will fetch unaddressed comments, analyze the suggested fixes, and apply them directly to your code.
Claude Code applying a fix from a Greptile comment

Claude applies a fix for invalid date handling based on Greptile's review comment

Analyze Security Concerns

Claude fetches the complete review and breaks down any security-related feedback.
Claude Code showing security analysis from Greptile review

Full review analysis showing security issues, bug issues, and priority recommendations

Summarize Blocking Issues

Get a quick overview of what needs attention across all your open pull requests.
Claude Code summarizing blocking issues across PRs

Summary of open PRs with blockers, organized by severity

Example Prompts

Pull Requests & Reviews

Working with Comments

Custom Context

Available Tools

The plugin uses Greptile’s MCP server, giving you access to 11 tools:
  • list_pull_requests — List PRs with filters (author, state, branch)
  • get_merge_request — Get full PR details including review analysis
  • list_merge_request_comments — Get all comments on a PR
View full parameters →
  • list_code_reviews — List reviews with status filters
  • get_code_review — Get detailed review information
  • trigger_code_review — Start a new review on a PR
View full parameters →
  • search_greptile_comments — Search all Greptile comments across repos
View full parameters →
  • list_custom_context — List org coding patterns
  • get_custom_context — Get pattern details
  • search_custom_context — Search patterns by content
  • create_custom_context — Create new patterns
View full parameters →

Learn More

Troubleshooting

Make sure you’re running Claude Code v2.1 or later. Check your version and update:
Verify your API key is set correctly:
If empty, add it to your shell config (~/.zshrc or ~/.bashrc) and restart your terminal.
Check that:
  • Your repositories are connected in app.greptile.com
  • You have open PRs with Greptile reviews
  • Your API key has access to those repositories

Next Steps

Agent Skills

Automate the full auto-fix loop with /check-pr and /greploop

Auto-Fix Workflow

Manual patterns for resolving review comments

Custom Context

Add your team’s coding standards for better reviews