dsh-workspace-mgr:在受保护磁盘上拦截 AI 野生工作目录

dsh-workspace-mgr 是 DeepSeek Harness 的 admin-security 类插件,针对智能体在 shell 中随意 mkdir 导致路径不可预测、事后难清理的问题。它以 pre-execute 硬拦受保护磁盘上的新路径,为每会话提供 $DSH_HOME/scratch/<sessionId>/,并通过扫描索引、事后观测与同盘回收站(recycle/restore/purge)做账本与可还原清理。默认保护 C 盘,不改写工具参数、不自动删除。安装依赖 README 中的 profile 拷贝或 plugin_manager install_bundle,并在 cordis.patch.yml 配置 gate 与 protectDrives。

阅读全文