Repository configuration
Lookup order from the review directory toward the Git root: .codejackrabbit.yaml, .codejackrabbit.yml, codejackrabbit.yaml, codejackrabbit.yml, .codejackrabbit.json. Create with codejackrabbit config, inspect with config inspect, validate with config validate, and merge proposals with config apply.
language: en-US
toneInstructions: ""
earlyAccess: false
enableFreeTier: true
inheritance: false
reviews:
profile: chill
requestChangesWorkflow: false
allowAuthorApproval: true
highLevelSummary: true
reviewStatus: true
commitStatus: true
failCommitStatus: false
changedFilesSummary: true
sequenceDiagrams: false
estimateEffort: true
failOn: none
pathFilters: []
ignorePaths:
- "**/node_modules/**"
- "**/dist/**"
- "**/*.min.js"
pathInstructions: []
autoReview:
enabled: true
drafts: false
labels: []
baseBranches: []
autoIncremental: true
finishingTouches:
docstrings:
enabled: true
unitTests:
enabled: true
autofix:
enabled: true
preMergeChecks:
docstrings:
mode: warning
threshold: 80
title:
mode: warning
description:
mode: warning
customChecks: []
tools: {}
chat:
autoReply: false
knowledgeBase:
optOut: false
codeGuidelines:
enabled: true
filePatterns: []
learnings:
scope: auto
tools:
staticAnalysis: true
secrets: true
llm: false
externalTools: false
Profiles are quiet, chill, assertive and default (an alias for chill). Quiet shows only the most important feedback and moves minor findings into a grouped count. Chill is balanced and is the default. Assertive is the most comprehensive: it also enables stricter maintainability checks and asks the model pass for concrete minor suggestions when they are grounded in the change.
pathInstructions accepts objects or "glob => instructions" entries. They apply to matching paths during review. pathFilters is an additive alias for ignored paths. Supported glob tokens are **, * and ?.
Pre-merge check modes are off, warning and error. A custom check with a pattern is evaluated mechanically. A custom check without a pattern intentionally fails with an explanation; the engine never signs off a judgment it cannot make. Set it to off if it is documentation only.
tools.llm: true opts the repository in to the LLM pass. The LLM server itself (provider, baseUrl, model) is chosen only by trusted sources: the environment, CLI flags or the user config file; the same keys in repository configuration are ignored.
Trust rules for repository configuration:
- The GitHub Action and forge webhooks read
.codejackrabbit.yamlfrom the pull request base branch (cjr review --config-ref <ref>), so a pull request cannot reconfigure its own review. - Code guideline file patterns only load git-tracked regular files inside the repository: absolute paths,
..and symlinks are refused. Changed files that are symlinks are reviewed without their target content. - Inline
cjr-ignore/codejackrabbit-ignorecomments suppress a finding only whenreviews.inlineSuppressions: trueis set in the base-branch (maintainer) configuration, read with--config-ref(as the GitHub Action does) or by the forge integrations, or in the user configuration. A working-tree or pull request configuration cannot enable them; otherwise the finding stays and notes that the comment was ignored. - Diffs, file contents and guidelines are passed to the model inside delimited untrusted blocks, and model findings must name a reviewed file.
tools.externalToolsis ignored in repository configuration: linters run repository code by design (eslint.config.js,build.rs,conftest.py), so only the user or operator configuration can enable them. Tools run without a shell and file names are never read as options.- Custom rule, pre-merge check, labeling and triage patterns are regular expressions with limits: at most 512 characters, flags
i,m,s,uonly, no backreferences and no nested unbounded quantifiers such as(a+)+. Each match runs under a time budget; a pattern that is refused or runs out of time is skipped. Rule directories must be inside the repository.
External tool configuration lives per tool under reviews.tools.<id> with enabled and configFile. It has effect only when tools.externalTools is true and the executable is installed.
config apply merges validated sections over the current file and renders YAML. It requires the current SHA-256 in --base. The YAML subset supports nested maps, scalars, block lists, inline lists and lists of maps. Use JSON for constructs outside that subset.