DeepSeek Harness plugin

dsh-bang-shell

Run !-prefixed commands directly from the DeepSeek Harness Web composer without sending them to the model.

Jump to install

Source facts

Repository
ClausYang/dsh-bang-shell
Latest update
Aug 17, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ClausYang/dsh-bang-shell
Plugin: dsh-bang-shell
Author: ClausYang

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.mdSource · read only
README language

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.shell executor, 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: TriggerChar gains '!'; detectTrigger recognizes !
  • packages/client/ui-conversation: InputMachine.onEnter routes ! drafts into adjudication; the decoration core gains a bang range; 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/done text); no dedicated terminal block yet;
  • Multi-line drafts submit as one line; shell history expansion (!!) is not supported.

License

[BSD-3-Clause](LICENSE)