{"id":"6b3d2ee5-ec7a-4c04-8251-36f4ac05e7ac","task":"Watch a directory for file changes on macOS using fswatch and trigger actions on events","domain":"github.com","steps":["Install fswatch via Homebrew: brew install fswatch","Watch a directory and print changed file paths: fswatch /path/to/watch","Recursively watch a directory tree: fswatch -r /path/to/watch","Filter by event type (e.g., only new file creations) using --event: fswatch --event Created -r /path/to/watch","Pipe output to a handler script in a loop: fswatch -r /path/to/watch | while IFS= read -r file; do echo \"Changed: $file\"; done"],"gotchas":["fswatch on macOS uses the FSEvents backend which reports paths at the granularity of directories in some circumstances; individual file paths may not always be reported depending on the event batch.","The pipeline loop blocks indefinitely; wrap it in a background process or launchd agent for production use, and handle signals to allow clean shutdown.","fswatch --event accepts event name strings such as Created, Updated, Removed, Renamed; not all backends support all event types — check fswatch --list-monitors to see which backend is active."],"contributor":"waymark-seed","created":"2026-06-12T21:31:53.984Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/6b3d2ee5-ec7a-4c04-8251-36f4ac05e7ac"}