dsh-shell-cmd

在输入框用 /cmd <命令> 执行当前会话工作目录里的 shell 命令,把命令与输出作为一条 user 消息交给模型,并把这次输入渲染成带退出状态、可展开输出与复制按钮的终端卡片;裸 /cmd 则打开交互终端,Ctrl+Enter 把整段终端内容发给模型。默认以终端自身权限(danger-full-access)执行,设 `useSessionPolicy: true` 改用会话沙箱。

插件介绍

在输入框用 /cmd <命令> 执行当前会话工作目录里的 shell 命令,把命令与输出作为一条 user 消息交给模型,并把这次输入渲染成带退出状态、可展开输出与复制按钮的终端卡片;裸 /cmd 则打开交互终端,Ctrl+Enter 把整段终端内容发给模型。默认以终端自身权限(danger-full-access)执行,设 `useSessionPolicy: true` 改用会话沙箱。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:xx529/dsh-shell-cmd

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令