cubic.yaml lives in the root of your repository and becomes the source of truth for AI review behavior, ignore patterns, PR descriptions, and custom rules. Commit the file, open a PR, and cubic automatically applies those settings to every future review.
Public Beta: Repository-level cubic.yaml configuration is now available in public beta. We’re actively improving the feature based on feedback, so expect some changes as we refine the experience.
Configuration hierarchy
cubic.yaml configuration takes priority over the settings in the cubic UI whenever it parses correctly.
If cubic.yaml is missing or invalid, cubic uses your existing UI settings.
Partial YAML is supported. Any field you set in cubic.yaml overrides the UI. Anything you leave out keeps the UI value.
Validation errors do not block reviews. If the YAML has an issue, cubic keeps using the UI settings and shows the exact error on the AI review settings page so you can fix it on your next commit.
Exporting current UI settings
If you’ve already configured AI review settings in the UI, you can export them as acubic.yaml file instead of creating one manually.
- Go to the AI review settings page and select a repository.
-
In the tabs area at the top, you’ll see two buttons:
- Copy button: Copies the YAML configuration to your clipboard
- Download button: Downloads a
cubic.yamlfile with your current settings
- Paste the copied content or use the downloaded file as a starting point for your repository configuration.

Template cubic.yaml
Copy this template into the root of your repository to get started, then delete any sections you don’t need to customize.
- Create the file at the repo root.
- Commit it to a branch and open a PR.
- Watch the AI review settings page or PR timeline for validation errors or warnings.
IDE validation
Editors such as VS Code, Cursor, and JetBrains detect the# yaml-language-server: $schema=… directive at the top of cubic.yaml. Keep that line (or add it yourself) and the editor downloads https://cubic.dev/schema/cubic-repository-config.schema.json to validate the file structure and surface inline errors before you commit.
Configuration reference
| Key | Required | Purpose |
|---|---|---|
version | Yes | Schema version. Must be 1. |
reviews | No | Mirrors AI review settings and lets you define custom rules. |
pr_descriptions | No | Controls AI-authored PR summaries and optional instructions. |
issues | No | Enables the “Fix with cubic” issue buttons. |
unknown_top_level_key warning appears on the AI review settings page so you know it had no effect.
Reviews section
Core options
| Field | Description |
|---|---|
enabled | Master toggle for AI reviews on the repository. |
sensitivity | low, medium, or high—controls how picky the AI is about surfacing issues. |
incremental_commits | true re-runs reviews on every push; false limits reviews to the first commit. |
custom_instructions | Free-form guidance for the reviewer. Whitespace is trimmed; empty strings clear the value. |
Ignore filters
Ignore filters control when cubic skips running reviews. They map directly to the “Ignore patterns” controls in the AI review settings UI. All lists accept glob strings, and duplicates/blank entries are dropped automatically.| YAML path | Effect |
|---|---|
reviews.ignore.files | Skip matching files entirely (same syntax as .gitignore). |
reviews.ignore.head_branches | Ignore PRs based on their source branch. |
reviews.ignore.base_branches | Ignore PRs targeting specific base branches. |
reviews.ignore.pr_labels | Ignore PRs with one of these labels. |
reviews.ignore.pr_titles | Ignore PRs whose titles match the provided wildcard patterns. |
Custom rules
- Each rule needs a
name,description, and optionalinclude/excludeglob lists. - Order matters. When you exceed the installation’s rule limit, only the first N rules take effect.
- Identical patterns are deduplicated. If an exclude matches an include, the exclude wins.
- Rules defined in YAML appear in the dashboard as read-only “Managed by cubic.yaml” entries so teammates can still see them. Learn more about how rules behave in the UI on the Custom rules page.
PR descriptions
| Field | Description |
|---|---|
generate | Toggle AI-authored PR descriptions. |
instructions | Extra guidance for the summary. Only applied when generate is true; otherwise it is ignored with a warning. |
Issues
| Field | Description |
|---|---|
fix_with_cubic_buttons | Enable or disable AI-generated “Fix with cubic” calls-to-action inside the issue UI. |