Visibility lets you keep the prompt small while an oracle carries many plugins. Each plugin gets one of three tiers: always, on-demand or silent. This page explains what each tier controls, what it costs per turn, how the gate that enforces it works, and how to choose.
All tools are bound; visibility controls exposure
A common misconception is that visibility decides whether a plugin's tools are bound to the agent. It doesn't. Every plugin tool, whether always, on-demand or silent, is bound to the agent at compile time. visibility controls three separate things:
- whether the plugin is advertised in the Tier-1 prompt block
- whether it is discoverable through the meta-tools
- whether the LLM can call its tools right now (the CapabilityGate enforces this last one per model call)
The three tiers
| Visibility | Callable by the LLM | Listed in Tier-1 prompt | Discoverable through list_capabilities / load_capability |
|---|---|---|---|
always | Always | Yes | Yes |
on-demand | After load_capability({ names: [...] }) for this thread | No | Yes |
silent | Always (if it ships tools) | No | No |
The default is on-demand. A plugin without an explicit visibility is treated as on-demand.
silent does not hide a tool from the model. A silent tool passes the CapabilityGate exactly like an always tool: it is bound and the LLM can call it on any turn. silent only means "not advertised in Tier-1 and not loadable through the meta-tools." In practice silent plugins contribute middleware or HTTP routes rather than LLM tools. Do not use silent as a security boundary. It is not one.
What each tier is for
| Tier | Use for | Token cost per turn |
|---|---|---|
always | Plugins the agent needs on nearly every turn (for example memory, skills, user-preferences) | ~80 to 150 tokens for the Tier-1 entry + tool schemas (~100 to 300 per tool) on every turn |
on-demand | Plugins useful in narrow situations (for example portal, firecrawl, composio) | No Tier-1 entry; tool schemas only count once the plugin is loaded |
silent | Plugins that act through middleware or HTTP only (for example credits, calls) | No Tier-1 entry and not discoverable; any tools it ships are still bound |
How on-demand gating actually works
Because all tools are bound at compile time, loading a plugin is not about binding. It lifts a filter. The CapabilityGateMiddleware runs on every model call. It reads the thread's loadedPlugins set and trims the tool list the model sees:
alwaysandsilenttools always pass the gate, so the model can call them.on-demandtools pass only when their plugin is inloadedPlugins.
createAgent({ tools }) freezes the bound list, so without the gate a load_capability call that updates state mid-run would have no effect until the next request rebuilt the agent. Filtering inside the middleware lets a load decision take effect on the very next LLM call. The gate is one of the always-on middlewares.
What the model gets on the Workers runtime
From @ixo/oracle-runtime-workers 0.39.0 the gate decides per tool: the tool's own visibility, else the manifest's onDemandTools, else the plugin's visibility. Of the bundled plugins' main tools, the model's tool list on a turn's first call holds the memory search and save tools, list_oracle_documents, search_skills, the two meta-tools, read_result, and the domain tools when domain context is on. Tools that set their own visibility: 'always' (for example the group-room tools of matrix-group-chats) and whatever the host keeps always are bound too. Everything else is named in the prompt's on-demand catalogue and is one load_capability away. A call to a hidden tool loads its plugin instead of running.
Picking a tier
Promoting to always is a deliberate budget choice, because it pays Tier-1 tokens on every turn. silent is for plugins that don't need to be advertised or discovered, because they work through middleware or HTTP. Most plugins should stay on the default, on-demand.
A fork with 50 plugins, all on-demand, can typically keep 3 to 5 loaded per thread. The agent learns to discover through list_capabilities and load through load_capability. Token cost stays bounded while the catalog grows.
Loading and unloading
on-demand plugins live in a per-thread loadedPlugins state field. The set is monotonic: it only grows. Loading a plugin makes its tools available for the rest of that thread, and a new thread starts with an empty loadedPlugins.
There is no "unload" operation. If a thread accumulates too many loaded plugins, starting a new thread is the reset.
On the Workers runtime (0.39.0 and later) the runtime unloads for you, but only on a cold turn, after the provider's prompt cache has expired: plugins that none of the last few turns used leave the tool list. A warm thread never loses a plugin. See Loading and unloading on the Workers runtime.
Per-tool override
A plugin can override visibility per tool by setting visibility on the PluginTool itself. One plugin can then ship a mix, for example one always tool and several on-demand tools, without splitting into two plugins.
Source: PluginManifest.