Greptile learns your team’s coding standards by analyzing PR feedback. Use MCP tools to access these patterns during development.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.
What is Custom Context?
Custom context entries are coding patterns Greptile has learned from your team’s code reviews. They include:- CUSTOM_INSTRUCTION: Explicit coding rules (e.g., “Use async/await instead of Promise.then()”)
- PATTERN: Observed patterns from your codebase (e.g., “API errors should return standardized error objects”)
- Body: The actual instruction or pattern
- Scopes: Where it applies (specific files, directories, or universal)
- Status:
ACTIVE,INACTIVE, orSUGGESTED - Evidence: Linked comments that support the pattern
Common Workflows
List Your Team’s Patterns
Ask your AI assistant:list_custom_context to retrieve your patterns.
Onboard a New Developer
Apply Patterns During Development
When writing code, ask:Create New Patterns
From recent review feedback:create_custom_context:
Search for Specific Patterns
search_custom_context to find relevant patterns.
Understanding Scopes
Scopes define where patterns apply:| Scope Type | Example | Meaning |
|---|---|---|
| Universal | {"AND": []} | Applies everywhere |
| File pattern | {"AND": [{"operator": "MATCHES", "field": "filepath", "value": "**/*.ts"}]} | Applies to TypeScript files |
| Directory | {"AND": [{"operator": "MATCHES", "field": "filepath", "value": "src/api/**"}]} | Applies to API directory |
Example Prompts
Review code against patterns
Review code against patterns
Find patterns for specific area
Find patterns for specific area
Understand why a pattern exists
Understand why a pattern exists
Suggest new patterns from PR feedback
Suggest new patterns from PR feedback
Tools Used
| Tool | Purpose |
|---|---|
list_custom_context | List all patterns, optionally filter by type |
get_custom_context | Get details for a specific pattern |
search_custom_context | Search patterns by content |
create_custom_context | Create new patterns |
Next Steps
Auto-Fix Workflow
Apply fixes based on your team’s patterns
Reports & Analytics
Generate code review reports and analytics