Skip to main content
Use Greptile MCP tools to fetch unaddressed comments and apply fixes directly from your IDE.
Prerequisite: Configure MCP in your IDE before following these workflows.

Your First Auto-Fix

1

Fetch unaddressed comments

Ask your AI assistant:
List unaddressed PR comments
2

Review the response

The assistant returns comments with file paths, line numbers, and severity.
Unaddressed PR comments
3

Apply fixes

Ask the assistant to fix specific issues:
Wrap the PDF generation in a try-catch block
Code changes for review
4

Review and accept

Review the changes, then click Keep All to apply.

Use Cases

Fix All Style Issues

Show me all style-related Greptile comments and fix them automatically
Style fixes are safe to auto-apply since they don’t change logic.

Fix All Naming Issues

Find all naming convention issues in Greptile comments and fix them

Fix Import/Export Issues

Fix all import ordering and unused import issues flagged by Greptile

Understanding Comment Fields

Each Greptile comment includes:
FieldDescription
addressedWhether the comment has been fixed
confidenceScoreGreptile’s confidence (1-5)
typelogic, security, performance, style, best-practice
filePathFile where issue occurs
lineStart, lineEndLine range
linkedMemoryRelated custom context pattern

Confidence Score Guide

ScoreMeaningRecommended Action
5/5Clear issue, high confidenceSafe to auto-fix
4/5High confidence, minor uncertaintySafe to auto-fix
3/5Moderate confidenceReview before fixing
2/5Lower confidenceManual verification needed
1/5Low confidence, uncertainManual review required

What to Auto-Fix vs Manual Review

  • Code style and formatting
  • Simple typo corrections
  • Naming convention fixes
  • Basic null checks
  • Import ordering
  • Missing semicolons/brackets
  • Whitespace issues
  • Comments with confidence 4-5
Always review AI-generated fixes before applying, especially for security and logic issues.

Advanced Workflows

Before committing, ensure no issues remain:
Are there any unaddressed Greptile comments in my staged files?
If so, which ones are safe to fix automatically?
Understand why before changing:
Explain why Greptile flagged this issue. 
Show the linked coding pattern and decide if the fix is appropriate.
Ensure fixes don’t break anything:
Fix this Greptile comment and show me what tests I should run to verify the change.
Turn recurring fixes into patterns:
I've fixed this type of issue multiple times. 
Create a custom context rule to catch it in future reviews.
When you have many comments:
Categorize all unaddressed comments into:
1. Auto-fixable (do these now)
2. Need review (show me these)
3. Won't fix (explain why these might be false positives)

Next Steps