
여러 저장소와 worktree를 인식하는 diff 뷰어를 Claude Code mod로 만들었습니다. /diff가 변경 사항을 계속 놓쳤기 때문입니다
Repo(MIT)라는 Claude Code mod로, 여러 저장소와 worktree의 diff를 검토하는 /multi-diff 패널, 비교 모드 5개, 세션 시작 git 스냅샷, 파일 트리와 강조된 diff 뷰어를 추가합니다.

이 mod 소개
작성자는 Python이나 shell 스크립트가 만든 변경을 /diff가 놓치고 비 git 폴더에는 아무것도 보여 주지 않는다는 것을 발견한 뒤 여러 저장소와 worktree를 인식하는 diff 뷰어를 Claude Code mod로 만들었습니다.
기능:
- /multi-diff는 Git 기반 diff와 세션 시작 시(또는 /clear 실행 시) 모든 저장소에서 만든 스냅샷을 보여 줍니다. 따라서 "changes since session started"가 모든 도구를 포함하고 파일, 브랜치, 스테이징을 건드리지 않은 채 재시작이나 재개 후에도 유지됩니다.
- 열린 폴더 바로 안에 있는 모든 저장소를 자동으로 감지합니다.
- 저장소마다 worktree 선택기가 있고 요청하지 않으면 detached scratch checkout을 숨깁니다.
- 비교 모드 5개: 커밋되지 않음 vs HEAD, 스테이지되지 않음 vs 스테이지됨, 스테이지됨 vs HEAD, 브랜치 vs base(PR 보기), 세션 시작 이후의 변경.
- 변경 사항과 단어를 강조하는 파일 트리와 diff, 밝은 테마와 어두운 테마를 제공합니다.
설치: https://github.com/nvsravank/multirepo-diff-mod 을 clone한 뒤 claude --plugin-dir /path/to/multirepo-diff-mod와 /multi-diff를 실행합니다. Desktop 앱에서는 ~/.claude/settings.json의 env 블록에 있는 CLAUDE_CODE_PLUGIN_DIRS에 폴더를 추가합니다. macOS에서 테스트했고 Windows는 테스트하지 않았습니다.
mod 작성자 참고(Desktop 앱, engine 2.1.286): Desktop에서는 format 'diff' 코드 블록이 일반 텍스트로 렌더링됩니다. 약 300행을 넘는 큰 패널은 버튼이나 드롭다운을 멈추게 할 수 있으며(150행 페이지로 우회 가능), 코드 블록은 10,000자로 제한되므로 큰 diff는 나눠야 합니다. 패널은 독립 스크롤 영역이나 고정 헤더 없이 한 페이지로 스크롤되고, mod는 앱 테마를 읽을 수 없어 수동 밝은/어두운 전환을 사용합니다. 원하는 API 기능은 스크롤 영역, 고정 상단 영역, 테마 노출입니다.
설치
설치 방법은 원본 출처를 확인하세요.
원문 / README
Claude Code Mod for Diffs I kept VS Code open just to check diffs, and /diff didn't fix it for me: it misses changes Claude makes with Python or shell scripts, and it shows nothing when the folder I open isn't a git repo. I keep backend and frontend repos side by side in one project folder. So I built a mod. /multi-diff opens a pane with: Git-based diffs. A git snapshot of every repo when the session starts (or on /clear ), so "changes since this session started" shows everything, by Claude or anyone, by any tool, and survives a restart and resume. Your files, branches and staging area are never touched. Automatic repo detection. Every repo in the folders directly inside the one you open. Worktrees. Each repo's worktrees in a picker; detached scratch checkouts are hidden until you ask. Five compare modes. Uncommitted vs HEAD, unstaged vs staged, staged vs HEAD, branch vs base (the PR view, without opening a PR), and changes since the session started. A file tree and a diff with change and word highlighting, in light and dark themes. All the ways to see Diffs Repo (MIT): https://github.com/nvsravank/multirepo-diff-mod To try it: clone it, then claude --plugin-dir /path/to/multirepo-diff-mod and run /multi-diff . For the Desktop app, add the folder to CLAUDE_CODE_PLUGIN_DIRS in the env block of ~/.claude/settings.json . Tested on macOS; Windows should work but is untested, so reports are welcome. Things I ran into, if you're building mods (Desktop app on engine 2.1.286): Code with format: 'diff' draws as plain text on Desktop. It's fine in the terminal. Reported as anthropics/claude-code#99535 . I draw my own rows on Desktop. Large panes go dead on Desktop. Past about 300 rows in one drawing, buttons and dropdowns stop working, with only ui_press not handled in ~/Library/Logs/Claude/main.log . Paging (150 rows) fixed it. Code blocks hold at most 10,000 characters , so big diffs need splitting into valid hunks. Panes scroll as one page. No independent scroll areas, and no fixed header. Mods aren't told the app's theme , so the pane has a light/dark toggle. What I'd like to see in the mods API: scrollable areas inside a pane, a fixed area at the top, and the app's theme exposed to mods. Bug reports and ideas welcome as GitHub issues. submitted by /u/Weary-Net1650 [link] [comments]
