# Stop Claude and Codex editing the same files

Run this in your project before starting two coding assistants. Replace the brackets with two concrete tasks.

```text
Plan a safe split for two coding assistants in this project.

Assistant A goal: [specific change]
Assistant B goal: [specific change]
Integration owner: [who reviews and combines the work]

Read the project instructions, package/build manifest, git status and
current diff. This is a read-only planning pass. Do not edit, reset,
stash, delete, commit or install anything. Preserve existing work.

1. Identify the files each goal actually needs. Flag relevant existing
   edits and ask before assigning those files to a different assistant.
2. Return an ownership table: assistant, goal, exact owned files,
   dependencies, acceptance checks and real verification commands.
3. Give every file one writer. Check shared types, entrypoints, config,
   generated files and lockfiles for overlap. If tasks share a file,
   sequence them or keep that file with the integration owner.
4. Write two ready-to-paste worker briefs. Each must state the goal,
   owned files, files to read, boundaries, acceptance checks and commands.
   Tell each worker others are editing the project and to preserve
   their changes. Stop and report if ownership needs to expand.
5. Give the integration owner a short order of operations and combined
   verification checklist. Derive commands from this project, not a
   generic stack. Mark unavailable commands explicitly.

Do not claim a command passed unless it ran. Keep credentials,
deployments, paid actions and external messages with the owner.
Return the plan and worker briefs, then stop before implementation.
```

Before dispatching: check that no file appears in both write lists. Shared read access is fine. Review both diffs and run the combined checks before shipping.
