@pmatrix/openclaw-monitor v0.3.3 — runtime safety layer for OpenClaw agents #2
PMATRIX-Architect
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What I noticed
When running OpenClaw agents on longer tasks, I had no visibility into whether behavior was drifting over time. Individual tool calls were visible, but risk accumulating across a session — not a single catastrophic action, but a pattern — had no way to be caught early.
What this plugin does
Three enforcement layers, running on every tool call:
Safety Gate — intercepts
before_tool_callevents before execution. Uses a continuous risk score R(t) across five safety modes:HIGH-risk tools:
bash,exec,browser,computer,terminal. Patterns likerm -rf,sudo,curl | share blocked immediately regardless of R(t).Credential scan — intercepts
message_sendingevents and blocks outbound messages containing API keys or secrets. Covers 11 patterns: OpenAI, Anthropic, AWS, GitHub tokens, PEM keys, and more.Kill Switch — when R(t) >= 0.75, the agent is automatically halted. All subsequent tool calls are blocked until you run
/pmatrix resume.What it doesn't do
Content-agnostic by design. The plugin never reads or transmits your prompts, responses, or file contents — only behavioral metadata: tool names, call counts, timing, and pattern match types.
Install
Hooks register automatically. Dashboard at https://app.pmatrix.io.
Happy to answer questions about the hook architecture or scoring model.
Beta Was this translation helpful? Give feedback.
All reactions