Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fallow.tools/llms.txt

Use this file to discover all available pages before exploring further.

Watch mode re-runs unused code analysis automatically when files change, giving you continuous feedback as you edit.
Use watch mode during refactoring sessions. Each save immediately re-runs the analysis.
fallow watch
Fallow watches your project files and re-analyzes with debouncing when changes are detected. Press Ctrl+C to stop.
Watch mode supports all global flags (like --format, --production, --quiet). Check-specific flags like --unused-exports or --fail-on-issues are not available.

Options

All global flags are supported:
fallow watch --format compact
fallow watch --production
fallow watch --quiet

Examples

fallow watch

Example output

$ fallow watch
Watching 1,008 files for changes...

[10:23:15] File changed: src/server/jobs/queue.ts
[10:23:15] Re-analyzing...

 Unused exports (2)
  src/server/jobs/queue.ts
    :61  enqueueJobDelayed
    :206 sweepStuckProcessingJobs
  Exported symbols with zero references https://docs.fallow.tools/explanations/dead-code#unused-exports

 2 issues (0.04s)

[10:23:42] File changed: src/server/jobs/queue.ts
[10:23:42] Re-analyzing...

No issues found (0.03s) ✓

See also

Unused code analysis

How fallow detects unused code.

fallow dead-code

Full reference for all options available in watch mode.