live-code-watch
A live view of your repo's working diff that redraws only when the code changes.
python3 live_code_watch.py # render the current diff once, exit
python3 live_code_watch.py --watch # live: redraw only when it changes
python3 live_code_watch.py --repo ~/proj --watch --interval 1
Why
When an AI agent edits your code (or you're pair-watching a build), git diff in a
loop with clear flickers and you can't tell when something actually changed.
This redraws only on change (cursor-home + clear-to-end), so it sits still when
idle and updates smoothly when code lands — and git add -N surfaces brand-new
files' contents in the diff.
Behavior
- Default (no flag): render the diff once and exit 0 — quick "what's changed."
--watch: live loop; redraws on change only.Ctrl-Cto stop.--max-iterations Nto auto-stop.- Read-only: the only mutation is a transient
git add -N(intent-to-add); it never commits. - Not a git repo → prints a note and exits 0.
Requires
giton PATH. No Python packages.