← 返回列表
D

dsh-shell-command

v0.1.0 · 0 天前发布

DeepSeek Harness (DSH) plugin: a /! command trigger (run one command, analyze output, inspired by Claude Code's ! gesture) and a /terminal command (interactive PTY popup with on-demand history reference).

dshdsh-plugindeepseek-harnessshellcommandslash-commandterminalclaude-code

README

dsh-shell-command

English | 中文

一个 DeepSeek Harness 插件,把 Claude Code 的 ! 手势带到 DSH,分为两种模式:

| 命令 | 行为 |
|---|---|
| /! <命令> | 执行 shell 命令,分析其输出。灵感源自 Claude Code 的 ! 前缀——在会话工作目录执行命令,并把输出交给模型即时分析 |
| /terminal | 弹出交互式终端窗口;关闭本身从不向模型发送任何内容——若本次会话有过输入,转录落盘后面板会跳转到「历史」Tab 并预选中这条,是否引用给模型分析由你在那里手动决定 |

注意:DSH 的输入触发系统只支持 /@ 作为触发字符,因此我们用 /! 而不是裸 ! 前缀。

安装

需要 dsh CLI 与 Node >= 22

sh

从 npm / 仓库安装


dsh plugin --profile web add dsh-shell-command

本地源码(开发用 live link,改源码重启即生效)


dsh plugin --profile web add "link:/path/to/dsh-shell-command"

安装后重启一次 Web 界面(dsh web)让 host 端命令加载;它会自动出现在输入框 / 菜单中。

快速上手

第一次使用 /! 命令

在输入框输入:


/! df -h

命令立即执行,输出交给模型分析。你会看到类似的消息:

**Shell Command Out

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-shell-command
Repo
Engines
{}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","immediately":true,"inject":["@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-input-trigger","@deepseek-ai/dsh-client-ui-slots"]}}