superpack-workspace-filter
v0.0.3
Published
Minimal example plugin using `sandbox_workspace_ready` with agent filtering. Patterned after `~/.openclaw/extensions/superpack-snitch/`.
Readme
superpack-workspace-filter (example)
Minimal example plugin using sandbox_workspace_ready with agent filtering.
Patterned after ~/.openclaw/extensions/superpack-snitch/.
Files
openclaw.plugin.jsonpackage.jsonsrc/index.ts
Behavior
- Filters by
agentId(configurable viatargetAgentId). - Copies
runs/<sessionKey>/infrom host agent workspace into the sandbox./task/. - Writes
injection-manifest.jsoninto the sandbox root.
Config (example)
{
"plugins": {
"entries": {
"superpack-workspace-filter": {
"enabled": true,
"config": {
"targetAgentId": "code-only"
}
}
}
}
}Notes
- Hooks are run by the runtime; agents cannot invoke them directly.
- Use
event.agentWorkspaceDirfor host staging andevent.workspaceDirfor sandbox root.
