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/limits.md.
DocumentationGuidePrerelease

#Limits and defaults

View Markdown

Use this reference when a review or Run reaches a resource limit. Find the affected task, then use its supported control. Values apply independently unless the table describes a shared budget. A larger package allowance does not increase a Run's memory, deadline, or retained storage.

MiB means 1,048,576 bytes. File counts include alias records where dependency preparation records them. The tables are checked against their implementation owners during documentation checks. Exact admission and execution requirements remain in project policy.

#Override dependency preparation limits

PACKAGE_BUN_PROJECT_COUNT_LIMIT means review reached its allowance for distinct dependency preparations. For a larger Flow library, increase only the count in jig.ts:

import { defineJig, discover } from '@jigging/jig'

export default defineJig({
  flows: discover('./flows'),
  bindings: discover('./bindings'),
  limits: {
    dependencies: {
      maxPreparations: 32,
    },
  },
})

Or select the allowance for one review through the operator environment:

JIG_LIMITS_DEPENDENCIES_MAX_PREPARATIONS=32 jig review

The count includes Flow dependencies, declared npm Flow adoption, and evaluation recipes that require preparation. Each distinct captured preparation input counts once during that review. Reusing admitted dependencies consumes no preparation count. The count can therefore differ from the number of Flows.

The diagnostic reports the first rejected count as a lower bound, the effective limit, and its source. Review stops at that boundary, so the diagnostic does not establish the library's total preparation count. The aggregate content and deadline limits below still apply when you increase maxPreparations.

PACKAGE_BUN_OUTPUT_LIMIT means one package's prepared runtime dependency tree exceeded its byte or file allowance. Check its production dependencies first. When the complete tree is necessary, set the affected output allowance under limits.dependencies:

limits: {
  dependencies: {
    maxPreparedBytes: 64 * 1024 * 1024,
    maxPreparedFiles: 8192,
  },
},

The corresponding environment variables accept decimal integers in bytes or file counts:

JIG_LIMITS_DEPENDENCIES_MAX_PREPARED_BYTES=67108864 \
JIG_LIMITS_DEPENDENCIES_MAX_PREPARED_FILES=8192 \
jig review

Each field resolves independently: environment variable → jig.ts → built-in default. An invalid explicit value fails, including an empty environment variable. Jig does not load project .env files automatically.

All three fields must be positive safe integers within the supported maxima below. The byte and file combination must also fit the canonical artifact capacity, including maximum-length paths and archive metadata. Reduce either output allowance if that combination exceeds capacity. File content alone does not measure archive size.

When preparation exceeds an allowance, its diagnostic reports the effective limit and source. Project limits form part of the reviewed configuration. An environment override applies to that review's preparation. Later Runs consume the retained bytes without preparing dependencies again. These controls grant no network access or additional Run powers. Fresh resolution still requires --allow-resolution-network.

#Choose the appropriate control

ControlHow to change it
Config / environmentUse the documented jig.ts key or environment variable. Precedence is field-specific as described above.
Run optionUse jig run --timeout DURATION. An approved entrypoint can provide a default. Explicit Run arguments replace it.
Reviewed grantChange the resource policy in a Binding or named grant, then review the authority change.
FixedNo config or environment override exists. The task explanation identifies the protected boundary.
DerivedJig calculates the bound from other allocations. It has no independent override.

An explicit Run option does not replace a reviewed grant. Each owner enforces its allowance, and descendants share the remaining root deadline.

Linux enforces hard aggregate memory, process, and CPU ceilings. Mac applies the same requested values through supervised sampling and termination. Short overshoot is possible. Wall-clock deadlines and confirmed descendant fencing still apply on both hosts. See host enforcement.

#Prepare runtime dependencies

The preparation count covers one review. Byte and file controls apply to each production package. Fixed aggregate content and deadline bounds still apply.

Setting or boundValueControl
limits.dependencies.maxPreparations (per review)Default 16. Supported maximum 256Config / environment
limits.dependencies.maxPreparedBytesDefault 32 MiB (33,554,432 bytes). Supported maximum 128 MiB (134,217,728 bytes)Config / environment
limits.dependencies.maxPreparedFilesDefault 4,096. Supported maximum 65,536Config / environment
Captured source before installation, per package16 MiB (16,777,216 bytes) / 4,096 filesFixed
Aggregate prepared content, per review256 MiB (268,435,456 bytes)Fixed
Whole preparation phase deadline180 secondsFixed
Workspace members in execution layout256Fixed
Additional workspace source roots, per review32Fixed
Each source-root operand and resolved absolute path4,096 UTF-8 bytesFixed
Dependency aliases in execution layout4,096Fixed
Execution layout JSON1 MiB (1,048,576 bytes)Fixed
Evaluation dependency closure128 MiB (134,217,728 bytes) / 8,192 filesFixed

