Subagents do not inherit the orchestrator's `cd`, so dispatched prompts that referred to files relative to the worktree were resolved against the bare repo root and failed with "file not found" (observed when @check tried to read src/main.rs after Phase 3). Phase 3 now captures `WORKTREE_PATH="$(pwd)"` after entering the worktree. A new "Subagent Dispatch Convention" section requires every dispatch in phases 5, 7, 8, 9, and 10 to open with `Worktree: <path>` and pass file references as absolute paths under `$WORKTREE_PATH/`. Phase 9's diff command uses `git -C "$WORKTREE_PATH"` rather than relying on shell CWD, and @pm updates receive the explicit absolute path to `$WORKTREE_PATH/TODO.md`. |
||
|---|---|---|
| .. | ||
| claude | ||
| opencode | ||