🔥 Agent quick tip: Review changes in vim.

  1. Pipe your git diff into vim with vimreview.
  2. Add your review comments in the comfort of your favorite editor as basic # comments.
  3. :wq and paste into your agent session.

Get it:

$ brew install moreutils

~/.zshrc:

vimreview() {
  {
    echo "# [NOTE]\n# DIFF REVIEW:\n# The following is our current changes as a git diff with my comments added. Comments are denoted by a leading #\n# Please review and discuss or process my comments.\n# [/NOTE]\n"; \
    git diff
  } | \
  vipe --suffix diff | \
  pbcopy
}