Configuration
Add thepatternRepositories array to your greptile.json:
greptile.json
Requirements:
- Use
org/repoformat for GitHub orgroup/projectfor GitLab - Repositories must be accessible by your GitHub/GitLab integration
- Pattern repos are indexed automatically
Examples
- Frontend ↔ Backend
Frontend’s Greptile can now check API endpoint consistency, warn about deprecated endpoints, and validate request/response types.
greptile.json:Troubleshooting
Pattern repository not found
Pattern repository not found
Symptoms:
- “Repository not found” errors in dashboard
- Pattern context not appearing in reviews
- Verify repository name format:
org/repoorgroup/project - Check GitHub/GitLab access permissions
- Confirm repository exists and isn’t private without access
- Allow time for initial indexing
No context from pattern repositories
No context from pattern repositories
Symptoms:
- Pattern repos indexed but not referenced in reviews
- Expected patterns not being suggested
- Context only applied when relevant to PR changes
- Pattern repo may not contain applicable patterns for the change
- Indexing may still be in progress
- Check repository index status in dashboard
- Add explicit references in PR description Example: “relates to auth patterns in acme/shared-utils”
- Verify pattern repo contains relevant code/docs
Access denied errors
Access denied errors
Symptoms:Solutions:
- “Access denied” or permission errors
- Pattern repos not indexing
- Verify your GitHub/GitLab integration has access to the pattern repository
- For private repos, ensure Greptile app installation includes the repository
- Check organization permissions if using GitHub Apps
What’s Next
- Custom Context → for repository-specific rules
- greptile.json Reference → for complete configuration options