Skip to main content

Overview

The file watcher system provides real-time visibility into all file system changes, enabling the Human-AI feedback loop through complete transparency of AI work.

Core Architecture

The file watcher is a standalone Rust daemon that operates independently of the main application. This design ensures reliability and performance.

Daemon Lifecycle

The daemon follows a strict initialization sequence to ensure reliability.

5-Level Priority Filter

The filtering system is crucial for reducing noise while capturing meaningful changes.

Database Schema

The database stores all file events for transparency and analysis.

Push Notification System

Real-time event delivery enables immediate transparency.

Control Socket Protocol

The control socket provides daemon management and client subscriptions.

Cross-Platform Support

Platform-specific paths ensure consistent operation across operating systems.

THE CENTER: Transparency

The file watcher provides TRANSPARENCY - the foundation of the Human-AI feedback loop.

Key Technical Achievements

  • 95% less CPU, 91% less memory compared to Node.js version
  • 5-level priority-based ignore system filtering ~200 patterns
  • Direct SQLite writes eliminating IPC overhead
  • Push notification system for real-time event delivery
  • Cross-platform support (macOS, Windows, Linux)