You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2ec4660
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: cecli/website/docs/config/worktrees.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Every worktree gets a generated branch named `cecli/<agent>-<uuid>`. Agent names
17
17
18
18
## Lifecycle
19
19
20
-
1.**Create** — a worktree is created from the source repository on the generated branch. Remote sources are cached as bare repositories first.
20
+
1.**Create** — a worktree is created from the source repository on the generated branch. An existing checkout for the same agent and repository is reused (ownership is refreshed) instead of creating a duplicate, so repeated or concurrent workflow runs share one checkout. Remote sources are cached as bare repositories first.
21
21
2.**Run** — the agent works inside the worktree; its `root` points at the checkout.
22
22
3.**Release** — on cleanup, a dirty worktree is committed with the subject `Unfinished Dirty Worktree from agent <uuid>` so uncommitted work survives. Branches with unmerged commits are kept; empty or already-merged branches are deleted.
23
23
4.**Remove** — the worktree checkout under `~/.cecli/worktrees/` is removed after the commit/release step. Kept branches remain in the source repository.
@@ -34,7 +34,7 @@ A workflow or delegated agent restored from a saved session keeps its worktree r
34
34
~/.cecli/worktrees/
35
35
_sources/<repo-slug>-<sha8>/ # cached bare clones for remote sources
36
36
<repo-slug>/
37
-
<agent-slug>-<uuid>/ # one linked worktree checkout per run
37
+
<agent-slug>-<uuid>/ # one linked worktree checkout per agent
38
38
```
39
39
40
40
Local `repo:` paths are used in place as the source repository; the checkout itself still lives under the worktrees base directory. Removing a checkout or the whole base directory is safe once a run has finished: commits are on the kept branch, and empty branches are disposable.
0 commit comments