For AI agents: the complete documentation index is available at https://jig.md/llms.txt, the full documentation bundle is available at https://jig.md/llms-full.txt, and this page is available as Markdown at https://jig.md/reference/configuration.md.
DocumentationGuidePrerelease

#Settings and configuration

View Markdown

Use this reference when you need to change an operating preference. The defaults work for the first Flow. Start with the setting that matches your task.

#Where settings belong

What you want to configureWhere to set it
Startup verification--verification on run, review, or inspect. JIG_VERIFICATION for a shell default
Terminal appearanceJIG_THEME, NO_COLOR, and your terminal environment
Agent client, model, and credentialsInline policy in an ordinary Agent Binding and operator credentials. See Agent settings
ACP client for one reviewed proposalreview --agent codex|claude. Source stays unchanged and later reviews start from source again
Flows, Bindings, and application settingsjig.ts. See Project settings
Dependency preparation count per reviewlimits.dependencies.maxPreparations in jig.ts, or JIG_LIMITS_DEPENDENCIES_MAX_PREPARATIONS. See Limits and defaults
HTTPS proxy for dependency preparationOperator environment variable JIG_DEPENDENCY_HTTPS_PROXY. See Dependency preparation proxy
Prepared runtime dependency capacity per packagelimits.dependencies in jig.ts, or JIG_LIMITS_DEPENDENCIES_MAX_PREPARED_BYTES and JIG_LIMITS_DEPENDENCIES_MAX_PREPARED_FILES. See Limits and defaults
Application starting point and default Run argumentsentrypoint in jig.ts. See Project entrypoint
Input, deadline, and output for one RunCommand arguments. See Per-command options
Bubblewrap executableAbsolute JIG_BWRAP_PATH. See Host configuration

Operator preferences are separate from reviewed project policy. Jig does not automatically load project .env files. Export environment variables in your shell or supply them through your process launcher.

The limits reference lists supported overrides, fixed constraints, defaults, units, and policy owners. Dependency preparation resolves each field from its environment variable, then jig.ts, then its built-in default. Invalid explicit values fail instead of falling back.

#Project entrypoint

Give your application a starting point in jig.ts. Copy the arguments after jig run from a working command:

entrypoint: "binding:factory --input @batch.json --attach source=fixtures --timeout 8m",

A target alone, such as entrypoint: "binding:factory", is also valid. After approval through jig review, run the application with jig run. Supply options to replace its defaults:

jig run --input @another-batch.json --out another-result

An explicit target, such as jig run binding:agent, uses none of the entrypoint defaults.

Without an entrypoint, terminals offer a numbered chooser of ready approved targets. Press Enter to cancel. Scripts must supply an exact target. Both paths run the approved revision, not unreviewed edits.

Paths in the declaration are project-relative. Input files and source trees are captured afresh for each invocation. Changing a job file does not require a new review. Changing the entrypoint itself does.

Use quotes around arguments containing spaces. Jig parses arguments without shell execution or variable expansion. jig inspect shows the approved entrypoint.

When the selected target declares writable deliverables and you omit --out, Jig chooses a fresh packet directory in operating-system temporary storage. Jig reports the destination on stderr. The operating system may clear that storage. Use --out DIR to choose a retained location. This argument replaces any declared output default. The directory must not already exist and needs an existing supported parent outside input roots.

Jig never replaces an earlier result. Result-only targets stay stdout-only unless you supply --out to save their execution record. See the complete argument and override rules.

#Terminal appearance

SettingValues and behavior
JIG_THEMEone-dark (default), one-light, or macchiato. Unknown values use One Dark
NO_COLORAny present value, including an empty value, disables colors and automatic inline animation. TUI keeps keyboard navigation and screen controls without color
TERM=dumbSelects plain output without animation
COLORTERMtruecolor or 24bit enables truecolor accents. Otherwise Jig uses 256-color accents when TERM contains 256color, or basic terminal colors

Choose the palette that fits your terminal background:

export JIG_THEME=one-light

Themes color structured terminal output without changing its values. Plain output ignores the theme. Redirected streams contain no terminal colors or animation. Use --json on jig run when you need machine-readable output in a terminal. See the CLI experience contract.

Structured review, inspection and Run output highlights keys, strings, numbers, and literals. The shell setting applies before a project loads. Run JSON/NDJSON is never highlighted.

Palettes use Atom One Dark, Atom One Light, and Catppuccin Macchiato foreground accents.

#Agent settings

Use Choose an Agent to configure API access or a native client. That guide owns dependency selection, Bindings, grants, and credentials. Credentials stay in the operator environment, outside Flow input and package source. For client-check failures, use troubleshooting.

Use client switching for permanent source changes or a review-only --agent proposal. Exporting credentials alone does not select a provider.

#Project settings

jig.ts declares the project’s Flows and Bindings. A Binding configures an invocation with application settings, selected invocation slots, and any supported resource grants. These values are reviewed before they can execute. They do not select the operator’s credentials, terminal theme, or startup verification preference.

See project authoring for the supported fields and examples, and Limits and defaults for enforced limits and overrides.

#Reading review changes

