ROACH PI provides /review β a single-pass code review performed directly by the current agent. Fast, lightweight, and free of subagent overhead.
ROACH PIλ /reviewλ₯Ό μ 곡ν©λλ€ β νμ¬ μμ΄μ νΈκ° μ§μ μννλ λ¨μΌ ν¨μ€ μ½λ 리뷰. λΉ λ₯΄κ³ κ°λ²Όμ°λ©° μλΈμμ΄μ νΈ μ€λ²ν€λκ° μμ΅λλ€.
/review
β Single-Pass Review
β λ¨μΌ ν¨μ€ 리뷰
target can be a PR number, PR URL, branch name, or omitted for auto-detection. No confirmation is required β the review starts immediately.
targetμ PR λ²νΈ, PR URL, λΈλμΉ μ΄λ¦, λλ μλ κ°μ§λ₯Ό μν΄ μλ΅ν μ μμ΅λλ€. νμΈ μμ΄ λ¦¬λ·°κ° μ¦μ μμλ©λλ€.
The target is validated against /^[a-zA-Z0-9._/:\-]+$/ before any prompt is sent. Shell metacharacters (;, |, &, >, `, $()) are rejected immediately to prevent injection into the downstream gh / git commands.
νκ²μ ν둬ννΈ μ μ‘ μ μ /^[a-zA-Z0-9._/:\-]+$/λ‘ κ²μ¦λ©λλ€. μ
Έ λ©νλ¬Έμ(;, |, &, >, `, $())λ λ€μ΄μ€νΈλ¦Ό gh / git λͺ
λ Ήμ΄λ‘μ μΈμ μ
μ λ°©μ§νκΈ° μν΄ μ¦μ κ±°λΆλ©λλ€.
The review is output directly to chat, grouped by file. Each finding includes: what, where (file:line), severity (Critical/High/Medium/Low), and a one-line suggested fix. No file is saved and no subagents are dispatched.
리뷰λ νμΌλ³λ‘ κ·Έλ£Ήνλμ΄ μ±ν μ μ§μ μΆλ ₯λ©λλ€. κ° λ°κ²¬ μ¬νμ λ΄μ©, μμΉ(file:line), μ¬κ°λ(Critical/High/Medium/Low), ν μ€ μμ μ μμ ν¬ν¨ν©λλ€. νμΌμ μ μ₯λμ§ μκ³ μλΈμμ΄μ νΈλ λμ€ν¨μΉλμ§ μμ΅λλ€.
/review resolves its target with the following logic:
/reviewλ λ€μ λ‘μ§μΌλ‘ νκ²μ ν΄κ²°ν©λλ€:
| Targetνκ² | Commandλͺ λ Ήμ΄ |
|---|---|
| PR numberPR λ²νΈ | gh pr diff <number> |
| PR URLPR URL | gh pr diff <url> |
| Branch nameλΈλμΉ μ΄λ¦ | git diff main...<topic> |
| Auto (PR found)μλ (PR λ°κ²¬) | gh pr list --head <branch> β gh pr diff <number> |
| Auto (no PR)μλ (PR μμ) | git diff main...HEAD + git diff + git diff --cached |
gh accepts PR numbers and full GitHub PR URLs interchangeably β no special URL parsing is needed.
ghλ PR λ²νΈμ μ 체 GitHub PR URLμ μνΈ κ΅νμ μΌλ‘ νμ©ν©λλ€ β λ³λμ URL νμ±μ΄ νμ μμ΅λλ€.