Policy owners: project/limits.ts, internal/bun-native-preparation-protocol.ts, internal/bun-native-preparation-budget.ts, internal/bun-execution-layout.ts, internal/workspace-source-roots.ts.

#Retain captured packages

Archive capacity includes metadata and retained evidence. These fixed store bounds prevent unbounded durable growth. Dependency settings do not enlarge them.

Setting or boundValueControl
One canonical captured artifact192 MiB (201,326,592 bytes)Fixed
Captured package store, per project1,024 MiB (1,073,741,824 bytes)Fixed
Package/0 format files65,536Fixed
Package/0 format individual file1,024 MiB (1,073,741,824 bytes)Fixed
Package/0 format aggregate content4,096 MiB (4,294,967,296 bytes)Fixed
Logical package path1,024 UTF-8 bytesFixed

Policy owners: package/capacity.ts, internal/package-artifact-store.ts.

#Bound a Run and its child work

The Run deadline covers its descendants. Fixed process budgets and derived branch reservations keep concurrently owned work inside the root allocation.

Setting or boundValueControl
Root Run deadlineDefault 30 seconds. Maximum 86,400 secondsRun option
Native Agent turnsDefault 1. Range 1–8Reviewed grant
One Flow: memory / process tasks256 MiB (268,435,456 bytes) / 64Fixed
One Flow: CPU quota0.5 coreFixed
Root: memory / process tasks1,792 MiB (1,879,048,192 bytes) / 576Fixed
Root: CPU quota3.5 coresFixed
Concurrent sibling Flows / exclusive leaf effects2 / 1Fixed
Maximum child Flow levels5, subject to whole-branch reservationsDerived
Flow cleanup deadline5 secondsFixed

Policy owners: internal/root-run-timeout-policy.ts, internal/root-operation-limits.ts, internal/native-agent-turn-policy.ts.

#Capture and deliver files

Binding-retained reads and per-run attachments share the invocation input allowance. Fixed path and capture bounds protect descriptor traversal, transport and delivery.

Setting or boundValueControl
Invocation input / artifact input / output content64 MiB (67,108,864 bytes) / 16 MiB (16,777,216 bytes) / 16 MiB (16,777,216 bytes)Fixed
Files / tree entries64 / 256Fixed
Relative path depth / length16 components / 512 UTF-8 bytesFixed
Input capture / file delivery deadline10 seconds / 20 secondsFixed

Policy owners: internal/file-input-policy.ts.

#Delegate HTTP requests

Request, response and deadline allowances belong to the reviewed HTTP grant. The original root deadline and supported maxima continue to apply.

Setting or boundValueControl
requestBytesDefault 256 KiB (262,144 bytes). Maximum 8 MiB (8,388,608 bytes)Reviewed grant
responseBytesDefault 1 MiB (1,048,576 bytes). Maximum 12 MiB (12,582,912 bytes)Reviewed grant
timeoutMsDefault and maximum 60 secondsReviewed grant

Policy owners: project/grants.ts.

#Run project commands and evaluations

These fixed profiles bound reviewed tools and their collected outputs. Evaluation phases also share the evaluation deadline and original root lifetime.

Setting or boundValueControl
Project Command input files / aggregate bytes64 / 256 KiB (262,144 bytes)Fixed
Project Command arguments / bytes per argument32 / 1 KiB (1,024 bytes)Fixed
Project Command stdin / retained stream16 KiB (16,384 bytes) / 64 KiB (65,536 bytes)Fixed
Project Command deadline10 secondsFixed
Evaluation candidate source64 files / 8 MiB (8,388,608 bytes)Fixed
Evaluation collected outputs64 files / 8 MiB (8,388,608 bytes) aggregate / 2 MiB (2,097,152 bytes) per fileFixed
Evaluation memory / scratch capacity512 MiB (536,870,912 bytes) / 512 MiB (536,870,912 bytes)Fixed
Evaluation total / generate / compile / test deadlines60 seconds / 15 seconds / 30 seconds / 15 secondsFixed
Author declarations evaluated per review256Fixed
Author evaluation deadline per entry: Linux / Mac3 seconds / 10 secondsFixed

