Skip to content
Fallow home
All docs pages

Docs home

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

VariableDefaultDescription
FALLOW_FORMAThumanDefault 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_QUIETSet to "1" or "true" to suppress progress output. CLI --quiet flag overrides this.
FALLOW_UPDATE_CHECKonSet to off/0/false to disable the human-TTY upgrade nudge and its background version check.
FALLOW_CLAUDE_CODE_HINTonSet 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_SUGGESTIONSonSet 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=off removes the next_steps array from the JSON output of fallow, dead-code, health, dupes and audit. 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

VariableDefaultDescription
FALLOW_PRODUCTIONSet to true/false to override production mode for all analyses.
FALLOW_PRODUCTION_DEAD_CODESet to true/false to override production mode for dead-code analysis.
FALLOW_PRODUCTION_HEALTHSet to true/false to override production mode for health analysis.
FALLOW_PRODUCTION_DUPESSet to true/false to override production mode for duplication analysis.
FALLOW_PACKAGE_BASELINESSet to false, 0, no or off to ignore workspaces.changedSince for every run of the process, like --no-package-baselines.
FALLOW_EXTENDS_TIMEOUT_SECS5Timeout in seconds for fetching https:// configs referenced via the extends field (default 5).
FALLOW_MAX_FILE_SIZE5Per-file size ceiling in megabytes for source discovery (default 5; 0 = no limit). CLI --max-file-size flag overrides this.
FALLOW_AUDIT_BASEPins the fallow audit comparison base ref when no --base/--changed-since is passed (e.g. upstream/main).
FALLOW_CLOCK_EPOCHReference 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 the production key of the config file.
  • The values 1, true, yes and on turn production mode on. The values 0, false, no and off turn 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, origin can be behind the real project. Set FALLOW_AUDIT_BASE=upstream/main.
  • The agent hook of fallow hooks install --target agent runs fallow audit without 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

VariableDefaultDescription
FALLOW_CACHE_DIRDirectory for fallow's persistent analysis cache. Relative paths resolve from the project root and override cache.dir.
FALLOW_CACHE_MAX_SIZE256Extraction 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_DAYS30GC 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_DAYSExpiry 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 audit keeps at most 32 base-snapshot files in the cache directory. This limit also applies when FALLOW_AUDIT_CACHE_MAX_AGE_DAYS is 0.
  • FALLOW_IMPACT_STORE_MAX_AGE_DAYS counts 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 explicit fallow impact enable or disable and 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

VariableDescription
FALLOW_COVERAGEPath 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_ROOTAbsolute 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_BINPath to the runtime coverage add-on (fallow-cov). Fallow checks it before every other location.
FALLOW_COV_BINARY_PATHSecond 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_SOURCESet to cloud to select cloud runtime coverage in fallow coverage analyze without passing --cloud.

Type-aware analysis

VariableDefaultDescription
FALLOW_TYPE_AWAREEnable 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_PROJECTSThe 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_REQUIREThe 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_SECS120Wall 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_BACKENDtypescript-goExperimental. 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_BINTrusted 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.

VariableDefaultDescription
FALLOW_REVIEW_GUIDANCESet to true to append collapsed guidance blocks to review-github/review-gitlab inline comment bodies.
FALLOW_REVIEW_IDStable 1-64 character identifier that isolates inline comments when multiple review jobs target the same PR/MR.
FALLOW_SUMMARY_SCOPEallSummary 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_LAYOUTdefaultSticky PR comment layout: default, compact, gate-only, or details.
FALLOW_CONSOLIDATED_STATUSWhen split PR gate check runs are enabled, truthy values add one aggregate Fallow check alongside the per-gate checks.
FALLOW_DIFF_CONTEXT3Line radius around changed diff lines when scoping findings to a diff in the review/PR-comment formats (default 3).
FALLOW_BOT_LOGINAllowlisted 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_RETRIES3Maximum HTTP attempts for review-comment reconciliation API calls (default 3).
FALLOW_API_RETRY_DELAY2Floor delay in seconds between HTTP retry attempts (default 2); a server-supplied Retry-After overrides it on 429 responses.
FALLOW_ROOTProject 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

VariableDefaultDescription
FALLOW_LICENSELicense JWT (full string) for Fallow Cloud; intended for shared CI runners.
FALLOW_LICENSE_PATHFile path containing the license JWT.
FALLOW_LICENSE_SKEW_TOLERANCE_SECONDS86400Clock-skew tolerance applied to the license JWT's iat claim (default 86400).
FALLOW_REPOowner/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_URLhttps://api.fallow.cloudBase URL override for Fallow Cloud API calls (license refresh, trial, coverage uploads).
FALLOW_API_KEYFallow 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_STOREautoCredential 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_BUNDLEPath to a PEM certificate bundle for Fallow Cloud and provider HTTP calls (replaces the default WebPKI roots).

Telemetry

Telemetry explains what these variables control.

VariableDefaultDescription
FALLOW_TELEMETRYoffOpt-in telemetry mode: off, on, or inspect (print the payload to stderr without sending). Telemetry is off by default.
FALLOW_TELEMETRY_DISABLEDAdmin/fleet kill switch: any value except empty, 0, false, no or off hard-disables telemetry and refuses fallow telemetry enable.
FALLOW_TELEMETRY_DEBUGTruthy values alias FALLOW_TELEMETRY=inspect.
FALLOW_AGENT_SOURCENormalized agent vendor for telemetry classification (e.g. claude_code, codex, cursor). Only read when telemetry is on.
DO_NOT_TRACKTop-precedence telemetry kill switch (consoledonottrack.com convention): any value except empty, 0, false, no or off disables telemetry.
FALLOW_INTEGRATION_SURFACETelemetry integration_surface override for non-CLI surfaces (mcp/lsp/vscode/napi/programmatic). Set by the MCP server on the CLI it spawns.
FALLOW_MCP_TOOLTelemetry 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.

VariableDefaultDescription
FALLOW_BINPath 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_SECS120MCP 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_BYTES1000000MCP 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_FILEMCP server: path to a unified diff that scopes all findings by changed line.
FALLOW_CHANGED_SINCEMCP server: git ref that scopes file discovery for analysis tools.
FALLOW_MCP_WARM_SESSIONonMCP 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_SKILLSonMCP 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

VariableDefaultDescription
FALLOW_LSP_REUSE_SESSIONonLanguage 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.

VariableDefaultDescription
FALLOW_GATE_REPORT.fallow/gate-report.jsonAgent 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_OUTPUTAgent 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_VERSION2.85.0Agent 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_DEBUGAgent 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.