{
  "slug": "jj-diff-editors-support-file-by-file-invocation-56cdea66571e",
  "title": "jj diff editors support file-by-file invocation",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-04T15:32:16.000Z",
  "announced_at": "2026-06-04T15:32:16.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When editing changes with a per-file diff editor, set `edit-invocation-mode` to `\"file-by-file\"` under that editor’s `[merge-tools.<tool>]` config; jj then launches the editor once per changed file. [jj v0.42.0 config docs](https://github.com/jj-vcs/jj/blob/v0.42.0/docs/config.md)",
    "examples": [
      "[ui]\ndiff-editor = \"<tool>\"\n\n[merge-tools.<tool>]\nedit-invocation-mode = \"file-by-file\""
    ],
    "gotchas": [
      "Version: v0.42.0",
      "`ui.diff-editor`: Selects the default diff editor; the docs say it defaults to the built-in editor if unset.",
      "`merge-tools.<tool>.edit-invocation-mode` (required): Sets the diff editor invocation mode; use `\"file-by-file\"` to invoke it once per changed file. No mutually exclusive sub-keys are documented.",
      "`merge-tools.<tool>.edit-args`: Sets arguments for the selected diff editor; defaults to `[\"$left\", \"$right\"]` when unset. An empty list makes jj refuse to use the tool for diff editing.",
      "Prerequisite: Use an installed diff editor that supports per-file invocation; the release note names `vimdiff` as an example."
    ]
  },
  "why_it_matters": "Edit changed files separately when using a per-file diff editor with `jj diffedit` or `jj split`.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.42.0",
    "https://github.com/jj-vcs/jj/blob/v0.42.0/docs/config.md"
  ],
  "rank": 0.94026,
  "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-bd1997a42a21f9c4-8:gate",
    "evidence_hash": "cb45ea7e52bf9b9315bd5224707a1b9da8cade154d0c175de2c4c30da101077d"
  },
  "review": {
    "draft_hash": "cf7fb054e36319ef4733496ef0ee9e42651b11fd441a03990a313b4853e236e0",
    "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.94 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
