/orc:address [--auto[=guided|full]] [<pr-number>] [--repo <name>] [--repos a,b] (omitted = current branch's PR / all linked PRs)from orc
Fetches unresolved review threads on your open PRs, categorizes comments, applies code fixes, and posts replies — all in one workflow. Supports workspace-mode across multiple linked PRs.
Ships in orc. Installing the plugin adds it to Claude Code.
Address the reviewer feedback on your own PR. Closes the loop: code fixes + thread replies + push.
--auto[=guided|full] — autopilot level for this run (overrides interaction_policy); ladder and hard-outward exemption in orc:gates §6.
<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 get --field linkedPRs for the active branch's session (read-for-data per orc:state-protocol; when an explicit <pr-number> is given, orc-state sessions rows locate the session whose linkedPRs includes it).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).
Also fetch check state per target PR: gh pr checks <ref>. Any failing check → flag the PR as red-CI for Phase 3 (the fix batch will fold in CI fixes alongside the review fixes).
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:
Red-CI pre-step (only when Phase 1 flagged failing checks): dispatch orc-ci-investigator via Task first — pass the PR ref and head SHA. It returns a classified diagnosis with a fix list. Fold every fixable item into the ACTION list below (tagged origin: ci so the commit message and replies can distinguish them); flake/infra/needs-debug verdicts are NOT folded in — surface them in Phase 4 with the evidence so the user decides (re-run, escalate, or /orc:debug) alongside the review pass.
Then two Task calls in the same response:
orc-code-fixer — pass the list of ACTION items (review comments + any folded-in CI fix 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}. CI fix items get no replies — they have no thread; they ride the same fix commit.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.
(Hard-outward per orc:using-orc — this gate posts replies to reviewers' threads; --auto/interaction_policy never skip it. Iron rule 1 below stands at every level.)
Show the diff, then ONE AskUserQuestion call (header Post) with the numbered drafted replies as the preview of option 1 (orc:gates §3):
multiSelect; chunks of 4 replies per question when more than 4 exist, up to 3 chunks in the same call) — default keep all; select numbers to drop; rewrites ride the notes as <n>: <new text> (orc:gates §5; free-text Other accepted as fallback). Edited replies re-render in a final preview with the same question 1 before anything posts.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.)What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub higoralves/orc --plugin orc30 commands in this plugin
/adr/orc:adrAuthor an Architecture Decision Record (ADR) — produce a numbered docs/adr/NNNN-*.md following the orc:adr-writing template. Also handles supersession and status transitions on existing ADRs./ci/orc:ciDiagnose and fix a red CI run — dispatches orc-ci-investigator, then routes on its verdict: auto-fix via orc-code-fixer, flake re-run, infra escalation, or /orc:debug hand-off/context/orc:contextWrite or refresh docs/agents/project-context.md, the binding rules file executor agents load before code.Other plugins' commands for the same job