From dbce9a4dc97ffad60fe9330f53e3c365a5fc7223 Mon Sep 17 00:00:00 2001 From: "Claude (claude)" Date: Mon, 3 Aug 2026 13:32:07 +0200 Subject: [PATCH] docs: jj workspaces live inside the repo under .workspaces --- rules/GitWorktrees.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/GitWorktrees.md b/rules/GitWorktrees.md index e32c2e0..ea93d09 100644 --- a/rules/GitWorktrees.md +++ b/rules/GitWorktrees.md @@ -1,6 +1,6 @@ Parallel-work isolation routes by the repo's VCS. Agents work in jj changes wherever jj is available; git commits and branches are the human-boundary artifact (push, PR, review). -In a jj-colocated repo (`.jj/` at root): never use git worktrees or `isolation: "worktree"` agent spawns. `git worktree add` mutates refs behind jj's back, and jj's auto-snapshot does not cover trees it doesn't own. Use one `jj workspace add ../repo-` per parallel agent (shared store and op-log, isolated working copy); clean up with `jj workspace forget`. Mechanics in the JujutsuToolkit skill; commit and push discipline in VersionControl/Jujutsu.md. +In a jj-colocated repo (`.jj/` at root): never use git worktrees or `isolation: "worktree"` agent spawns. `git worktree add` mutates refs behind jj's back, and jj's auto-snapshot does not cover trees it doesn't own. Use one `jj workspace add .workspaces/` per parallel agent (shared store and op-log, isolated working copy); clean up with `jj workspace forget`. Workspaces live in `.workspaces/` inside the repo, ignored by `.gitignore` (add the entry before creating the first workspace); sibling directories (`../repo-`) pollute the parent directory and break IDE workspace paths. Mechanics in the JujutsuToolkit skill; commit and push discipline in VersionControl/Jujutsu.md. In a git-only repo, use git worktrees for parallel feature work instead of stashing or switching branches: