Environment variables
Find each environment variable that fallow reads, for a shell, a CI job, the editor or the MCP server.
Some places start fallow for you, and there you cannot add an option to each command. Examples are a CI job with many steps, the editor, and the MCP server of a coding agent. An environment variable sets a value once for each fallow command in that shell, job or process. For example, FALLOW_PRODUCTION=true in a CI job turns on production mode for each step, and the shared config file stays the same. A command-line option wins over the variable, and the variable wins over the config file. Which setting wins has the full order. Each section below holds the variables of one area.
Output
| Variable | Default | Description |
|---|---|---|
FALLOW_FORMAT | human | Default output format (json/human/sarif/compact/markdown/codeclimate/gitlab-codequality/pr-comment-github/pr-comment-gitlab/review-github/review-gitlab/badge/github-annotations/github-summary). CLI --format flag overrides this. |
FALLOW_QUIET | Set to "1" or "true" to suppress progress output. CLI --quiet flag overrides this. | |
FALLOW_UPDATE_CHECK | on | Set to off/0/false to disable the human-TTY upgrade nudge and its background version check. |
FALLOW_CLAUDE_CODE_HINT | on | Set to off/0/false/no/disabled to suppress the one-line Claude Code plugin hint on stderr. Fallow writes the hint only inside a Claude Code session (CLAUDECODE or CLAUDE_CODE_CHILD_SESSION), for human output without --quiet, outside CI, and when no Fallow plugin or skill is set up for the project. Default on. |
FALLOW_SUGGESTIONS | on | Set to off/0/false/no/disabled to suppress the next_steps[] array of read-only follow-up commands in JSON output (and the human Next: line). Useful for CI consumers that snapshot-diff raw --format json output. Default on. |
FALLOW_SUGGESTIONS=offremoves thenext_stepsarray from the JSON output offallow,dead-code,health,dupesandaudit. Use it when a CI job compares the JSON output with a saved copy. It also turns off the Claude Code hint.
Update check
In a terminal, fallow can show one line when a newer version exists. It does not show the line in machine formats, in CI, with --quiet or without a terminal. FALLOW_UPDATE_CHECK=off turns off the line and the version check. DO_NOT_TRACK and FALLOW_TELEMETRY_DISABLED also turn them off.
Color
Fallow writes color only when the output is a terminal. Set NO_COLOR to a value that is not empty to turn off color in a terminal. Set CLICOLOR_FORCE to a value other than 0 to turn on color in a pipe. CLICOLOR_FORCE wins over NO_COLOR.
Analysis
| Variable | Default | Description |
|---|---|---|
FALLOW_PRODUCTION | Set to true/false to override production mode for all analyses. | |
FALLOW_PRODUCTION_DEAD_CODE | Set to true/false to override production mode for dead-code analysis. | |
FALLOW_PRODUCTION_HEALTH | Set to true/false to override production mode for health analysis. | |
FALLOW_PRODUCTION_DUPES | Set to true/false to override production mode for duplication analysis. | |
FALLOW_PACKAGE_BASELINES | Set to false, 0, no or off to ignore workspaces.changedSince for every run of the process, like --no-package-baselines. | |
FALLOW_EXTENDS_TIMEOUT_SECS | 5 | Timeout in seconds for fetching https:// configs referenced via the extends field (default 5). |
FALLOW_MAX_FILE_SIZE | 5 | Per-file size ceiling in megabytes for source discovery (default 5; 0 = no limit). CLI --max-file-size flag overrides this. |
FALLOW_AUDIT_BASE | Pins the fallow audit comparison base ref when no --base/--changed-since is passed (e.g. upstream/main). | |
FALLOW_CLOCK_EPOCH | Reference instant in unix seconds for commit recency and ownership staleness. Default: the committer timestamp of HEAD. Set it to compare two checkouts against one fixed instant. An empty or non-numeric value is ignored with a warning. |
Production mode for each analysis
FALLOW_PRODUCTION sets production mode for each analysis. FALLOW_PRODUCTION_DEAD_CODE, FALLOW_PRODUCTION_HEALTH and FALLOW_PRODUCTION_DUPES set it for one analysis, and win over FALLOW_PRODUCTION:
# Health on production code only, dead code and duplication on all code
FALLOW_PRODUCTION=false FALLOW_PRODUCTION_HEALTH=true fallow --format json --quiet
- The order is: the command-line option, the variable for one analysis,
FALLOW_PRODUCTION, then theproductionkey of the config file. - The values
1,true,yesandonturn production mode on. The values0,false,noandoffturn it off. Fallow ignores each other value.
Audit base
fallow audit takes its base from --base, then from FALLOW_AUDIT_BASE, then from Git. Without both, it uses the merge base with the upstream branch, or with origin/HEAD, origin/main or origin/master. Set the variable in these cases:
- On a fork,
origincan be behind the real project. SetFALLOW_AUDIT_BASE=upstream/main. - The agent hook of
fallow hooks install --target agentrunsfallow auditwithout options. The variable sets its base, and a new install keeps it.
A ref that Git cannot find stops the audit with exit code 2.
Cache and stored data
| Variable | Default | Description |
|---|---|---|
FALLOW_CACHE_DIR | Directory for fallow's persistent analysis cache. Relative paths resolve from the project root and override cache.dir. | |
FALLOW_CACHE_MAX_SIZE | 256 | Extraction cache size cap in megabytes (default 256). Wins over the cache.maxSizeMb config field. When the cache file grows past 80 percent of the cap, fallow drops the least recently used entries until the file is below 60 percent. |
FALLOW_AUDIT_CACHE_MAX_AGE_DAYS | 30 | GC threshold in days for reusable audit base-snapshot caches (default 30; 0 disables the sweep). Each cache version keeps only its 32 newest snapshot files. |
FALLOW_IMPACT_STORE_MAX_AGE_DAYS | Expiry threshold in days for per-project fallow impact stores; a recorded run drops the history of stores older than this and keeps an explicit enable, disable or declined opt-in (unset/0 keeps every store forever). |
- When the cache file grows past 80 percent of
FALLOW_CACHE_MAX_SIZE, fallow removes the entries of the files that the last run did not read, until the file is at 60 percent. fallow auditkeeps at most 32 base-snapshot files in the cache directory. This limit also applies whenFALLOW_AUDIT_CACHE_MAX_AGE_DAYSis0.FALLOW_IMPACT_STORE_MAX_AGE_DAYScounts the days since the last change of a store file. Each recorded run rewrites the store of its project, so a project that you use does not expire. An expired store keeps an explicitfallow impact enableordisableand a declined opt-in, and loses its history. Fallow records impact data only outside CI.
One cache directory for several projects
An absolute FALLOW_CACHE_DIR outside the project is one directory for each project that uses it:
- The CLI, the MCP server and the Node.js bindings write the cache files directly into the directory. Use one directory for one project. When two projects share it, each run replaces the cache of the other project.
- The language server writes into one subdirectory for each project root. Two editor windows can share one directory.
Coverage
| Variable | Description |
|---|---|
FALLOW_COVERAGE | Path to Istanbul coverage data (coverage-final.json) or raw V8 coverage (a NODE_V8_COVERAGE directory or one V8 JSON file) for accurate per-function CRAP scores. CLI --coverage flag overrides this; it wins over the health.coverage config field. Honored by the health, bare fallow, audit, and viz CLI commands and by the MCP audit and check_health tools on both their typed route and their CLI fallback, where the explicit coverage parameter overrides it. Viz reads it through the same precedence and has no coverage flag of its own. |
FALLOW_COVERAGE_ROOT | Absolute coverage-data path prefix for rebasing Istanbul paths in CI or containers. CLI --coverage-root flag overrides this; it wins over the health.coverageRoot config field. Honored by the health, bare fallow, audit, and viz CLI commands and by the MCP audit and check_health tools on both their typed route and their CLI fallback, where the explicit coverage_root parameter overrides it. Viz reads it through the same precedence and has no coverage flag of its own. |
FALLOW_COV_BIN | Path to the runtime coverage add-on (fallow-cov). Fallow checks it before every other location. |
FALLOW_COV_BINARY_PATH | Second path to the runtime coverage add-on (fallow-cov), checked after FALLOW_COV_BIN (air-gapped installs, distro packages, shared Docker images). |
FALLOW_RUNTIME_COVERAGE_SOURCE | Set to cloud to select cloud runtime coverage in fallow coverage analyze without passing --cloud. |
Type-aware analysis
| Variable | Default | Description |
|---|---|---|
FALLOW_TYPE_AWARE | Enable or disable TypeScript semantic (type-aware) analysis for the run (true/false/1/0/yes/no/on/off). Precedence: --type-aware/--no-type-aware CLI flags, then FALLOW_TYPE_AWARE, then the audit.typeAware config field, then typeAware.enabled. | |
FALLOW_TYPE_AWARE_PROJECTS | The TypeScript project configs of type-aware analysis, separated by the path separator of the platform. The --type-aware-project flag wins over it, and it wins over typeAware.projects. | |
FALLOW_TYPE_AWARE_REQUIRE | The completeness policy of type-aware analysis: best-effort or complete. The --type-aware-require flag wins over it, and it wins over typeAware.require. | |
FALLOW_TYPE_AWARE_TIMEOUT_SECS | 120 | Wall clock in seconds allowed for one request to the type-aware companion (default 120; unset, 0, or a non-numeric value keeps the default). Raise it for very large TypeScript programs, where a semantic query scans the whole program. |
FALLOW_TYPE_AWARE_BACKEND | typescript-go | Experimental. Type-checker backend for the type-aware companion: typescript-go (default) or tsrs. The tsrs backend needs a tsrs npm package in the supported range of the type-aware protocol manifest, where fallow-type-aware can resolve it. An unknown value makes the type-aware pass unavailable. |
FALLOW_TYPE_AWARE_BIN | Trusted executable override for the type-aware companion that --type-aware runs. Relative paths resolve from the caller's working directory before --root is applied; project node_modules and PATH are intentionally not searched. Default: sibling of the active Fallow executable. |
CI review comments
These variables change the review-* and pr-comment-* formats. CI integration shows these formats.
| Variable | Default | Description |
|---|---|---|
FALLOW_REVIEW_GUIDANCE | Set to true to append collapsed guidance blocks to review-github/review-gitlab inline comment bodies. | |
FALLOW_REVIEW_ID | Stable 1-64 character identifier that isolates inline comments when multiple review jobs target the same PR/MR. | |
FALLOW_SUMMARY_SCOPE | all | Summary scope for pr-comment-github/pr-comment-gitlab: all (default) keeps project-level dependency/catalog/override findings outside the diff filter; diff applies the diff filter to them too. Inline review comments are unaffected. |
FALLOW_PR_COMMENT_LAYOUT | default | Sticky PR comment layout: default, compact, gate-only, or details. |
FALLOW_CONSOLIDATED_STATUS | When split PR gate check runs are enabled, truthy values add one aggregate Fallow check alongside the per-gate checks. | |
FALLOW_DIFF_CONTEXT | 3 | Line radius around changed diff lines when scoping findings to a diff in the review/PR-comment formats (default 3). |
FALLOW_BOT_LOGIN | Allowlisted posting username used to recognize fallow-owned finding roots, resolution replies and the sticky PR/MR comment. When set, it narrows ownership to that exact username (an empty value matches nobody); when unset, provider-native bot metadata is trusted, and the sticky comment also matches the token user. This is an authorship control, not a lifecycle or deduplication token. | |
FALLOW_API_RETRIES | 3 | Maximum HTTP attempts for review-comment reconciliation API calls (default 3). |
FALLOW_API_RETRY_DELAY | 2 | Floor delay in seconds between HTTP retry attempts (default 2); a server-supplied Retry-After overrides it on 429 responses. |
FALLOW_ROOT | Project root used by the review-github/review-gitlab renderers to read source for suggestion blocks. Set it alongside --root when rendering review formats outside the bundled CI integrations. |
Fallow Cloud
| Variable | Default | Description |
|---|---|---|
FALLOW_LICENSE | License JWT (full string) for Fallow Cloud; intended for shared CI runners. | |
FALLOW_LICENSE_PATH | File path containing the license JWT. | |
FALLOW_LICENSE_SKEW_TOLERANCE_SECONDS | 86400 | Clock-skew tolerance applied to the license JWT's iat claim (default 86400). |
FALLOW_REPO | owner/repo fallback for fallow coverage analyze --cloud and fallow inspect --cloud when --repo is not passed (otherwise parsed from the git origin remote). | |
FALLOW_API_URL | https://api.fallow.cloud | Base URL override for Fallow Cloud API calls (license refresh, trial, coverage uploads). |
FALLOW_API_KEY | Fallow Cloud bearer token for coverage upload and cloud read commands (wins over the key that fallow cloud login stored), and the fallback bearer for fallow license refresh when the stored license JWT is missing or too stale. | |
FALLOW_CREDENTIAL_STORE | auto | Credential store for the key that fallow cloud login writes: auto (default: OS keychain, else ~/.config/fallow/credentials), file (credentials file only) or none (no stored key is read or written). |
FALLOW_CA_BUNDLE | Path to a PEM certificate bundle for Fallow Cloud and provider HTTP calls (replaces the default WebPKI roots). |
Telemetry
Telemetry explains what these variables control.
| Variable | Default | Description |
|---|---|---|
FALLOW_TELEMETRY | off | Opt-in telemetry mode: off, on, or inspect (print the payload to stderr without sending). Telemetry is off by default. |
FALLOW_TELEMETRY_DISABLED | Admin/fleet kill switch: any value except empty, 0, false, no or off hard-disables telemetry and refuses fallow telemetry enable. | |
FALLOW_TELEMETRY_DEBUG | Truthy values alias FALLOW_TELEMETRY=inspect. | |
FALLOW_AGENT_SOURCE | Normalized agent vendor for telemetry classification (e.g. claude_code, codex, cursor). Only read when telemetry is on. | |
DO_NOT_TRACK | Top-precedence telemetry kill switch (consoledonottrack.com convention): any value except empty, 0, false, no or off disables telemetry. | |
FALLOW_INTEGRATION_SURFACE | Telemetry integration_surface override for non-CLI surfaces (mcp/lsp/vscode/napi/programmatic). Set by the MCP server on the CLI it spawns. | |
FALLOW_MCP_TOOL | Telemetry mcp_tool dimension, validated against the MCP tool-name allowlist. Set by the MCP server alongside FALLOW_INTEGRATION_SURFACE=mcp. |
Agent source
Set FALLOW_AGENT_SOURCE when fallow cannot find the agent that starts a run. The variable does not turn telemetry on. It accepts these values:
codex claude_code cursor copilot opencode aider roo windsurf
gemini cline continue zed goose other_known unknown none
Fallow changes the aliases gemini_cli and antigravity to gemini. Agent source explains each value.
MCP server
Set these variables in the env object of the MCP server entry of your client.
| Variable | Default | Description |
|---|---|---|
FALLOW_BIN | Path to the fallow binary that the fallow-mcp server runs. When it is unset, the server runs the fallow file next to its own executable, else fallow on PATH. | |
FALLOW_TIMEOUT_SECS | 120 | MCP server: per-tool-call CLI subprocess timeout in seconds (default 120, or 1800 for a call that runs as an MCP task). Raise for long runs like production coverage on large dumps. |
FALLOW_MCP_MAX_OUTPUT_BYTES | 1000000 | MCP server: response cap in bytes for each tool call (default 1000000, highest 16777216). A larger response is refused with FALLOW_MCP_SUBPROCESS_OUTPUT_LIMIT and a narrow list of parameters. The max_output_bytes parameter of a call can only lower this cap. |
FALLOW_DIFF_FILE | MCP server: path to a unified diff that scopes all findings by changed line. | |
FALLOW_CHANGED_SINCE | MCP server: git ref that scopes file discovery for analysis tools. | |
FALLOW_MCP_WARM_SESSION | on | MCP server: set to 0, false, off or no to stop typed tool calls from keeping parsed modules in memory between calls (default on). |
FALLOW_MCP_SKILLS | on | MCP server: set to 0, false, off or no to stop serving the fallow and fallow-setup skills through the MCP skills extension (default on). fallow agent install writes off into the MCP entry when it also installs the skills on disk. |
Language server
| Variable | Default | Description |
|---|---|---|
FALLOW_LSP_REUSE_SESSION | on | Language server: set to 0/false/off/no to load a new project session on each analysis run. By default the server keeps one session per project root between saves and parses only the changed files. |
Commit gate script
fallow agent install writes a gate script for coding agents. Claude Code hooks explains the gate.
| Variable | Default | Description |
|---|---|---|
FALLOW_GATE_REPORT | .fallow/gate-report.json | Agent gate script of fallow agent install: path of the full JSON report that the gate writes on a block (default .fallow/gate-report.json). The fallow binary does not read it. |
FALLOW_GATE_OUTPUT | Agent gate script of fallow agent install: set to json to print the full JSON report on stderr instead of the compact block message. The fallow binary does not read it. | |
FALLOW_GATE_MIN_VERSION | 2.85.0 | Agent gate script of fallow agent install: lowest fallow version that the gate accepts. Set it to the empty string to disable the check. The fallow binary does not read it. |
FALLOW_GATE_DEBUG | Agent gate script of fallow agent install: set to a non-empty value to log each command that the gate skips because it is not a git commit or push. The fallow binary does not read it. |
Related
- Next: Global options. Use an option when one command needs a value that differs from the variable.
- How configuration works: the config file and its precedence.
- Telemetry: what the telemetry variables control.