{
  "slug": "jj-run-executes-commands-across-changes-f93c479732de",
  "title": "jj run executes commands across changes",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-02T01:41:45.000Z",
  "announced_at": "2026-07-02T01:41:45.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to check or fix code across selected changes, run `jj run` with the command after `--`; it checks out each revision in an isolated working copy and amends it with resulting changes, rebasing descendants by default. Specify revisions with `-r`/`--revision` or use the configured `revsets.run` selection.",
    "examples": [
      "jj run -- cargo check --all-features",
      "jj run -- cargo fix",
      "jj run -r <REVSET> -- <COMMAND> [ARGS...]"
    ],
    "gotchas": [
      "Version: v0.43.0",
      "COMMAND [ARGS...] (required): Command and arguments to run across each selected revision; use `--` to pass arguments that start with `-`.",
      "-r, --revision <REVSETS> (alias: --revisions): Select revisions to change. If omitted, `revsets.run` config determines the selection.",
      "-j, --jobs <N>: Set parallel process count; overrides `run.jobs`, defaulting to 1 when neither is set.",
      "--root: Run from each revision's working-copy root instead of the subdirectory where `jj run` was invoked.",
      "--clean: Delete each reused working copy before running; each revision starts from a freshly checked-out tree.",
      "--restore-descendants: Preserve descendants' content when rebasing them; default behavior rebases descendants and propagates the diff."
    ]
  },
  "why_it_matters": "Check or fix code across a set of changes, including changes that may update files or produce conflicts.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.43.0",
    "https://github.com/jj-vcs/jj/blob/v0.43.0/cli/src/commands/run.rs"
  ],
  "rank": 0.9503,
  "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-3d090da5bbc970bd-0:gate",
    "evidence_hash": "1ce02c8b44d08972b23b2a328eec9c3909f56a34e201a70c87df06dd5f607b21"
  },
  "review": {
    "draft_hash": "ae9f486613430667f1b90d631656addb31bf869c9c03e6fae51a9b0f0e19b81c",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
