From e1c19c12c35ee3b396092e46e3cf2892197fc6d6 Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Sat, 10 Jan 2026 16:13:09 +0100 Subject: [PATCH] Fix spawn-issues to use correct subagent_type for each agent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Issue worker: "general-purpose" → "issue-worker" - Code reviewer: Added explicit subagent_type: "code-reviewer" - PR fixer: Added explicit subagent_type: "pr-fixer" Using the wrong agent type caused permission loops when spawning background agents. Co-Authored-By: Claude Opus 4.5 --- commands/spawn-issues.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/commands/spawn-issues.md b/commands/spawn-issues.md index a1cebca..3a8779b 100644 --- a/commands/spawn-issues.md +++ b/commands/spawn-issues.md @@ -75,7 +75,7 @@ For each issue number, spawn a background issue-worker agent and track its task_ ``` Task tool with: - - subagent_type: "general-purpose" + - subagent_type: "issue-worker" - run_in_background: true - prompt: ``` @@ -184,6 +184,14 @@ implementing → (worker done) → reviewing → (approved) → DONE When spawning reviewers, pass the PR number AND branch name from the issue worker result. Each reviewer/fixer uses its own worktree for isolation - this prevents parallel agents from interfering with each other. +**Code Reviewer:** +``` +Task tool with: + - subagent_type: "code-reviewer" + - run_in_background: true + - prompt: +``` + **Code Reviewer Prompt:** ``` You are a code-reviewer agent. Review PR # autonomously. @@ -241,10 +249,18 @@ All done! 3 PRs created and approved ``` -## PR Fixer Prompt +## PR Fixer When spawning pr-fixer for a PR that needs work: +``` +Task tool with: + - subagent_type: "pr-fixer" + - run_in_background: true + - prompt: +``` + +**PR Fixer Prompt:** ``` You are a pr-fixer agent. Address review feedback on PR #.