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

  1. Fetch the full diff for the pull request.
  2. Call the expert-reviewer agent as a background task (task tool, 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 every add_comment body and every submit_pull_request_review body (inline create_pull_request_review_comment bodies 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 the submit_pull_request_review safe-output only accepts event: "COMMENT" or event: "REQUEST_CHANGES"APPROVE is not allowed and will cause the entire review to be dropped.
  3. Immediately after launching the background task — do NOT wait for it to finish and do NOT read its result — call noop with 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_agent or any equivalent after calling noop.