Visibility tiers: always, on-demand and silent

How the always, on-demand and silent tiers decide whether a QiForge plugin is advertised, discoverable and callable, what each costs, and how to pick one.

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

VisibilityCallable by the LLMListed in Tier-1 promptDiscoverable through list_capabilities / load_capability
alwaysAlwaysYesYes
on-demandAfter load_capability({ names: [...] }) for this threadNoYes
silentAlways (if it ships tools)NoNo

The default is on-demand. A plugin without an explicit visibility is treated as on-demand.

What each tier is for

TierUse forToken cost per turn
alwaysPlugins 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-demandPlugins useful in narrow situations (for example portal, firecrawl, composio)No Tier-1 entry; tool schemas only count once the plugin is loaded
silentPlugins 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:

  • always and silent tools always pass the gate, so the model can call them.
  • on-demand tools pass only when their plugin is in loadedPlugins.

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.

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.