Official
acp
ACP agents from the ACP registry (Gemini, Cursor, Droid, Kilo, pi, ...), Oh My Pi, and your own entries (custom.json in the plugin's data folder). Agents are discovered at runtime.
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/acp@0.2.4
Permissions in 0.2.4
Take care. This plugin asks for permissions that can do anything your account can. The app asks you to hold Enable for two seconds or to type the plugin's name before it turns on.
Files
state.ts2.1 KB
// The provider's record of one session: a fresh one, and the session
// state an agent describes at `initialize` before any session exists.
import * as z from "zod";
import type { AcpDefaults, SessionState } from "./types.ts";
/// Modes and models an agent published at `initialize` (`_meta.modeState`,
/// `_meta.modelState`), which is the only place some of them describe a
/// session before one exists.
export function defaultsOf(meta: unknown): AcpDefaults {
const source = z
.looseObject({
modeState: z.record(z.string(), z.unknown()).nullish(),
modelState: z.record(z.string(), z.unknown()).nullish(),
})
.parse(meta ?? {});
return { modes: source.modeState ?? null, models: source.modelState ?? null, configOptions: null };
}
/// A fresh session record.
export function newState(fields: Partial<SessionState> = {}): SessionState {
return {
// The id the agent knows this session by. Usually the host's own
// session id, but an agent that cannot resume gets a fresh one while
// the host keeps addressing the chat by the old id.
live: "",
workspace: "",
run: null,
// Matches an out-of-band end of turn to the turn it ended.
promptId: null,
modes: null,
models: null,
config: [],
commands: [],
// Item ids the current message and reasoning block stream under.
messageItem: null,
thoughtItem: null,
// The last `usage_update`: what the context holds and how large it is.
context: null,
// The agent process this session was established against.
generation: 0,
// The `session/prompt` in flight: ACP allows one per session, and a
// cancel waits on it to know the agent is idle again.
prompting: null,
cancelling: false,
// Plugin tools and instructions from the host, and the address of the
// host's MCP server that serves the tools to this session.
tools: [],
instructions: null,
instructionsSent: false,
mcpUrl: null,
// The chat's permission mode; empty until the user chose one, which
// means the agent's default (`modeOf`).
mode: "",
...fields,
};
}Versions
| Version | Published | Plugin API | Size | Permissions | Status |
|---|---|---|---|---|---|
| 0.2.5latest | Nov 21, 2026 | >=5 <6 | 134 KB | 6 permissions | Listed |
| 0.2.4 | Nov 16, 2026 | >=5 <6 | 132.8 KB | 6 permissions | Listed |
| 0.2.3 | Nov 11, 2026 | >=5 <6 | 108.9 KB | 6 permissions | Listed |
| 0.2.2 | Nov 9, 2026 | >=5 <6 | 105.6 KB | 6 permissions | Listed |
| 0.2.1 | Oct 27, 2026 | >=2 <4 | 105.3 KB | 6 permissions | Listed |
No comments yet.