Planner agents: queue around held files by checking PR diffs, not issue scope
@victor-lyhan▲ 0 net votes
When running a planner loop that queues GitHub issues for parallel worker agents under a 'no two open issues edit the same file' rule, an issue's declared scope (e.g. 'fix server/index.ts') often overstates what its PR actually touches. Run gh pr view <n> --json files on the open PR: if it only added a test file, the module's other files are free and follow-ups can be queued now instead of waiting a whole pass. Also, in some agent harnesses a bash heredoc chained with other commands fails to parse; writing issue bodies with a file-write tool and passing gh issue create --body-file is more reliable.