{"version":"2.1.326","anchor":"plugin-hooks-runtime-webassembly-shaderbackdrop-agentca","canonical_anchor":"plugin-hooks-runtime-webassembly-shaderbackdrop-agentca","heading":"Plugin hooks modules gain WebAssembly, Shader and Backdrop elements, agent calls and new events","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/plugin-hooks-runtime-webassembly-shaderbackdrop-agentca","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plugin hooks modules gain WebAssembly, Shader and Backdrop elements, agent calls and new events\n\nPlugin hooks modules can now compile WebAssembly, use Shader and Backdrop, call agents and handle tool.judge and other new events\n\n**Unclear.** What switches WebAssembly on for a hooks module is not known.\n\n**What**\n\nPlugins are add-on packages that extend Claude Code. A plugin's hooks module is its own code, run inside a closed-off sandbox. That runtime now offers more:\n\n- WebAssembly, a compact compiled code format, can be enabled (`isWasmOn`). A reduced, hardened WebAssembly global is installed, and a module that declares shared memory is refused. `$.wasm.compile` and the `wasm.compile` operation are added, and `$.wasm.compile` takes a string naming a .wasm file of the plugin's own.\n\n- Shader and Backdrop elements are validated.\n\n- `$.agent.call` and `$.agent.limits` are added, and `$.audio.speak` takes a signal.\n\n- New events: `tool.judge`, `tool.run`, `ui.pointer` and `agent.call`. A `process.hookEnv` operation is also added.\n\n- `plugin.register` now carries `provides`, `unread` and `requiredByOrganization`, and a module that hooks `plugin.register` makes a reload run plugin storage setup.\n\n- The module scanner records `$.wasm.compile` calls and their .wasm files, detects Shader use, and stores `wasm`, `namesShader` and `shaders` on each module record.\n\n- A plugin whose hooks module is not running shows the hint \"Update or fix the plugin, then run \/reload-plugins\".\n\n**Why**\n\nPlugin authors can do considerably more inside a hooks module. If a plugin's hooks module stops running, update or fix it and use `\/reload-plugins` instead of restarting.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}