插件目录 / Developer / dsh-bang-shell
dsh-bang-shell
已验证 · 实测可装 ClausYang
功能简介
Developer 类别的 DeepSeek Harness 插件。
可用 — 实测通过,早期项目
Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-bang-shell
中文 | English
Run a shell command directly from the DeepSeek Harness Web composer with a leading ! — the command is not sent to the model. It executes in the current session workspace and lands in the conversation as a durable command card.
Highlights
- Typing the first
!instantly switches the line to terminal colors (an amber!prompt glyph plus green command text, no background tint, light/dark theme aware) — the mode change is visible from the first keystroke; - Enter executes it: stdout / stderr / timeout & signal markers / exit code render as a persistent command card visible across tabs, with zero model tokens spent.
Usage
!pwd
!git status
!pnpm test
- Only a message whose first non-whitespace character is
!is intercepted; inline!never triggers; - A bare
!keeps the draft and asks for a command; - Commands run through DSH's active
ctx.shellexecutor, inheriting its timeout and sandbox policy; - A non-zero exit renders an error command card — never an AI turn.
Install
Prerequisite: a DSH core that includes the ! trigger extension (TriggerChar, detectTrigger, input adjudication; see "Core companion changes" below). On a checkout that has it:
dsh plugin --profile web add /path/to/dsh-bang-shell
Restart dsh web, then refresh the browser page.
Core companion changes
The ! trigger character requires a small extension (~20 lines, all test-first) to the DeepSeek Harness input pipeline:
packages/client/ui-input-trigger:TriggerChargains'!';detectTriggerrecognizes!packages/client/ui-conversation:InputMachine.onEnterroutes!drafts into adjudication; the decoration core gains abangrange; InputBar renders it dual-color (amber!+ green command, no background)
Development
DSH_CHECKOUT=/path/to/deepseek-harness npm run build
npm test
The build reuses the DSH checkout's toolchain (tsc + tsdown + the clientBundle preset) with zero extra npm dependencies.
Known limitations
- Depends on the core
!trigger extension; the browser half stays inert on DSH builds without it; - Output renders through the generic command card (
command/donetext); no dedicated terminal block yet; - Multi-line drafts submit as one line; shell history expansion (
!!) is not supported.
License
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-bang-shell」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:ClausYang/dsh-bang-shell Headless(CLI)profile:
dsh plugin --profile headless add github:ClausYang/dsh-bang-shell 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。