Expert Code Review
June 19, 2026 · View on GitHub
Review pull request #${{ github.event.pull_request.number || github.event.issue.number }} using the expert-reviewer agent defined at .github/agents/expert-reviewer.agent.md.
Instructions
- Fetch the full diff for the pull request.
- Call the
expert-revieweragent as a background task (tasktool,agent_type: "general-purpose",model: "claude-opus-4.6",mode: "background"). Include the PR number, repository owner/name, the full diff content, and the workflow run URL (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) in the subagent prompt. The subagent needs that URL to fill in the Copilot attribution banner that goes at the top of everyadd_commentbody and everysubmit_pull_request_reviewbody (inlinecreate_pull_request_review_commentbodies do not carry the banner — they inherit it from the bundled review). See the Copilot Attribution Banner section of the agent definition. Also remind the subagent in its prompt that thesubmit_pull_request_reviewsafe-output only acceptsevent: "COMMENT"orevent: "REQUEST_CHANGES"—APPROVEis not allowed and will cause the entire review to be dropped. - Immediately after launching the background task — do NOT wait for it to finish and do NOT read its result — call
noopwith a brief status message such as"Expert-reviewer launched in background for PR #N. It will post the review directly.". Then stop. The subagent has direct access to the safe-output tools and will post its own review (create_pull_request_review_comment,add_comment,submit_pull_request_review) without any further action from you.
Important: Reading the background agent result would pull its entire conversation (2+ million tokens from spawning 21 dimension sub-agents) into your context, causing a server error. Do not call
read_agentor any equivalent after callingnoop.