{"version":"2.1.238","anchor":"claude-is-told-to-stay-in-a-worktree-even-when-it-did-not-cr","canonical_anchor":"claude-is-told-to-stay-in-a-worktree-even-when-it-did-not-cr","heading":"Claude is told to stay in a worktree even when it did not create one","tier":"notice","area":"Agents","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238\/e\/claude-is-told-to-stay-in-a-worktree-even-when-it-did-not-cr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238","markdown":"### Claude is told to stay in a worktree even when it did not create one\n\nClaude is warned to stay in your git worktree even when it did not create the worktree.\n\n**What**\n\nThe system prompt's warning not to `cd` back to the repository root now fires whenever your working directory is a linked git worktree, not just for worktree sessions Claude set up itself. Applied in both system prompt builders.\n\n**Evidence**\n\n`an isolated copy of the repository. Run all commands from this directory.`\n\n- Area: Agents\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}