Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

fswatch

$ fswatch Community Low Risk
Enrico Maria Crisostomo · Files & Search · GPL-3.0-or-later · macos / linux / windows

fswatch monitors directory trees using native OS backends (FSEvents, inotify, kqueue, Windows) and streams change events to stdout. Options like -1 (one-shot exit), --event filtering, and --format templating make it a purely read-only, scriptable observer, though it outputs line-delimited text rather than native --json.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install fswatch
CLI vs MCP Decision CLI Only

Local OS event streaming with fswatch -1 is instantaneous and strictly read-only without MCP overhead.

Agent-Readiness Checklist

— JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Clean non-TTY stdout streaming with -1 one-shot exit, --event filtering, and --format templating, though it lacks a native --json flag.

  • Supports -1 one-shot exit and --format templating
  • No native --json output flag
Trust & Safety 23 / 25

Strictly read-only filesystem event observer with zero network access or arbitrary command execution built in.

  • Read-only event emitter; does not execute commands itself
Setup & Portability 13 / 15

Cross-platform support for macOS FSEvents, Linux inotify, BSD kqueue, and Windows via brew install fswatch and releases.

  • Native OS backends across macOS, Linux, and Windows
Utility & Efficiency 12 / 15

Reliable recursive watching with regex --exclude / --include rules and -o batch counting.

  • Flexible event filtering and batching options
Maintenance & Lineage 7 / 10

Mature C++ project with steady long-term maintenance on GitHub.

  • Maintained on GitHub under emcrisostomo/fswatch
Docs & Verifiability 8 / 10

Comprehensive manual and Texinfo docs explaining monitors, latency, and format placeholders.

  • Detailed docs at emcrisostomo.github.io/fswatch/doc/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; read-only local filesystem event stream.

Side Effects
Read-Only
Cost & Quotas

100% free, offline, and open-source (GPL-3.0-or-later).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# fswatch Agent Rules
- Always pass `-1` (one-shot) or `-o` with a bounded consumer so `fswatch` does not stream forever.
- Use `--event` filters and `--exclude` regexes to ignore `.git` or build artifacts.

Agent-Ready Command Recipes

Safe Read-Only Queries

Wait for one filesystem event and print details
fswatch -1 -x -t src/

Monitors src/ for a single batch of changes (-1), prints timestamps (-t) and event flags (-x), and exits cleanly.

Emit custom-formatted creation and update events
fswatch -1 --event Created --event Updated --format '%p|%f' .

Filters strictly for Created and Updated events and formats path plus flags using --format.

Strengths for Agents

  • + Strictly read-only event emitter that pairs cleanly with -1 for bounded wait conditions.
  • + Rich --event filtering and --format output templates across macOS, Linux, and Windows.

Caveats & Pitfalls

  • ! Lacks a native --json flag; --format requires careful escaping if JSON is synthesized.
  • ! Streams continuously until killed unless -1 is specified.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI