@xemahq/opencode-xema-plugin
v0.1.3
Published
Opencode plugin providing Xema-namespaced runtime tools (xema_memory_*) and the dynamic system-prompt overlay hook.
Downloads
498
Readme
@xemahq/opencode-xema-plugin
Opencode plugin exposing Xema runtime tools and overlay hook
Overview
An Opencode plugin that registers Xema-namespaced runtime tools and a dynamic system-prompt overlay hook. The plugin is evaluated once at agent startup; it registers its tools unconditionally and defers per-role authorization to tool-execution time, where each tool reads the invocation context from the worker filesystem and rejects calls the invoking role is not permitted to make.
When to use it
- Use it to add the Xema runtime tools and prompt overlay to an Opencode agent runtime.
Installation
pnpm add @xemahq/opencode-xema-pluginUsage
import XemaPlugin from '@xemahq/opencode-xema-plugin';
// Register the plugin with your Opencode runtime configuration.
export const plugins = [XemaPlugin];Peer requirements
@opencode-ai/plugin>=1.0.0zod>=4
License
Apache-2.0 © Xema — xema.dev
