| title | Configuration |
|---|---|
| description | Configure clawpatch behavior, providers, and validation commands |
Config is loaded from:
--config <path>$CLAWPATCH_CONFIG$CLAWPATCH_STATE_DIR/config.jsonclawpatch.config.json.clawpatch/config.json- built-in defaults
Default shape:
{
"schemaVersion": 1,
"stateDir": ".clawpatch",
"include": ["**/*"],
"exclude": [
"node_modules/**",
"dist/**",
"build/**",
"target/**",
".build/**",
".git/**",
".clawpatch/**"
],
"provider": {
"name": "codex",
"model": null,
"reasoningEffort": null,
"codexConfig": {}
},
"commands": {
"typecheck": null,
"lint": null,
"format": null,
"test": null
},
"review": {
"maxContextFiles": 24,
"maxOwnedFiles": 12,
"maxFindingsPerFeature": 10,
"minConfidenceToFix": "medium"
},
"git": {
"requireCleanWorktreeForFix": true,
"commit": false,
"openPr": false
},
"registryVerifier": {
"enabled": false
}
}registryVerifier.enabled controls the npm-registry post-validator that
drops direct pkg@semver public-npm publication claims refuted by
the public npm registry. It is disabled by default because lookups disclose
package coordinates; set it to true only when that network access is acceptable. See
Code review > Registry verifier for
the full verdict matrix.
Environment overrides:
CLAWPATCH_STATE_DIRCLAWPATCH_PROVIDERCLAWPATCH_MODELCLAWPATCH_REASONING_EFFORTCLAWPATCH_CLAUDE_AUTH_CONTEXT(isolatedorhost; defaultisolated)
provider.codexConfig passes primitive values to Codex as -c key=value.
Only config loaded by --config or CLAWPATCH_CONFIG may set non-empty
Codex passthrough config. Auto-discovered repository and state config files
are rejected if they set it, because Codex config can change provider routing
and credential lookup. Keep secrets out of config files; use Codex provider
settings such as env_key to read an already-exported environment variable.
git.commit and git.openPr are reserved config fields. The current CLI does
not commit or open PRs.