jig

Configuration

Documentation · Project home

jig reads jig.config.json from the repository root. Unknown top-level keys are errors.

init, build, run, status, and github implement accept --config <path> to select a different file: jig run request.md --config jig.config.cheap.json. Relative paths resolve from the repository root. A named file must exist. Use the same file when resuming.

Example config

This example uses Claude for all four roles. Set verifyCommand to the checks your project actually runs. jig warns when the reviewer and implementer use the same model, or when no verification command is configured.

{
  "planner": { "provider": "claude", "model": "opus" },
  "implementer": { "provider": "claude", "model": "sonnet" },
  "reviewer": { "provider": "claude", "model": "opus" },
  "describer": { "provider": "claude", "model": "haiku" },
  "setupCommand": "npm ci",
  "verifyCommand": "npm test",
  "designGate": "checkpoint",
  "mergeMode": "manual"
}

Agent roles

All four roles are required to run or build. Each specifies a provider and, where required, a model:

Role Purpose
planner Plans the change, writes design documents, and defines slices.
implementer Implements slices and responds to review feedback.
reviewer Reviews the design, individual slices, and the whole change.
describer Writes the pull request description.

Providers are claude, opencode, and codex. Claude defaults to model opus when omitted. OpenCode requires a provider/model model name; Codex requires an explicit model. See authentication for their credentials.

Use agent presets to replace one or more roles without changing other settings. The agents setting below pins CLI versions, not models.

Verification and run policy

Key Default Behavior
verifyCommand Not set Runs the configured checks in the sandbox before review. Without it, slices can be approved on the reviewer’s judgment alone.
mergeMode "manual" manual waits for you to merge; auto merges the run branch. Does not apply to --no-merge or jig github implement runs.
designGate "auto" checkpoint pauses after design review and slicing, before implementation.
reviewCycleCap 3 Positive integer; ordinary rejections before a slice is stuck.
commitSigning "skip" repo re-signs the run branch during automatic merging.

See merging and signing for Git requirements.

Sandbox and agent CLIs

Key Default Behavior
setupCommand Not set Runs once in each new sandbox before any agent, for example npm ci.
setupTimeoutSeconds 900 Positive integer; setup time limit in seconds.
sandboxImage Not set Uses the supplied image as-is instead of building one.
agents {} Pins exact CLI versions by provider, for example { "claude": "2.1.312" }.
agentUpdates "auto" auto rebuilds for new unpinned releases; warn only reports them; off skips checks.
agentIdleTimeoutSeconds 600 Positive integer; stops an agent after this many seconds without output.

jig build --pull-agents refreshes unpinned CLIs even when updates are off. See images and setup for the container lifecycle.

State storage

runStores defaults to ["local"] and must contain at least one entry. Add "git-remote" to push state and the run branch to origin, or supply a path to a custom store module. See saved state and remote resume.