with-watch
with-watch reruns a delegated command when its inferred or explicit filesystem inputs change.
Install
Examples
Inference Model
- Passthrough and shell modes use built-in command adapters before falling back to conservative path heuristics.
- Known outputs, inline scripts, patterns, and shell output redirects are filtered out of the watch set.
- Pathless defaults are intentionally narrow: only
ls,dir,vdir,du, andfindimplicitly watch the current directory. exec --inputremains the explicit escape hatch when a delegated command has no meaningful filesystem inputs or when fallback inference would be ambiguous.