Policy owners: internal/private-project-command.ts, internal/project-evaluation-policy.ts, internal/project-evaluator-policy.ts.

#Exchange Agent protocol messages

These fixed ACP bounds protect one finite conversation. Additional reviewed turns share its byte and frame budgets. Environment variables cannot change the wire contract.

Setting or boundValueControl
One protocol frame16 MiB (16,777,216 bytes)Fixed
Adapter aggregate bytes / frames8 MiB (8,388,608 bytes) / 64Fixed
Client aggregate bytes / frames32 MiB (33,554,432 bytes) / 8,192Fixed
Prompt / public answer text1 MiB (1,048,576 bytes) / 8 MiB (8,388,608 bytes)Fixed
Updates / permissions4,096 / 256Fixed
Protocol identifier1 KiB (1,024 bytes)Fixed

Policy owners: internal/finite-acp-policy.ts.

#Save checkpoints

The fixed checkpoint profile bounds retained evidence during one root lifetime. Checkpoint success does not reset any Run allowance.

Setting or boundValueControl
Encoded checkpoint request2 MiB (2,097,152 bytes)Fixed
Checkpoint text files / aggregate text content64 / 1 MiB (1,048,576 bytes)Fixed
Checkpoint saves per invocation16Fixed
Retained checkpoint scopes per attempt, including root64Fixed

Policy owners: internal/private-run-checkpoint.ts.

#Inspect application composition

Each live snapshot carries one complete admitted composition or an explicit unavailable state. Fixed display bounds protect observation without changing execution authority.

Setting or boundValueControl
Flow context selected targets / connections256 / 1024Fixed
Flow context inline value4 KiB (4,096 bytes)Fixed
Components per composition256Fixed
Connections per composition1,024Fixed
Encoded composition256 KiB (262,144 bytes)Fixed

Policy owners: packages/display-model/src/types.ts, internal/inspection-policy.ts.

#Explore before execution

Fixed exploration bounds retain complete approved configuration and bounded launch intent. Ordinary Run input, authority, and execution limits still apply.

Setting or boundValueControl
Approved workflows4,096Fixed
Complete project projection16 MiB (16,777,216 bytes)Fixed
Selected input schema and definitions256 KiB (262,144 bytes)Fixed
Run request envelope16 MiB (16,777,216 bytes)Fixed
Remembered request identities per session128Fixed
Concurrent HTTP requests / project responses8 / 2Fixed
Request body read allowance10 secondsFixed
Private child handoff event16 KiB (16,384 bytes)Fixed

Policy owners: packages/display-model/src/types.ts, cli-explore-policy.ts.

#Represent JSON values

JSON/0 is an interoperable value contract. Its representation bounds remain fixed, including when another configurable allowance is larger.

Setting or boundValueControl
Encoded document / string16 MiB (16,777,216 bytes) / 8 MiB (8,388,608 bytes)Fixed
Nesting depth / total value nodes128 / 262,144Fixed
Entries in one object or array65,536Fixed
Member name / number token1 KiB (1,024 bytes) / 128 bytesFixed

Policy owners: json.ts.

The dependency count setting covers distinct new preparations in one review, including evaluation recipes. The byte and file settings cover each production preparation, including assembly with reused dependencies. They do not change source capture, evaluation output, alias layout, aggregate review content, deadlines, or artifact storage. Reused admitted packages consume none of the new-preparation count or aggregate output allowance.

Within one review, several Flow selectors can share a newly prepared capture. Its files count once toward the aggregate limit. Each selector's retained execution layout counts separately.

The captured package store retains evidence from declined and superseded reviews. It performs no implicit garbage collection and offers no selective reclamation command. State deletion is not a capacity-recovery instruction. Follow retained-state troubleshooting when retained state prevents progress.

Workspace discovery also bounds members, manifests, locks, patches, and tree traversal. See workspace capture for those exact rules. A format's larger upper bound does not enlarge a host task's smaller allowance.

Separately mounted workspace dependencies require explicit review source-root selections. Their fixed count and path bounds limit source authority and directory acquisition. They have no override and do not enlarge capture budgets. See mounted workspace roots for selection and diagnosis.

For resource setup, see Agent settings, HTTP access, files, and checkpoints. Terminal and installation preferences belong in Settings and configuration.