Docs
Write plugins for Divergence
The same docs ship in the app's plugins folder, so an agent opened there can write a plugin with no other context. Ask your agent, or read along.
Plugin guide
Start here: how the plugins folder works, the manifest, permissions, and the rules for agents that write plugins.
The plugin APIES modules that build the app's views from element trees.
Host APIEvery host method, for UI and process plugins.
Host eventsThe events the host sends to plugins.
Tools and rulesTools and rules that plugins give to every agent.
Native programsExecutables that speak JSON-RPC over stdio.
Agent protocolThe methods an agent provider implements.