.greptile/ folder. For how cascading works and monorepo examples, see .greptile/ Configuration.
config.json
Your review settings and structured rules. All fields are optional — only include what you want to configure.Review Settings
Filters
Control which PRs get reviewed.Glob patterns in filters
Label, author, and branch fields accept globs alongside literals. Matching is case-insensitive.*— any chars in a segment**— any chars across segments?— one char{a,b}—aorb[,], and leading!are literal.dependabot[bot]works as-is. Negation is not supported.
Behavior
Output Sections
Each section controls a part of the review output. All sub-fields are optional booleans.
Each accepts an object with these sub-fields:
Cross-Repository Context
Configure related repositories Greptile should read during reviews (e.g., shared libraries or SDKs) under thecontext namespace.
Example:
Instructions
Rules
Structured rules let you define what the reviewer should check for, with optional scoping and severity.Rule Schema
Each entry in therules array:
Complete Example
.greptile/config.json
id so it can be disabled by child configs. The second rule has no id — it applies everywhere and can’t be selectively turned off.
rules.md
Plain markdown passed to the reviewer as context. The entire file is scoped to the directory containing the.greptile/ folder — it applies to all files reviewed within that directory tree.
There is no special syntax or parsing. Write standard markdown with headings, lists, code blocks, and any other formatting that helps communicate your rules clearly.
Example
.greptile/rules.md
rules.md vs config.json rules
Both define review rules. The difference is structure and granularity:
You can use both in the same
.greptile/ folder. They’re additive — the reviewer sees rules from both sources.
files.json
Points the reviewer to existing files in your repository that it should read for context — database schemas, API specs, architecture docs, or anything that helps the reviewer understand your codebase.Schema
Example
.greptile/files.json
scope are included in every review within the directory tree. Files with a scope are only included when the file being reviewed matches one of the glob patterns.
File references are accumulated from all parent configs — a child config doesn’t replace the parent’s file list, it adds to it.
What’s Next
.greptile/ Configuration
How cascading works, precedence model, monorepo examples
Custom Standards
Enforce coding standards via dashboard or .greptile/