Back to browse
GitHub Repository

Zsh helpers for LLM Git diff review. Pipe any Git diff range into Claude Code or GitHub Copilot CLI.

3 stars

Zsh helpers for LLM Git diff review

by ackdesha·Mar 6, 2026·1 point·0 comments

AI Analysis

MidShip It

Zsh wrapper around existing LLM APIs; Claude Code and Copilot already do diff review.

Strengths
  • Eliminates manual copy-paste of diffs into LLM interfaces, saving steps in review flow.
  • Supports multiple diff ranges (commits, staged, working tree, PR branches) with one-liner syntax.
  • Works with both Claude and Copilot CLI, providing flexibility for tool choice.
Weaknesses
  • Shell script wrapping existing APIs—no novel technical approach or functionality beyond convenience.
  • Narrow audience: requires Zsh, Claude Code CLI or Copilot CLI; many devs use IDEs with integrated review.
Target Audience

Developers using Zsh shell with Claude Code or GitHub Copilot CLI for code review workflows.

Similar To

GitHub Copilot CLI · Claude Code CLI · Continue IDE extension

Post Description

= Pipe any Git diff range into Claude Code CLI =

Review the last commit of your feature branch:

claudiff "HEAD^..HEAD" "code review"

Review the last 3 commits of your feature branch:

claudiff "HEAD~3..HEAD" "produce gherkin acceptance criteria"

Review working tree changes (uncommitted):

claudiff HEAD "Suggest code cleanups"

Review staged changes:

claudiff --staged "review as if you were Linus Torvalds"

Review a pull request branch before merging:

claudiff "origin/main..HEAD" "review as if you were Anders Hejlsberg"

Since last tag:

claudiff "$(git describe --tags --abbrev=0)..HEAD" "Generate release notes"

Or do the same as above with Github Copilot CLI using `copdiff` instead of `claudiff`

Similar Projects

Developer Tools●●Solid

Deff – side-by-side Git diff review in your terminal

Vim-native side-by-side diffs with in-diff search, but competes with `git diff --color-words` and fancier GUIs.

Niche GemShip ItDark Horse
flamestro
120673mo ago