Figure 1: (c) Jyotiswarup Raiturkar

Figure 1: (c) Jyotiswarup Raiturkar

Articles

Videos

Filesystem event-driven patterns

Filesystem watchers (kqueue on macOS/BSD, inotify on Linux) expose native OS-level event streams on file or directory changes. They are a minimal implementation of the EDA pattern for local processes: producers append to a file; consumers block on the watcher fd and wake exactly once per event, with zero idle CPU.

This is the mechanism behind the multi-agent communication approach in the AI coding agent ecosystem: agents share an NDJSON append-only log file, and each receiving agent blocks on kqueue/inotify until a peer appends a message.