Skip to main content
Shrike reads a config from the repository root. It checks shrike.config.ts, shrike.config.js, shrike.config.mjs, then shrike.config.json, in that order. The first one found wins. shrike init creates shrike.config.ts; the contract is the JSON Schema at schemas/config.schema.json.
An empty config is valid. Defaults are applied by both the host and the engine, so you only need to set what you want to change.

Minimal valid config

The shrike init template starts from the same defaults and shows the commonly changed fields:
A shrike.config.json file with {} is also valid.

Top-level fields

Nested defaults

verification.tier selects the check set: fast is typecheck plus lint, standard adds test, and full adds build. mode: "worktree" applies edits in a branch worktree; in-place requires a clean tree unless allowDirty is set.

How the config is loaded

An executable config is evaluated in a child process with a bounded environment and a hard timeout (5 seconds by default, overridable with SHRIKE_CONFIG_TIMEOUT_MS). It must export an object as its default (or config) export. The CLI removes host-only fields — checks, pr, verification, build, cacheDir, schemaVersion, and ignoreDependencies — before sending the engine payload.

Validation errors

A malformed config exits 2. Common messages:
  • config must export an object: <path> — the evaluated config was not an object.
  • config evaluation failed: <path> — the config threw or could not be evaluated.
  • config evaluation timed out after <ms>ms: <path> — reduce work in the config or raise SHRIKE_CONFIG_TIMEOUT_MS.
  • could not load <path> — the file could not be read or parsed.
  • An engine config_error / invalid_* response — a field value violated the engine’s config contract.

Environment variables

CI, known agent-session variables, TERM=dumb, and terminals smaller than 40×10 also fall back to the plain report. See Troubleshooting for recovery steps, and Verified pruning for how checks and verification settings are used.