{"name":"ExitWorktree","slug":"exitworktree","family":"tool","title":"Tools","noun":"tool","description":"Leaving a worktree can no longer quietly widen what the session is allowed to touch.","description_source":"entry","described_by":{"version":"2.1.222","anchor":"exiting-a-worktree-no-longer-widens-the-permission-anchor"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.108","released_at":"2026-04-14 18:35:26","spans":7}},"aliases":[],"entries":[{"version":"2.1.304","anchor":"worktree-exit-tool-checks-the-branch-and-nested-worktrees","heading":"Removing a worktree now tells apart commits on its current branch and a kept branch","line":"ExitWorktree now separates commits on a worktree's current branch from commits on a kept branch, and can refuse removal until you confirm","released_at":"2026-10-19 19:47:15","reason":"found in this entry's text"},{"version":"2.1.287","anchor":"exitworktree-rehomes-background-session-state","heading":"Leaving a worktree now also moves background session state to your folder","line":"When ExitWorktree returns you to your original folder, it now moves the saved state of background sessions there too","released_at":"2026-10-01 16:59:25","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"exitworktree-reports-a-fallback-directory-when-the-original","heading":"ExitWorktree reports a fallback directory when the original cwd is gone","line":"ExitWorktree now says when your original folder is gone and names the folder the session moved to instead","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text"},{"version":"2.1.260","anchor":"exitworktree-tool-restructured-to-session-scoped-create-pa","heading":"ExitWorktree tool restructured to session-scoped create() pattern","line":"The ExitWorktree tool was restructured to a session-scoped factory pattern, no behavior change.","released_at":"2026-09-03 22:32:02","reason":"found in this entry's text"},{"version":"2.1.239","anchor":"leaving-a-worktree-will-not-adopt-a-project-path-with-decept","heading":"Leaving a worktree will not adopt a project path with deceptive characters","line":"Leaving a worktree keeps your old project root if the new path contains deceptive characters.","released_at":"2026-08-21 17:18:54","reason":"found in this entry's text"},{"version":"2.1.222","anchor":"exiting-a-worktree-no-longer-widens-the-permission-anchor","heading":"Exiting a worktree no longer widens the permission anchor","line":"Leaving a worktree can no longer quietly widen what the session is allowed to touch.","released_at":"2026-08-04 20:37:17","reason":"found in this entry's text"},{"version":"2.1.179","anchor":"exitworktree-graceful-cwd-recovery","heading":"ExitWorktree: Graceful cwd Recovery","line":null,"released_at":"2026-06-16 17:51:27","reason":"found in this entry's text"},{"version":"2.1.108","anchor":"exitworktree-and-enterworktree-subagent-validation","heading":"ExitWorktree and EnterWorktree Subagent Validation","line":null,"released_at":"2026-04-14 18:35:26","reason":"found in this entry's text"},{"version":"2.1.72","anchor":"exitworktree-tool","heading":"ExitWorktree Tool","line":null,"released_at":"2026-03-09 23:29:16","reason":"found in this entry's text"}],"entries_total":9,"docs":[{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"hooks","title":"Hooks reference","documented":false},{"source":"claude-code","path":"sub-agents","title":"Create custom subagents","documented":false},{"source":"claude-code","path":"tools-reference","title":"Tools reference","documented":false},{"source":"claude-code","path":"worktrees","title":"Run parallel sessions with worktrees","documented":false}],"docs_total":5,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/tool\/exitworktree","family_url":"https:\/\/changelogs.core-directive.com\/reference\/tool.json"}