mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #284] feat: hook/plugin support for command and tool-result interception #197
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Classic298 on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/284
Cptr has no hook or plugin system: no command interception before execution, no third-party tool registration, no post-response callbacks. The two plugin-ish features that exist (skills and MCP) don't cover this gap — skills are prompt-guidance bundles with optional scripts, MCP adds tools but nothing runs around cptr's own tools.
The consequence is that a whole class of tools can't integrate at all. Anything that works by observing or rewriting commands before they run — output filters, audit loggers, policy engines, sandbox wrappers — has no entry point. Concrete example:
rtk(github.com/rtk-ai/rtk, single Rust binary, ~80k stars) compresses shell output before the agent reads it, and integrates with 18 agents (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, ...) through exactly this kind of hook/plugin API. For agents without hook support it ships an awareness mode where the agent prefixesrtkitself — so cptr users can hand-runrtk git statusthrough run_command today, but there's no way to get the automatic interception the other 18 tools have.What a minimal useful version looks like, in rough order of value:
[[hooks]]withcommandpattern, e.g. rewrite or veto a run_command call before it executes (PreToolUse-style, or post-fact output filtering on the result). This alone unblocks rtk-style filters and audit logging.Not asking for the full Claude Code hook surface (session lifecycle, stop hooks, subagent events). The three above would cover most real integrations.
Related: #217 (agent-plugins.org direction, complementary rather than the same ask — that covers plugin discovery/packaging, this is about the hook API inside cptr).
@owui-terminator[bot] commented on GitHub (Sep 20, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
This is the closest match: it proposes an agent plugin system and links to agent-plugins.org, which aligns with the packaging/discovery side of the request. The new issue is more specific about hook APIs inside cptr, but they are clearly adjacent and likely part of the same broader plugin direction.
by tjbck
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.