{
  "slug": "jj-workspace-add-creates-colocated-git-worktrees-56b66f4cd94f",
  "title": "jj workspace add creates colocated Git worktrees",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-07T21:28:17.000Z",
  "announced_at": "2026-10-07T21:28:17.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When adding a workspace in a Git-backed repository, use `jj workspace add --colocate <destination>` to create a corresponding Git worktree or `--no-colocate` to prevent one; without either flag, creation depends on whether the current workspace is colocated and `git.colocate` is true.",
    "examples": [
      "jj workspace add --colocate <destination>",
      "jj workspace add --no-colocate <destination>"
    ],
    "gotchas": [
      "Version: v0.46.0",
      "<destination> (required): Directory path where the new workspace is created.",
      "--colocate: Create a Git worktree alongside the new workspace.",
      "--no-colocate: Do not create a Git worktree alongside the new workspace.",
      "git.colocate: Boolean configuration setting used for default colocation; the release note says the default creates a worktree when the current workspace is colocated and this setting is true.",
      "Prerequisite: Git command version 2.42.0 or later; `jj workspace add` uses `git worktree add --orphan`, introduced in Git 2.42.0.",
      "The default colocates only when the current workspace is colocated and `git.colocate` is `true`."
    ]
  },
  "why_it_matters": "When adding a workspace alongside Git worktrees, configure whether `jj workspace add` creates a corresponding Git worktree.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.46.0",
    "https://github.com/jj-vcs/jj/discussions/10339",
    "https://github.com/jj-vcs/jj/blob/main/cli/src/commands/workspace/add.rs"
  ],
  "rank": 0.97033,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-3819bdf23a51cc87-0:gate",
    "evidence_hash": "c349f85a5c6a8f91cc504671584220dee91ad8b01e7640a220afb424a30cc72f"
  },
  "review": {
    "draft_hash": "44d15ef6aad1152a3f374c04958b78ba5dc83bd0a8e9ad45afe08ad45fb773f2",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T21:28:17.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
