Plugin loading

No router code picks plugins. The model reads the index and loads what it needs.

  1. The index lists every active plugin in one line, from summary in plugin.yaml, ending with (load: plugin:<id>).
  2. The model calls load(plugin:<id>). The plugin's guide.md comes into the prompt and its tools become visible.
  3. Loaded items share one budget. When it is full the least recently used item unloads. Items used in this turn stay until it ends.
  4. 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

See Prompt system for the index format and Plugin format for plugin.yaml.