AuraxM/dsh-plugin-confirm-check0

dsh-confirm-mode

DSH 确认模式插件:提供任务级权限管理,在永久变更前进行一次性申请,随后进行基于信任的方向监控。

AI 分析

核心用途是平衡 Agent 执行效率与系统安全,避免频繁弹窗打扰。适合需要授权 Agent 执行批量操作但又想把控方向的用户。

包名
dsh-confirm-mode
版本
0.1.0
最近更新
2026年8月17日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Usage

For the agent (model tools)

  • mission_permission - file the one complete permission application before permanent changes: summary (the paragraph the user approves), optional paths (code/config prefixes), capabilities (files-write, commands), duration. The user approves or rejects once.
  • permission_status - read-only view of the current grant and the drift log.

For the user

  • Composer toggle Confirm Mode: on/off (next to Full access / Read Only). Off = monitoring stops, reminders stop, and mission_permission short-circuits without asking (the two model tools remain registered).
  • /confirm-mode on|off|toggle|status - the same switch as a command.

Configuration

Constants at the top of lib/index.js:

  • DRIFT_WARN (5) - drift events before the summary reminder asks for a new application.
  • SUMMARY_EVERY (5) - turns between summary reminders while the mode is on.
  • DOC_EXTS - extensions treated as plan/note writes (never monitored).
  • READ_ONLY_PREFIXES - command prefixes treated as read-only.

Grants are keyed by session and live in memory: they do not survive a process restart. The on/off toggle is process-wide under a host-plane mount, and per-session under a preset mount (each session mounts its own row instance).