Skip to content

Latest commit

 

History

History
85 lines (75 loc) · 2.16 KB

File metadata and controls

85 lines (75 loc) · 2.16 KB
title Configuration
description Configure clawpatch behavior, providers, and validation commands

Configuration

Config is loaded from:

  • --config <path>
  • $CLAWPATCH_CONFIG
  • $CLAWPATCH_STATE_DIR/config.json
  • clawpatch.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_DIR
  • CLAWPATCH_PROVIDER
  • CLAWPATCH_MODEL
  • CLAWPATCH_REASONING_EFFORT
  • CLAWPATCH_CLAUDE_AUTH_CONTEXT (isolated or host; default isolated)

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.