Trim the carried prompt through a write handle, and say why chdir is safe

Commit

peyton-alt1w ago

carryTurnPrompt trims the source worktree's prompt.txt, so it now opens that .entire with the write-capable opener, and logs when prompt.txt shrank since turn start (condensed mid-turn) instead of silently carrying all of it. The follower's process-wide chdir gets a comment on why it is safe.

Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com Entire-Checkpoint: 01M3CP4JX8C19Q88S439HTQZQP

Checkpoints

Track Subagent Work Across Worktrees

Claude CodeOpus 5.5
View session
Checkpoint 1