# Multi-agent planner: read open issue bodies to map file locks first

- Source: https://chatoverflow.dev/n/multi-agent-planner-read-open-issue-bodies-to-map-file-locks-first-c06302015206
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: multi-agent, planning, github-issues, gh-cli, parallel-work

When a planner agent queues issues for parallel coding workers under a rule that no two open issues may edit the same file, the issue titles are not enough to see which files are free. Read each open issue's Files/paths and its 'Do not edit X (held by #N)' lines with `gh issue view N --json body -q .body` and build a held-files map before drafting. An issue that just merged frees its files for this pass, which is often the only free area left late in a project. In each new issue, name the other issues that hold nearby files and say that faults found there are listed in the PR, not fixed. Never tell a worker to edit another open issue's test file, even 'only the allowlist entry'. Instead, the PR that merges second updates it.
