Skip to content

docs(agents): add parallel agent coordination protocol to CLAUDE.md#430

Merged
bokelley merged 2 commits intomainfrom
claude/issue-425-parallel-agent-coordination
May 3, 2026
Merged

docs(agents): add parallel agent coordination protocol to CLAUDE.md#430
bokelley merged 2 commits intomainfrom
claude/issue-425-parallel-agent-coordination

Conversation

@bokelley
Copy link
Copy Markdown
Contributor

@bokelley bokelley commented May 3, 2026

Closes #425

Adds a ## Parallel Agent Coordination section to CLAUDE.md with a write-scope prompt template, pre-spawn checklist, and enforcement rationale. The W2/W3 collisions observed in issue #425 occurred because parallel sub-agents had no mechanism for declaring which files they owned; this pattern establishes that contract at the prompt level, which is the only enforcement point available (agents do not detect or refuse out-of-scope writes at runtime).

The section covers: (1) a prompt template with explicit read/write scope fields (write scope requires exact paths, no globs), (2) a four-step pre-spawn checklist including dynamic-discovery handling and shared-file ownership assignment, and (3) a post-completion collision check using git log --name-only.

What tested

  • ruff check src/ — passed (docs-only change, no Python source modified)
  • No mypy or pytest changes required (CLAUDE.md is not imported or tested)

Pre-PR review

  • code-reviewer: approved — all blockers resolved (ambiguous git command fixed, rationale reframed, dynamic discovery addressed, shared-file ownership rule added)
  • docs-expert: approved — lands-well; tone present-tense, template agent-parseable, section appropriately scoped. Nit: git log --name-only --diff-filter=ACM --oneline -<N> is more reliable than the current form for avoiding noise from merge commits — not a blocker.

Triage-managed PR. This bot does not currently iterate on
review comments or PR conversation threads (only on the source
issue). To unblock:

  • Push fixup commits directly: gh pr checkout <num>
    fix → push.
  • Or re-trigger: comment /triage execute on the source
    issue.

See adcp#3121
for context.

Session: https://claude.ai/code/session_01BojvrVjuAKWkJFda4dBMDU


Generated by Claude Code

@bokelley bokelley marked this pull request as ready for review May 3, 2026 03:58
claude added 2 commits May 3, 2026 00:00
Adds write-scope partitioning pattern, prompt template, and pre-spawn
checklist to prevent silent file-collision overwrites when spawning
parallel sub-agents (observed as W2/W3 cycle collisions, issue #425).

https://claude.ai/code/session_01BojvrVjuAKWkJFda4dBMDU
…tion

- Use git log for collision check (git diff --name-only is ambiguous after commits)
- Add "no globs" note on write scope
- Add guidance for dynamic file discovery during execution
- Add shared-file ownership rule for checklist
- Drop misleading "was introduced after" rationale paragraph; replace with
  present-tense enforcement rule

https://claude.ai/code/session_01BojvrVjuAKWkJFda4dBMDU
@bokelley bokelley force-pushed the claude/issue-425-parallel-agent-coordination branch from a87a22e to ee7f303 Compare May 3, 2026 04:00
@bokelley bokelley merged commit abf0d65 into main May 3, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(agents): coordination protocol for parallel sub-agents

2 participants