dsh-secret-variables:让密钥不出现在模型上下文里
zhonghes 的 DSH 插件 dsh-secret-variables 将 API Key 等凭据存入 Host 凭据存储,模型与日志侧只暴露 $DSH_SECRET_<NAME>,真值仅在一次性 bash/pwsh 执行时注入。支持全局、项目、会话与格式化自动检测四类作用域,含输出脱敏与常驻 shell 守卫。需 DSH>=0.2.2-rc.1 与 Node>=20,通过 dsh plugin --profile web add 本地路径安装 bundle。主要降低意外泄漏风险,不替代对可执行 shell 的 agent 的完整信任边界设计。
阅读全文