Official

chat

Built-in chat 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/chat@0.2.7

Permissions in 0.2.7

  • Control chats chats.controlHighCreates chats, sends prompts and cancels runs.Send prompts, answer agent questions, and create, change, fork, revert, stop and group chats
  • Run other plugins' commands commands.runHighRuns commands of other plugins.Run the sidebar's New chat command from the title bar
  • Read chats chats.readMediumReads your transcripts and chat lists.Show workspaces, tasks, chats and transcripts, and follow them as agents work
  • Read files fs.readMediumReads files in the listed places.Suggest workspace files for @ mentionsPlaces: the open workspace
  • Show panels ui.slotsAlways grantedShows views in the listed parts of the window.Draw the chat grid, the title bar, and the Session panel with its rail buttonSlots: centertitlerailright

Files

contract.ts1.6 KB
// The divergence/chat service: what the chat view knows that the sidebar
// shows too, the chats with a prompt waiting in the queue, the titles of
// unsent drafts and the chats whose sent prompt is starting a run the host
// has not reported yet. Read once, then followed through events.
import * as z from "zod";
import { defineService } from "divergence/services";

export const QueuedChats = z.array(z.string());
export const DraftTitles = z.record(z.string(), z.string());
export const StartingChats = z.array(z.string());

export const Chat = defineService("divergence/chat", "1.5.0", {
  methods: {
    queued: { params: z.object({}), result: QueuedChats },
    draftTitles: { params: z.object({}), result: DraftTitles },
    starting: { params: z.object({}), result: StartingChats },
    submitDraft: { params: z.object({ chatId: z.string(), queue: z.boolean() }), result: z.null() },
    // Takes a queued chat out of the queue; it stays a draft.
    unqueue: { params: z.object({ chatId: z.string() }), result: z.null() },
    // Reads the chat's transcript ahead of time: the pointer is on its row.
    prefetch: { params: z.object({ chatId: z.string() }), result: z.null() },
    // Puts Markdown in the open chat's prompt box as a quote, after what is
    // typed, and gives the box the keyboard: a reply to code in a tab.
    quote: {
      params: z.object({ text: z.string() }),
      result: z.null(),
      errors: [z.object({ _tag: z.literal("NoOpenChat"), message: z.string() })],
    },
  },
  events: {
    queuedChanged: QueuedChats,
    draftTitlesChanged: DraftTitles,
    startingChanged: StartingChats,
  },
});
export type Chat = typeof Chat;

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.9latestNov 21, 2026>=5 <6349 KB5 permissionsListed
0.2.8Nov 16, 2026>=5 <6348.6 KB5 permissionsListed
0.2.7Nov 11, 2026>=5 <6314.3 KB5 permissionsListed
0.2.6Nov 9, 2026>=5 <6306.2 KB5 permissionsListed
0.2.5Oct 27, 2026>=2 <4178.6 KB5 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.