LLM のコードレビュー結果を GitHub Copilot CLI に精査させ、双方の視点を統合した最終レビューを提供する。
This command performs a dual-review by first conducting your own code analysis, then having GitHub Copilot CLI verify your findings and provide an independent review. It integrates both perspectives into a comprehensive final report, ideal for critical code changes requiring thorough validation.
/plugin marketplace add mozuq-lab/multi-model-review/plugin install multi-model-review@multi-model-reviewLLM のコードレビュー結果を GitHub Copilot CLI に精査させ、双方の視点を統合した最終レビューを提供する。
$ARGUMENTS
対象コードをレビューし、以下の観点で問題点を洗い出す:
以下のコマンドで Copilot CLI を呼び出す:
copilot -p "<プロンプト>" --add-dir . --allow-all-tools --model gpt-5 -s
I performed a code review and want you to both verify my findings AND conduct your own independent review.
## Review Target
<レビュー対象>
## Code Changes
<対象コードまたはgit diffの概要>
## My Review Findings
### Critical Issues
<Critical Issues>
### Warnings
<Warnings>
### Suggestions
<Suggestions>
---
Please:
**Part 1: Verify my review**
1. Reading the actual source files to confirm my findings are accurate
2. Pointing out if any of my findings are incorrect or overstated
**Part 2: Your independent review**
3. Conduct your own code review within the specified Review Target scope
4. List any issues I missed
Respond with:
- Confirmed: Issues you agree with
- Disputed: Issues you disagree with (explain why)
- Your Findings: Issues from your independent review
- Additional context: Relevant information from reading the source
Copilot の精査結果を受けて:
## Multi-Model Code Review Summary
**Reviewers:** [あなたのモデル名] + GitHub Copilot [モデル名]
### Critical Issues
- [双方合意の問題]
- [Copilot が追加で発見した問題]
### Warnings
- [警告事項]
### Suggestions
- [改善提案]
### Review Discussion
- **合意点:** 双方が同意した主要な問題
- **議論点:** 見解が分かれた点とその結論
- **補完:** 片方のみが発見した問題
| Model | Notes |
|---|---|
gpt-5 | デフォルト、バランス型 |
gpt-5.1-codex-max | コード特化、高性能 |
gemini-3-pro-preview | Google 製 |
copilot CLI がインストールされている必要がある--add-dir . でプロジェクトへのアクセスを許可シェルの引数長制限(macOS: 約 262KB、Linux: 約 2MB)を超えると Argument list too long エラーが発生する。
また、長いプロンプトをシェルで直接渡すとエスケープ問題でコマンドが正しく実行されないことがある。
--add-dir . により Copilot が直接ファイルを読めるため、diff 全文をプロンプトに含める必要はない長いプロンプトやマークダウン形式のプロンプトは、ファイルに保存してからコマンド置換で渡すことで、シェルのエスケープ問題を回避できる。
# 1. プロンプトをファイルに保存(エージェントの場合は create_file ツールを使用)
# 推奨: プロジェクト内 .multi-model-review/ ディレクトリに保存
# 2. コマンド置換でプロンプトを渡す
copilot -p "$(cat .multi-model-review/review-prompt.txt)" --add-dir . --allow-all-tools --model <model> -s
# 1. プロンプトをファイルに保存(エージェントの場合は create_file ツールを使用)
# 推奨: プロジェクト内 .multi-model-review/ ディレクトリに保存
# 2. Get-Content でファイルを読み込んで渡す
copilot -p (Get-Content -Raw ".multi-model-review\review-prompt.txt") --add-dir . --allow-all-tools --model <model> -s
cmd.exe では直接のコマンド置換が難しいため、PowerShell 経由で実行するか、短いプロンプトを直接渡すことを推奨。
:: PowerShell経由で実行(プロジェクト内の .multi-model-review/ ディレクトリを使用)
powershell -Command "copilot -p (Get-Content -Raw '.multi-model-review\review-prompt.txt') --add-dir . --allow-all-tools --model <model> -s"
Copilot CLI は応答に時間がかかるため、エージェントから呼び出す際はバックグラウンド実行が必要。
run_in_terminal/get_terminal_outputを使用する場合
プロンプトをファイルに保存 - create_file ツールでプロンプトを保存
.multi-model-review/review-prompt.txtrun_in_terminal で isBackground: true を指定してバックグラウンド実行
macOS / Linux (Bash/Zsh):
copilot -p "$(cat .multi-model-review/review-prompt.txt)" --add-dir . --allow-all-tools --model <model> -s
Windows (PowerShell):
copilot -p (Get-Content -Raw ".multi-model-review\review-prompt.txt") --add-dir . --allow-all-tools --model <model> -s
get_terminal_output でターミナル ID を使って結果を確認
3-5 秒間隔でポーリング(通常 10-15 回程度で結果取得)
20 回以上応答がない場合はタイムアウトと判断
注意: シェルで直接長いプロンプトを渡すと、エスケープ問題やツールによるコマンド簡略化で正しく実行されないことがある。ファイル経由が最も確実。
Bash/TaskOutputを使用する場合
Bash ツールで run_in_background: true を指定してバックグラウンド実行TaskOutput ツールで結果を取得(block: true で完了待ち可能)timeout パラメータで指定可能(最大 600000ms)