{"name":"worktreeBranch","slug":"worktreebranch","family":"setting","title":"Settings keys","noun":"settings key","description":"Agent records keep their worktree history across saves, so lineage info no longer gets wiped.","description_source":"entry","described_by":{"version":"2.1.222","anchor":"agent-state-writes-preserve-worktree-provenance"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.322","builds":0,"mined_builds":161,"first_cited":{"version":"2.1.248","released_at":"2026-08-27 20:35:36","spans":2}},"aliases":[],"entries":[{"version":"2.1.269","anchor":"agent-resume-gains-worktreebranch-and-name-validation-ground","heading":"Agent resume gains worktreeBranch and name validation groundwork","line":"Resuming an agent now validates its worktree branch and name before proceeding","released_at":"2026-09-11 18:12:49","reason":"found in this entry's text, named in this entry"},{"version":"2.1.260","anchor":"minor-formatting-fix-in-worktree-removal-tool-result","heading":"Minor formatting fix in worktree-removal tool result","line":"Worktree-removal result formatting was cleaned up with no behavior change.","released_at":"2026-09-03 22:32:02","reason":"found in this entry's text"},{"version":"2.1.257","anchor":"forked-background-sessions-get-an-explicit-worktree-warning","heading":"Forked background sessions get an explicit worktree warning injected into transcript","line":"A forked background session now gets a transcript message warning it never to edit the parent worktree.","released_at":"2026-09-01 17:15:33","reason":"found in this entry's text"},{"version":"2.1.248","anchor":"worktree-exit-dialog-no-longer-pretends-an-uncountable-branc","heading":"Worktree exit dialog no longer pretends an uncountable branch has zero commits","line":"Leaving a worktree warns about possible unpushed commits instead of claiming zero.","released_at":"2026-08-27 20:35:36","reason":"found in this entry's text"},{"version":"2.1.222","anchor":"agent-state-writes-preserve-worktree-provenance","heading":"Agent state writes preserve worktree provenance","line":"Agent records keep their worktree history across saves, so lineage info no longer gets wiped.","released_at":"2026-08-04 20:37:17","reason":"found in this entry's text"},{"version":"2.1.119","anchor":"spawn-mode-for-worktree-isolation","heading":"Spawn Mode for Worktree Isolation","line":null,"released_at":"2026-04-23 21:36:46","reason":"found in this entry's text"}],"entries_total":6,"docs":[{"source":"claude-code","path":"agent-sdk\/python","title":"Agent SDK reference - Python","documented":false},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false}],"docs_total":2,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/setting\/worktreebranch","family_url":"https:\/\/changelogs.core-directive.com\/reference\/setting.json"}