Community plugin

th3r-dev / @th3-plug/shell

Run a local shell command from the DeepSeek Harness composer with ! or /sh, without calling the AI agent, with zsh completions and history suggestions while typing.

  • JavaScript
  • MIT
  • 0 stars
  • Nov 18, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

@th3-plug/shell is a DSH plugin published from the plugs/shell package in the th3r-dev/th3-plug repository.

  • Listing statusManifest verified
  • Manifest checkedNov 21, 2026
  • Package@th3-plug/shell
  • Package pathplugs/shell
  • Package version1.2.1
  • Source commitc667fb9
  • Repository createdNov 9, 2026

Capabilities and topics

deepseek-harnessdsh-pluginshellzsh
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

shell — run local commands from the composer

@th3-plug/shell lets you run a shell command on your own machine from the DeepSeek Harness chat box without calling the AI agent.

TypeWhat happens
!git statusruns git status in the session's working folder
/sh git statusthe same, as a slash command
! git ch (no Enter yet)a suggestion menu with zsh completions and matching history

The command and its output never reach the model and cost no tokens. The result shows as your message bubble (!git status) followed by a reply-style terminal block with the output, exit code, run time and a Copy button.

Keys while the ! menu is open

KeyAction
Tab / clickinsert the highlighted suggestion
↑ / ↓move through suggestions
Enterrun the line exactly as typed
Escclose the menu

Configuration

Defaults live in cordis.patch.yml. To change one for your profile, override the th3-shell row in the profile's own cordis.patch.yml (an override replaces the whole config):

KeyDefaultMeaning
nameshslash-command name (/sh). The web view is keyed to sh; change both together.
bangtruerun messages that start with !
autocompletetruezsh completions + history while typing a ! line
completeTimeoutMs5000give up on one completion request
timeoutMs120000kill a running command (0 = never)
maxOutputChars20000keep the last N characters of output
shell$SHELLshell executable
loginShelltruerun as $SHELL -lc so the PATH from your profile applies

How it works

web/client.js                         host/index.js
─────────────                         ─────────────
typing "!git ch"                      GET /api/th3-shell/complete
  └─ `!` trigger on the slash menu ─────► host/complete.js
     (wraps the per-session                ├─ history: ~/.zsh_history prefix match
      trigger controller)                  └─ zsh: host/capture-completion.zsh
                                              (compinit + your $fpath, nothing executed)
Enter "!git status"                   agent/pre-step listener
  └─ normal prompt ────────────────────► drops the `!` message from the step,
                                         runs commands.execute('/sh git status')
                                         → turn ends with no model request
command/run + command/done events ──► conversation.chat.commandview["sh"]
                                      renders bubble + terminal block
  • Host (host/): the /sh command, the ! interception in agent/pre-step, and the authenticated completion route.
  • Web (web/client.js): the ! suggestion menu and the result view.

Limits

  • Suggestions only while the caret is at the end of the ! line.
  • Commands run with your full user permissions, outside the agent sandbox. Interactive programs (vim, password prompts) do not work: there is no TTY.
  • The ! trigger wraps internals of @deepseek-ai/dsh-client-ui-input-trigger (InputTriggerController.track / arbitrate). A Harness update can break the menu; ! commands keep running. See docs/dsh-notes.md.
  • zsh completion for slow commands (git in a very large repo) can take seconds; past completeTimeoutMs the completion group stays empty.

Test

node --test plugs/shell/test/*.test.mjs

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/th3r-dev/th3-plug/plugs/shell)