Review shows a field diff: - is the previous or removed value, and + is its proposed replacement or addition. Nested headings keep each changed field in context. Unchanged fields are omitted. jig review --details retains the complete previous and proposed public policy.

A target can need renewed approval when its retained execution identity or a selected child changes even though its public fields are identical. Review explains this instead of repeating identical blocks. Private execution identities remain private. Object key ordering alone is ignored. Array order is significant.

#Per-command options

OptionCommandPurpose
--input JSON or --input @FILErunSupply JSON input. Omitted input is {}
--timeout 2mrunSet the Run deadline within the supported limits
--receive CHANNELrunReceive a declared output channel. See live progress
--display MODErunSelect auto (TUI in suitable interactive terminals, ordinary output otherwise), plain, tui, or web. Operator-only
--jsonrunEmit machine-readable JSON or NDJSON even in a terminal. Redirected stdout already uses this format
--detailsreviewInclude unchanged policy and retained observed setup facts as context. Performs no additional checks
--agent codex|claudereviewPropose only the client field in every selected ACP policy before qualification. Source unchanged, no remembered preference
--yesreviewApprove the displayed revision without an interactive prompt. Does not grant resource-authority changes or resolution-network permission
--allow-authority-changesreviewExplicitly approve changed resource delegation alongside the revision
--generate-contractsreviewCompile managed TypeSpec contracts before separate execution approval
--allow-resolution-networkreviewPermit dependency-selected network requests before graph validation for this review only. Grants no Run network access

Run jig <command> --help for the complete arguments for a command. See dependency review for resolution effects and retained preparation, and results for output handling.

--allow-resolution-network produces one dependency preparation warning for the entire review. Per-package progress identifies the package being prepared. This permission gives Runs no network access.

#Shell completion

Load completion for your shell:

# Bash
source <(jig completion bash)
# Zsh (after compinit)
source <(jig completion zsh)
# Fish
jig completion fish | source

Put the matching command in your shell startup file to keep it enabled. Target suggestions read the current directory's last approval, never execute jig.ts, install dependencies, or contact an Agent. Review newly added targets before they appear. Unsupported or unreadable approval produces no suggestions.

#Startup verification

Jig defaults to cached verification to avoid repeatedly hashing large installed tools. It reuses hashes while file identity and metadata match, and rehashes when they change. Use --verification cached|strict|fast to choose the policy for a command.

ModeInstallation checkTradeoff
cached (default)Reuse hashes while file identity, permissions, size and modification/change times matchDetects ordinary tool updates. Relies on filesystem metadata between hashes
strictHash current tool bytes at every verification pointStronger byte verification, with more startup work
fastReuse stored hashes without checking freshnessChanged tool bytes at the same path can go undetected

Cached verification is the default. Choose another mode only when its tradeoff fits your environment:

jig run flow:flows/hello --input '"Ada"' --verification fast
jig review --verification strict
jig inspect --verification cached

The argument takes precedence over JIG_VERIFICATION. For a persistent preference, set JIG_VERIFICATION to cached, strict, or fast in your shell or CI environment. When neither is supplied, Jig uses cached. Missing, invalid or repeated --verification values are usage errors.

Fast mode suits operators who prioritize startup performance and trust their installation to remain suitable. All modes hash files on a cache miss, so a tool's first use can take longer. Most savings come from avoiding repeated hashing. Fast's extra benefit over cached depends on the installation and host.

The setting applies to review, Run and approved-target inspection. Saved-result inspection (jig inspect --result <directory>) reads recorded evidence without execution-environment verification. It is an operator preference, separate from project configuration. Flow approval, retained package verification, sandbox requirements, permissions, resource limits, cancellation and cleanup still apply. Tool and runtime compromise remains outside Jig's threat model.

The private installation cache lives at $XDG_CACHE_HOME/jig/installation-verification, or $HOME/.cache/jig/installation-verification by default. It contains tool paths, metadata and hashes, never credentials or project approvals. You can remove this directory to force fresh hashes next time. Unsafe or unusable caches fall back to full hashing. Strict bypasses the cache entirely. Inspection never writes it.

See the exact policy for the guarantees and limits.

#Jig version requirements

Projects can name the exact Jig version they were tested with in package.json under engines.jig. Engine metadata records the host requirement without adding Jig to the project dependency graph. Generated projects and repository examples supply this metadata. Bare projects can omit it.

The version check works offline and changes no files. A newer release’s existence alone does not establish incompatibility.

For version or build errors, follow version troubleshooting. See the exact project requirement.

#Host configuration

The supported-host requirements describe the execution prerequisites. Set JIG_BWRAP_PATH to an absolute path when Bubblewrap is outside Jig’s normal host-tool locations. Finding bwrap through your shell's PATH alone does not make it discoverable by Jig. For a shell-installed executable, first check its path:

command -v bwrap

If this reports an absolute executable path, export that path before review:

export JIG_BWRAP_PATH="$(command -v bwrap)"
jig review --allow-resolution-network

Keep the setting in the environment used for later Jig commands. An invalid explicit selection fails rather than falling back. This setting selects Jig’s outer containment tool, not a native Agent’s nested sandbox. It does not supply missing namespace or cgroup support.

XDG_CACHE_HOME relocates the installation verification cache described above. The cache contains no project approval or credentials.