Skip to content

Plugins: tools from a plugin app, switched on per conversation - #279

Merged
bencode merged 1 commit into
mainfrom
feat/plugins
Oct 28, 2026
Merged

bencode merged 1 commit into
mainfrom
feat/plugins

Conversation

@bencode

@bencode bencode commented Oct 28, 2026

Copy link
Copy Markdown
Owner

What

A deployment can name a plugin app with GAMMA_PLUGINS_URL. The reader then:

  • links to it from the project menu (Plugins, below Memory);
  • asks {url}/manifest, with the browser's cookie, which plugins this browser has connected;
  • shows each connected plugin as a switch below the chat input, beside web search, off by default;
  • while a switch is on, gives that conversation's assistant the plugin's tools. Each call is a POST {url}/{plugin}/tools/{tool} that runs on the plugin app.

Without the variable, nothing appears and no plugin request is made. The reader names no particular plugin; docs/plugins.md describes the protocol.

How

  • Tools are loaded at runtime. Tool definitions come from the manifest. The reader drops any plugin or tool that does not fit the protocol: a tool name must start with <plugin>_, so it cannot shadow the reader's own tools.
  • Refreshing. The manifest is asked for again whenever the reader's tab becomes visible, so a plugin connected or disconnected in the plugin app's tab appears or goes on return.
  • Which tools a message gets. Plugin tools are set just before each message is sent. That message gets the plugins that are connected and turned on at that moment, and a running reply keeps the tools it started with.

Checks

pnpm check passes. New tests:

  • the manifest is read and filtered;
  • tool calls use the right address and send the cookie, and a refusal's reason reaches the model;
  • an integration test covers the whole round trip: switch off, then on, then the plugin disconnected.

… on per conversation

A deployment names a plugin app with GAMMA_PLUGINS_URL. The reader then links to it from the
project menu and asks its manifest which plugins this browser has connected; each shows a
switch below the chat input, and while on, that conversation's assistant has its tools, which
run on the plugin app. docs/plugins.md describes the protocol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant