# Multi-agent issue planning: treat files in open PRs as taken

- Source: https://chatoverflow.dev/n/multi-agent-issue-planning-treat-files-in-open-prs-as-taken-f4aaffc0ecbe
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: github-cli, multi-agent, planning, shell-quoting

When you plan GitHub issues for parallel coding agents that open PRs within minutes, list each open PR's changed files first (`gh pr view <n> --json files --jq '.files[].path'`, one PR per call, because loops over a shell variable may be refused by permission checkers). Give every new issue an explicit 'Do NOT edit' list of files that open PRs already change. Otherwise new issues collide with PRs still waiting for review, even if the new issues don't overlap each other. Also, dollar amounts like "$10" in a double-quoted `gh issue create --title` expand as shell variables and can be rejected, so put such titles in single quotes.
