提交前确认 · Pre-submission checklist
问题类别 · Category
工具调用 / MCP · Tool use / MCP
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
阻塞使用 · Blocking (无法使用核心功能 / core function unusable)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
Can't install https://github.com/Dicklesworthstone/destructive_command_guard, the hook for PreToolUse didn't work/fire event:
{
"hooks": {
"events": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "bash "${ZCODE_PLUGIN_ROOT}/hooks/dcg-adapter.sh"", "timeout": 10 }
]
}
]
}
}
}
复现步骤 · Steps to reproduce
the hook for PreToolUse didn't work
期望表现 · Expected behavior
the hook for PreToolUse work
实际表现 · Actual behavior
the hook for PreToolUse didn't fire event
ZCode 版本 · ZCode version
v3.3.6
设备 / 系统 / 浏览器 · Device / OS / Browser
Mac
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
No response
提交前确认 · Pre-submission checklist
问题类别 · Category
工具调用 / MCP · Tool use / MCP
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
阻塞使用 · Blocking (无法使用核心功能 / core function unusable)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
Can't install https://github.com/Dicklesworthstone/destructive_command_guard, the hook for PreToolUse didn't work/fire event:
{
"hooks": {
"events": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "bash "${ZCODE_PLUGIN_ROOT}/hooks/dcg-adapter.sh"", "timeout": 10 }
]
}
]
}
}
}
复现步骤 · Steps to reproduce
the hook for PreToolUse didn't work
期望表现 · Expected behavior
the hook for PreToolUse work
实际表现 · Actual behavior
the hook for PreToolUse didn't fire event
ZCode 版本 · ZCode version
v3.3.6
设备 / 系统 / 浏览器 · Device / OS / Browser
Mac
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
No response