Skip to content

[Bug] ZCode: Can't install destructive command guard (dcg plugin) #154

Description

@ganuong11

提交前确认 · Pre-submission checklist

  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.

问题类别 · 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions