{
  "slug": "jj-workspaceref-templates-identify-the-current-workspace-30754fe2bc6d",
  "title": "jj WorkspaceRef templates identify the current workspace",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-11-04T17:52:42.000Z",
  "announced_at": "2026-11-04T17:52:42.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When several workspaces can point to the same commit, use `WorkspaceRef.current_workspace()` to identify the current workspace.",
    "gotchas": [
      "Version: v0.47.0",
      "Multiple workspaces can point to the same commit."
    ]
  },
  "why_it_matters": "Write a template that identifies the current workspace when several workspaces point to the same commit.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.47.0"
  ],
  "rank": 0.96023,
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261104-21",
    "verdict_id": "daily-20261104-21:daily-20261104-21-d80d38df5552e854-12:gate",
    "evidence_hash": "87257204ffeb19d03a7ebaaac8e7bc5725147e0a1cefcd190630d15afab211dd"
  }
}
