Official

claude

Claude Code agent provider: runs the Claude Code CLI headless for each account.

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/claude@0.2.7

Permissions in 0.2.7

  • Provide agents agents.provideMediumAdds agents to the app.Provide the Claude Code agent and pass its tool calls to plugin tools
  • Run named programs processMediumStarts the listed programs.Run the Claude Code CLI (sessions, sign-in, `claude update`), and ask the npm installation that owns it about a newer versionPrograms: claudenpm
  • Read files fs.readMediumReads files in the listed places.Read Claude Code's sessions, settings and skills (in ~/.claude, other accounts' ~/.claude-* folders, the shared skills and the folder you choose in Settings), the project's .claude folder, the administrator's skill policy, and once, what the previous provider keptPlaces: ~/.claude/**~/.claude*/**~/.agents/skills/**the open workspaceits own data folder/Library/Application Support/ClaudeCode/managed-settings.json/etc/claude-code/managed-settings.json${settings.configDir}
  • Environment variables envMediumReads the listed environment variables.Find Claude Code's configuration directory, and the launch settings you set in CLAUDE_* variables (extra arguments, MCP servers, setting sources, appended system prompt, extra folders)Variables: HOMECLAUDE_CONFIG_DIRCLAUDE_EXTRA_ARGSCLAUDE_MCP_CONFIGCLAUDE_STRICT_MCP_CONFIGCLAUDE_SETTING_SOURCESCLAUDE_APPEND_SYSTEM_PROMPTCLAUDE_ADD_DIRS

Files

state.test.ts1.9 KB
// Which session sent a message from another one (`SessionStore.senders`).
import assert from "node:assert/strict";
import { mkdir, rm, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { test, run, useApi, tempDir, files } from "./testing.ts";
import { SessionStore } from "./state.ts";
import { diskFs, fakeApi, memoryStorage } from "../sdk/testing.ts";

async function note(dir: string, pid: number, sessionId: string, startedAt: number) {
  await mkdir(join(dir, "sessions"), { recursive: true });
  await writeFile(join(dir, "sessions", `${pid}.json`), JSON.stringify({ pid, sessionId, startedAt, name: "nexus-b1" }));
}

test("a message names the host session that sent it, also after the sender quit", async () => {
  const dir = tempDir();
  const storage = memoryStorage({ "alias:cli-b": "host-b" });
  useApi(fakeApi({ onHost: storage, fs: diskFs() }));
  const store = new SessionStore();
  await note(dir, 4242, "cli-b", 1000);
  await note(dir, 5151, "cli-c", 1000);
  const senders = [
    { id: "m1", pid: 4242, at: 2000 },
    { id: "m2", pid: 5151, at: 2000 },
  ];
  const found = await run(store.senders(files(), dir, senders));
  assert.deepEqual([...found], [["m1", "host-b"], ["m2", "cli-c"]], "a session started over goes by its alias");
  await rm(join(dir, "sessions"), { recursive: true });
  assert.deepEqual([...(await run(store.senders(files(), dir, senders)))], [["m1", "host-b"], ["m2", "cli-c"]]);
});

test("a process that started after the message is not taken for its sender", async () => {
  const dir = tempDir();
  const storage = memoryStorage();
  useApi(fakeApi({ onHost: storage, fs: diskFs() }));
  await note(dir, 4242, "cli-later", 3000);
  const found = await run(new SessionStore().senders(files(), dir, [{ id: "m1", pid: 4242, at: 2000 }]));
  assert.equal(found.size, 0);
  assert.equal(storage.values.has("sender:m1"), false, "nothing is kept, so a later read can still tell");
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.7latestNov 21, 2026>=5 <6207.5 KB4 permissionsListed
0.2.6Nov 16, 2026>=5 <6206 KB4 permissionsListed
0.2.5Nov 11, 2026>=5 <6168.3 KB4 permissionsListed
0.2.4Nov 9, 2026>=5 <6166.1 KB4 permissionsListed
0.2.3Oct 27, 2026>=2 <4151.6 KB4 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.