From orc
Answer reviewer comments on YOUR open PR — categorize unresolved threads, push fixes, and post replies. Workspace-aware across linked PRs.
How this command is triggered — by the user, by Claude, or both
Slash command
/orc:address [<pr-number>] [--repo <name>] [--repos a,b] (omitted = current branch's PR / all linked PRs)This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /orc:address
Address the reviewer feedback on your own PR. Closes the loop: code fixes + thread replies + push.
## Arguments
- `<pr-number>` — optional. If omitted, the command uses `gh pr list --head $(git branch --show-current)` to find the PR for the current branch.
## Workflow
### Phase 0 — Detect context
!`orc-workspace-detect --banner`
Context is injected above (`ORC_*` vars are exported for any Bash you run — do not re-run detection).
In workspace mode, identify the active workspace session and resolve the PR set:
- Read `${ORC_STATE_DIR}/orc.json`. Find the in-progress se...Address the reviewer feedback on your own PR. Closes the loop: code fixes + thread replies + push.
<pr-number> — optional. If omitted, the command uses gh pr list --head $(git branch --show-current) to find the PR for the current branch.!orc-workspace-detect --banner
Context is injected above (ORC_* vars are exported for any Bash you run — do not re-run detection).
In workspace mode, identify the active workspace session and resolve the PR set:
${ORC_STATE_DIR}/orc.json. Find the in-progress session whose branch matches the active branch (or whose linkedPRs includes the explicit <pr-number> if given).linkedPRs (broadcast across all linked PRs of the workspace flow).--repo <name> narrows to one repo's PR; --repos a,b narrows to a subset. Iron rule: no silent broadcast — when no flag is given and linkedPRs has 2+ entries, prompt via AskUserQuestion: "Address comments on all N PRs / pick a subset / just one PR / cancel."When run from inside a workspace-member repo (cwd is one of the children), follow the workspace-link.json back-pointer up to the workspace registry and proceed.
gh pr view <ref> --json number,title,headRefName,url,reviewThreads
gh api repos/{owner}/{repo}/pulls/{n}/comments --paginate
In workspace mode, run both calls per target PR in parallel and bucket comments by repo (each comment carries the PR's repo name as its origin tag).
Filter to comments where the thread is unresolved. (If the reviewThreads JSON includes a isResolved: false flag, use it; otherwise treat all comments as unresolved unless the user says otherwise.)
Read each comment + the surrounding code (Read the referenced file at the referenced line ±20 lines). Categorize:
Show the user the categorized list with AskUserQuestion:
Two Task calls in the same response:
orc-code-fixer — pass the list of ACTION items with file/line/intended change. Agent applies edits, runs tests, returns a diff + test summary.orc-reply-drafter — pass ALL comments (with categories + the diff from the code-fixer if available). Agent returns a JSON list of {comment_id, reply}.Workspace mode: dispatch one orc-code-fixer per repo (parallel, single response, multiple Task calls), each with repo, repoPath, siblingRepos, and the ACTION items filtered to that repo's PR. Reply-drafter stays singular — pass ALL comments across ALL linked PRs at once so it can write coherent replies that reference cross-repo context where appropriate. The dispatcher merges per-repo fixer outputs before Phase 4.
Show the diff + drafted replies to the user via AskUserQuestion:
orc:git-commit to commit fixes with a Conventional Commit message (e.g. fix: address PR review feedback).git push.gh api repos/{owner}/{repo}/pulls/{n}/comments/{comment-id}/replies -f body="...".gh pr edit <ref> --add-reviewer <reviewer>.In workspace mode, run steps 1–2 per repo with fixes (cd into each repo's worktree first); steps 3–4 run per linked PR. Each repo gets its own commit and push; threads on each PR get their inline replies routed to that PR's {owner}/{repo} path.
Inline replies only. Never post a top-level PR comment summarizing what was addressed. The inline reply on each thread already says what changed; a recap comment duplicates that signal and clutters the PR conversation. Specifically: do NOT call gh pr comment, do NOT call gh api repos/{owner}/{repo}/issues/{n}/comments, do NOT post any standalone "Addressed in :" rollup. One reply per thread, posted via the /pulls/{n}/comments/{id}/replies endpoint above. Nothing else.
Echo the result: number of comments addressed, fix commit SHA, replies posted.
.orc/ writes — interaction is logged in GitHub itself.)npx claudepluginhub higoralves/orc --plugin orc/addressAddresses code review feedback from an OCR session's final.md — parses, corroborates, and implements changes.
/addressFetches open review and issue comments on a pull request, maps each to the exact code, proposes fixes per thread, and drafts replies — applies only after confirmation.