Expand description
diffier: a live diff feed for Claude Code edits.
diffier hook, registered in Claude Code’s settings, snapshots files
before each edit and appends the hook payload to a JSONL spool. The TUI
tails the spool, diffs the snapshot against the file on disk, and renders
the result.
Modules§
- app
- TUI state: the card feed, scrolling, follow mode, and the spool tail loop.
- diff
- Diff computation and classification: hunks of rows with word-level marks.
- event
- Tolerant model of a Claude Code hook payload as written to the spool.
- hook
- The
diffier hooksubcommand: consume one Claude Code hook payload. - install
- Register and remove the
diffier hookentries in Claude Code settings. - paths
- Filesystem locations shared between
diffier hookand the monitor. - render
- Turn a
CardInputinto styled terminal lines. - session
- Turn a stream of hook events for one directory into edit cards.
- snapshot
- Resolve the pre-edit content for a PostToolUse event.
- spool
- Reading the JSONL spool: full replay scans and incremental tailing.
- ui
- Drawing: a pinned card header, the visible feed lines, a one-line status bar, and the help overlay.