Module watcher

Module watcher 

Source
Expand description

File system watcher for AI tool session files.

Watches directories configured by the WatcherRegistry for new and modified session files. Performs incremental parsing to efficiently handle file updates without re-reading entire files.

Currently supports:

  • Claude Code JSONL files in ~/.claude/projects/

Structsยง

DbConfig
Database path for creating connections within the watcher. rusqlite connections are not thread-safe, so we create a new connection when needed rather than sharing one across threads.
SessionWatcher
Watches for session file changes and imports new messages.