Official

git

Built-in git UI (JavaScript UI plugin).

The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/git@0.3.0

Permissions in 0.3.0

  • Run git commands git.writeHighRuns any git command.Stage, commit, switch branches and sync with the remote
  • Use your agents' models models.useHighRuns prompts through the agents you enabled.Write commit messages and pull requests with the cheapest model of your agents, on your own account
  • Read chats chats.readMediumReads your transcripts and chat lists.Refresh when an agent finishes a turn
  • Run named programs processMediumStarts the listed programs.Find and open the branch's pull request with the GitHub CLIPrograms: gh
  • Read git status and diffs git.readLowReads git status and diffs.Show the repository's status and diffs, and follow its changes
  • Show panels ui.slotsAlways grantedShows views in the listed parts of the window.Show the source control button and panelSlots: railright

Files

tabs.test.ts2.4 KB
// Git opens diffs and files through the divergence/tabs service. Real
// activation with a canned tabs client: opening calls the service, and
// without a provider the repository actions still run.
import assert from "node:assert/strict";
import { test } from "node:test";
import activate from "./main.ts";
import { fakeApi } from "./testing.ts";

test("diffs and files open through the tabs service", async () => {
  const fake = fakeApi({ tabs: true });
  const dispose = activate(fake.api);
  try {
    await fake.settle();
    fake.action("changes", "src/a.ts", "file");
    await fake.settle();
    assert.deepEqual(fake.tabsCalls, [
      { method: "open", params: { kind: "file", workspaceId: "w1", path: "src/a.ts" } },
    ]);
    fake.tabsCalls.length = 0;
    fake.invoke("git-tree-changes", "onSelect", { id: "src/a.ts", folder: false });
    await fake.settle();
    assert.ok(fake.calls.some((call) => call.method === "host/git.diff"));
    assert.deepEqual(fake.tabsCalls, [
      {
        method: "open",
        params: {
          kind: "diff",
          workspaceId: "w1",
          path: "src/a.ts",
          diff: "--- a/src/a.ts\n+++ b/src/a.ts\n@@ -1 +1 @@\n-old\n+new",
        },
      },
    ]);
  } finally {
    await dispose();
  }
});

test("without the tabs plugin diffs still load and nothing opens", async () => {
  const fake = fakeApi({ tabs: false });
  const dispose = activate(fake.api);
  try {
    await fake.settle();
    fake.invoke("git-tree-changes", "onSelect", { id: "src/a.ts", folder: false });
    await fake.settle();
    assert.ok(fake.calls.some((call) => call.method === "host/git.diff"));
    assert.deepEqual(fake.tabsCalls, []);
    assert.equal(fake.state().shared?.openTab, undefined);
  } finally {
    await dispose();
  }
});

test("Show Source Control opens the panel with its message box holding the keyboard, and closes it again", async () => {
  const fake = fakeApi({ tabs: false });
  const dispose = activate(fake.api);
  try {
    await fake.settle();
    fake.update({ shared: { rightPanel: null } });
    await fake.command("git.toggle");
    assert.equal(fake.state().shared?.rightPanel, "git");
    assert.deepEqual(fake.focused, ["git-message"]);
    await fake.command("git.toggle");
    assert.equal(fake.state().shared?.rightPanel, null);
    assert.deepEqual(fake.focused, ["git-message"], "closing leaves the keyboard where it is");
  } finally {
    await dispose();
  }
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.3.3latestNov 21, 2026>=5 <630.8 KB6 permissionsListed
0.3.2Nov 16, 2026>=5 <630.4 KB6 permissionsListed
0.3.1Nov 11, 2026>=5 <630.2 KB6 permissionsListed
0.3.0Nov 9, 2026>=5 <629.2 KB6 permissionsListed
0.2.1Oct 27, 2026>=2 <413.6 KB4 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.