Skills
Claude Code Subagent Isolation Fix: Worktree and CWD Overrides No Longer Leak Working Directory to Parent Session's Bash Tool
A critical isolation bug in Claude Code was fixed in v2.1.97: subagents with worktree isolation or cwd: override were leaking their working directory to the parent session's Bash tool, meaning the parent agent could inadvertently execute commands in the subagent's directory context. Additionally, compaction was writing duplicate multi-MB subagent transcript files on prompt-too-long retries, bloating session storage. Both fixes are essential for anyone running parallel agent workflows with worktree isolation — the directory leak could cause cross-contamination between agents working on different branches.
↳ Follow the thread