#Settings and configuration
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
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:
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:
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
Choose the palette that fits your terminal background:
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
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:
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.
Cached verification is the default. Choose another mode only when its tradeoff fits your environment:
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:
If this reports an absolute executable path, export that path before review:
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.