Skip to main content
Detect feature flag patterns in your codebase. Fallow identifies environment variable flags (process.env.FEATURE_*), SDK calls from common providers (LaunchDarkly, Statsig, Unleash, GrowthBook, Split, PostHog, Vercel Flags, ConfigCat, Flagsmith, Optimizely, Eppo), and config object patterns (opt-in). Reports flag locations, detection confidence, and cross-references with dead code findings.
Use fallow flags --format json for structured output that agents and scripts can parse. Combine with --top N to focus on the most common flags.

Options

Output

Scoping

Performance

CI

Regression

Detection categories

Fallow detects three categories of feature flag patterns: Each detected flag includes a confidence level indicating how certain fallow is that the pattern represents a feature flag.

Configuration

Fallow ships with built-in detectors for the common providers and env-var conventions, so most projects need no configuration. If fallow flags reports No feature flags detected but your project does use flags, you are likely on an SDK or env prefix fallow does not recognize by default. Extend detection with the flags section in .fallowrc.json, .fallowrc.jsonc, fallow.toml, or .fallow.toml. When you run fallow flags on full defaults and nothing is found, the CLI lists the built-in env prefixes and SDKs it scanned for, so you can tell a true negative from a missing detector.

Schema

Custom sdkPatterns and envPrefixes are merged with the built-in sets, never replace them.

Examples

Several providers shown above (PostHog, ConfigCat, Vercel Flags) are already built in, so these examples are illustrative. Reach for sdkPatterns when fallow does not recognize your wrapper function or you use an in-house SDK.

Examples

JSON output

$ fallow flags --format json

Key fields

MCP tool

The feature_flags MCP tool wraps fallow flags --format json --quiet --explain:
Example request
The response always includes _meta explanatory metadata (the MCP wrapper enables --explain by default). Returns the same JSON envelope as the CLI. See MCP integration for setup instructions.

See also

Dead code analysis

Cross-references feature flags with dead code findings.

Global flags

Flags available on every fallow command.

MCP integration

Use fallow tools from AI coding agents.