pr-review: Don't run review agents in the background
Summary
When /mach10:pr-review delegates to pr-review-toolkit:review-pr, review agents may be launched with run_in_background: true on Task tool calls. This provides no benefit because the orchestrator must wait for all agents to complete before it can aggregate results and move on.
Current Behavior
Review agents can be launched in the background via run_in_background: true, requiring the orchestrator to poll output files and manage completion tracking. This adds complexity without any throughput gain since Step 6 (Aggregate Results) cannot proceed until every agent has finished.
Proposed Behavior
Review agents should always be launched in the foreground. For concurrent execution, multiple Task tool calls should be sent in a single message (true parallel foreground calls) rather than using background execution. This is simpler and achieves the same concurrency.
Acceptance Criteria
- The
pr-review-toolkit:review-prcommand explicitly instructs Claude not to userun_in_backgroundwhen launching review agents - Parallel execution (when requested) uses multiple foreground Task calls in a single message instead
Technical Notes
- Root cause is in the
pr-review-toolkitplugin (commands/review-pr.md, lines 45-55), not in mach10'scommands/pr-review.mdwhich is a thin orchestration layer - The distinction is between
run_in_background: true(async polling) vs. multiple foreground Task calls in one message (true parallel with automatic result collection)
Progress: Implementation complete
Implemented in commit cc499a9 on branch feature/issue-12-13-pr-review-improvements.
Changes to commands/pr-review.md (Step 3):
Added a third bullet to the Skill invocation instructions requiring every invocation to include: "IMPORTANT: Do NOT use run_in_background: true when launching review agents. For parallel execution, launch multiple foreground Task calls in a single message instead."
This is a pass-through instruction since the root cause is in pr-review-toolkit's review-pr.md, but mach10 controls the invocation context. The instruction is passed as part of the Skill tool argument text.
All acceptance criteria addressed. Combined with issue #12 fix in the same commit.