Repository configuration
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 agents. Commit the file, open a PR, and cubic automatically applies those settings to every future review.
Organization configuration
You can also manage cubic settings for your entire organization from a single repository. Create a repository namedcubic-config in your organization and add a cubic.yaml file to the root directory. cubic automatically applies these settings to any repository that doesn’t have its own configuration.
Organization configuration uses the same schema as repository configuration, including auto-approve settings such as reviews.auto_approve_behavior, reviews.auto_approve, and reviews.auto_approve_custom_prompt.
Individual repositories can still override organization settings by adding their own cubic.yaml file. The cubic-config repository itself is always treated as organization configuration. Its cubic.yaml is never interpreted as a repo-level override.
Branches
cubic reads configuration only from the default branch:- For repository configuration, this is the default branch of that repository.
- For organization configuration, this is the default branch of the
cubic-configrepository.
Configuration hierarchy
cubic checks for configuration in this priority order:UI settings are stored per-repository. The “All repositories” option in the dashboard applies changes to all existing repositories at once, but new repositories start with built-in defaults. Use organization
cubic.yaml to ensure consistent defaults across all repositories, including new ones.Merging behavior
Partial YAML is supported at every level. Any field you set overrides lower-priority sources. Anything you leave out falls through to the next level. When both repository and organization YAML exist, cubic merges them:- The organization config acts as a base
- Repository settings override organization settings field-by-field
- Settings not defined in the repository YAML inherit from organization YAML
- Custom agents are additive: repository agents come first, then organization agents fill remaining slots
Example: Merging organization and repository config
Example: Merging organization and repository config
Organization config (Repository config (Effective config (what cubic uses):
cubic-config/cubic.yaml):my-repo/cubic.yaml):enabled: true— inherited from organizationsensitivity: low— overridden by repositorycustom_instructions: "Outline any project-specific guidance..."— inherited from organization- Custom agents: “API validation” and “React style guide” (from repo), then “No console logs” (from organization)
Error handling
Validation errors do not block reviews. If the YAML has an issue, cubic falls back to UI settings and shows the exact error on the AI review settings page so you can fix it on your next commit. Note that an invalid repositorycubic.yaml falls back to UI settings, not to organization configuration—this keeps failure modes predictable.
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
If you add a top-level key cubic doesn’t recognize yet, the value is ignored and an
unknown_top_level_key warning appears on the AI review settings page so you know it had no effect.
Reviews section
Core options
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.Common ignore recipes
Use labels or branch names to control when cubic jumps into a review.Skip review with a label
The most common way to skip a review is by adding a specific label to your PR.Skip entire categories of labels
You can use wildcards to ignore any label matching a pattern.Custom agents
- Each agent needs a
nameplus inlinedescriptiontext, an orderedfile_pathslist, or both. Optionalinclude/excludeglob lists apply to both modes. - Order matters. When you exceed the installation’s rule limit, only the first N agents take effect.
- Identical patterns are deduplicated. If an exclude matches an include, the exclude wins.
- Agents 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 agents behave in the UI on the Custom agents page.
- File-backed agents use repo-relative paths only. Absolute paths, globs, parent-directory traversal, directories, binary files, and unreadable files are rejected or surfaced as warnings.
- The description and file contents are concatenated in the order listed. cubic uses only the first 10,000 characters per custom agent; characters after that limit are not included in the review prompt.
- YAML and Markdown files referenced by file-backed agents are treated as plain text, not parsed as structured rule definitions.
- In organization config,
file_pathsentries are relative to each target repository, not to thecubic-configrepository. The files must exist in every repository where the org-level agent should apply.
PR descriptions
Some installations disable PR descriptions globally for compliance reasons. If that applies to you, the UI will show a warning even if the YAML enables the feature.