Plugin loading
No router code picks plugins. The model reads the index and loads what it needs.
- The index lists every active plugin in one line, from
summaryinplugin.yaml, ending with(load: plugin:<id>). - The model calls
load(plugin:<id>). The plugin'sguide.mdcomes into the prompt and its tools become visible. - Loaded items share one budget. When it is full the least recently used item unloads. Items used in this turn stay until it ends.
unload(id)frees room by hand.
A guide from outside, or a plugin folder with an .outside marker, is loaded as outside content. It can teach steps but cannot unlock anything.
Shortcuts
- Quick commands:
words:inplugin.yaml(spotify, weather, scheduler, calendar ship with some). When the user's own message holds one, the core loads that plugin before the first model step (at most two; never a plugin with an.outsidemarker; never from trigger or job text), so "pause my music" needs no load round trip. - A
run_plugin_toolcall to a real tool of an active plugin that is not loaded yet loads the plugin first and goes on (the gate decides as usual); the result ends with a[core] Notesaying so. An unknown plugin or tool is still refused. Small models skipped the load and then stopped after the refusal.
See Prompt system for the index format and Plugin format for plugin.yaml.