.crysk/config.json
Every setting Crysk reads from its config files, with defaults and which file may set it.
Crysk reads two JSON files. Both are optional, and an unknown key is an error.
| File | Whose | Committed |
|---|---|---|
<repo>/.crysk/config.json |
The team’s: the repo layer. | Yes |
~/.crysk/config.json |
Yours, for every repo on your machine: the global layer. | No |
When both set a key, the repo layer wins, except for the capped keys below, where the lower value wins so a committed file can never raise your spend. In CI the global layer is built on the runner from the action’s models, credentials and profile inputs; see the action reference.
Run npx -y crysk config to see every key with its effective value and the layer it came from.
Settings
Section titled “Settings”The Layer column says where the key may be set: repo, global, or both.
| Key | Type | Default | Layer | Effect |
|---|---|---|---|---|
default_base |
string | origin/HEAD, then main |
repo | Base branch for local reviews when --base is not given. |
suspicion_priors |
[{path, weight, reason}] |
[] |
repo | Hints about known hotspots, passed to the reviewers. |
agents_dir |
string | bundled prompts | both | Directory with the reviewer prompt files. The repo value wins. |
post_min_severity |
suggestion | warning | blocking |
suggestion |
both | Lowest finding posted on a pull request. warning hides advisory suggestions, blocking hides all advisory findings. A blocking finding is always posted. The repo value wins. |
models |
object | the profile’s models | global | Models per role, one to three per role, tried in order. |
profile |
claude | openai |
claude |
global | Ready-made models for every role. models wins role by role. |
credentials |
{"claude": [...]} |
["subscription", "api_key"] |
global | Order in which Claude credentials are tried. |
summary.enabled |
boolean | true |
both | Whether the summary comment is written. The repo can only turn it off. |
materiality_gate |
boolean | false |
both | Adds a judge that posts blocking findings as advisory when they would not matter in normal use. Security, credential and data-loss findings are never demoted. Costs one extra call per blocking finding. On only when both layers allow it. |
post |
boolean | false |
both | Whether local reviews publish to the pull request by default. On only when both layers allow it. |
max_verification_steps |
integer, 0 or more | 8 |
both | Cap on re-review verification steps. 0 pauses verification. The lower value wins. |
max_concurrent_steps |
integer, 1 or more | unlimited | both | Cap on review steps running at once. Set it below your provider’s concurrency limit to avoid HTTP 429. The lower value wins. |
max_changed_lines |
integer, 0 or more | 4000 locally |
both | Skips the review above this many changed lines. 0 turns it off, but a limit set in the other layer still applies. The lower value wins. |
max_changed_files |
integer, 0 or more | 150 locally |
both | Same, for changed files. |
In CI, when neither the action input nor the config sets a size limit, a Claude subscription route has no limit and a pay-per-token route uses 4000 lines and 50 files.
A repo file that sets models, credentials or profile is refused: they choose the model and the bill, so only you set them. A global file that sets a repo-only key is refused too.
CI settings
Section titled “CI settings”All ci_* keys are repo-only. They control when Crysk reviews again on a push to an open pull request. npx -y crysk setup --ci writes them from the level you choose; see re-review levels.
| Key | Type | Default | Effect |
|---|---|---|---|
ci_review_policy |
once_per_pr | thresholded | risk_aware | every_push | manual_only |
risk_aware |
When a push gets an automatic review. |
ci_max_attempts |
integer, 1 or more | 2 |
Automatic review attempts per pull request. |
ci_rereview_min_score |
integer, 0 or more | 4 |
Score of the previous findings that triggers a re-review (thresholded, risk_aware). |
ci_blocking_weight |
integer, 1 or more | 2 |
Points per blocking finding in that score. |
ci_advisory_weight |
integer, 1 or more | 1 |
Points per advisory finding in that score. |
ci_trusted_actors |
string[] | [] |
GitHub logins whose Crysk comments count, besides the workflow’s own actor. |
ci_admission_observe_only |
boolean | false |
Logs what the policy would skip but reviews every push anyway. Use it to try a policy. |
ci_max_reviews is the old name of ci_max_attempts; use ci_max_attempts.
Example
Section titled “Example”{ "default_base": "main", "post_min_severity": "warning", "max_changed_lines": 3000, "ci_review_policy": "risk_aware", "ci_max_attempts": 2}scout and parity_trigger_paths are ignored with a warning, and routing is refused: set models instead.