nvsravank/multirepo-diff-mod
multirepo-diff-mod
フォルダー内の**すべてのgitリポジトリ**の変更を1つのペインに表示するClaude Code modです。
この mod について
現在のセッションフォルダーと、.gitディレクトリを含む子フォルダーを走査し、すべてのリポジトリのgit変更を1つのペインに表示する/multi-diffコマンドを提供するClaude Codeプラグインです。リポジトリとworktreeを選び、未コミット対HEAD、未ステージ対ステージ済み、ステージ済み対HEAD、ブランチ対ベース(PR)、または現在のClaudeセッションで編集したファイル対編集前の内容から比較モードを選択できます。変更ファイルは、選択したファイルのdiffと並ぶツリーに表示され、再スキャンと明るい/暗いdiffの切り替えもできます。Detached worktreeは「Show detached」を選ばない限り非表示です。Desktopアプリでは長いdiffとファイル一覧がページ分割されます。claude --plugin-dir /path/to/multirepo-diff-modでローカルインストールするか、~/.claude/settings.jsonのCLAUDE_CODE_PLUGIN_DIRSにフォルダーを追加できます。編集時にはホットリロードされます。MITライセンスです。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add nvsravank/multirepo-diff-mod claude plugin install multirepo-diff-mod
原文 / README
multirepo-diff-mod
A Claude Code mod that shows the changes in every git repo in a folder in one pane.
/multi-diffscans the session's folder. The folder itself is included when it is a repo, along with every child folder that has a.git./multi-diff <path>scans another folder.- Pick a repo, then a worktree of it. Detached worktrees are hidden until you choose Show detached.
- Pick what to compare:
- Uncommitted vs HEAD: staged and unstaged changes
- Unstaged vs staged
- Staged vs HEAD
- Branch vs base (PR): the branch's commits since it left
origin/main(or the repo's default branch) - This Claude session: files Claude edited in this session, against their content before its first edit
- Changed files show as a tree on the left (☰ hides it), and the selected file's diff is on the right. ⟳ rescans, and ☀/☾ switches the diff's colors.
In the Desktop app, long diffs and file lists are shown a page at a time (Previous/Next), because very large panes stop responding there.
Install (local)
claude --plugin-dir /path/to/multirepo-diff-mod
Or add the folder to CLAUDE_CODE_PLUGIN_DIRS in the env block of
~/.claude/settings.json. Sessions started by the desktop app will then load it,
and it hot-reloads when you edit it.
Feedback
Bug reports and feature requests are welcome as issues. This project doesn't accept pull requests; see CONTRIBUTING.md. Report security problems privately, as described in SECURITY.md.
Develop
claude plugin validate .
claude plugin test .
The Claude Code function-hooks API is in early access and may change between releases.
License
MIT. See LICENSE.
