idx

ADR 0005: Add Realtime Watch-Based Index Synchronization

Status

Accepted

Context

idx sync currently requires manual execution after filesystem changes. This creates friction for users that edit files continuously and expect search results to include new/updated files immediately.

The solution must:

Decision

Add a new idx watch command that monitors project filesystem events and triggers directory-level incremental reindexing in near real time.

Implementation notes:

Alternatives Considered

Periodic polling (sync on interval)

One watcher process per directory managed manually

Consequences

Positive

Negative