DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-shell-termux

k

dsh-shell-termux

Discovered★ 3

dsh 的安卓/Termux bash 能力提供者——显式 Termux 环境注入、探测诊断、诚实的应用域沙箱声明。

Machine translated

dsh-shell-termux

🌐 中文说明 / 中文 README

DeepSeek Harness × Android 生态 · dsh-mobile-apk(壳 APK)· dsh-client-ui-responsive(移动 UI)· dsh-host-web-compat(浏览器兼容)

Android/Termux bash capability provider for DeepSeek Harness. Registers as ctx.shell on Android so the model's bash tool executes in a controlled Termux environment — no fake sandboxing, no dependency on the ambient environment being accidentally right.

Why

On Android the upstream bash-sandbox fails closed (no bwrap/landlock/seatbelt platform chain), so the bash tool is dead out of the box. This provider replaces it with an honest Termux execution world: explicit environment injection, probe diagnostics, and a declared app-domain sandbox semantics (workspace-write + enforcement: 'partial').

Quick start

Prerequisite: a Termux installation with bash (pkg install bash).

1. Install — put the package into the profile's node_modules (healed fallback resolves its @deepseek-ai/* dependencies to the running dsh instance):

# from the profile directory (~/.dsh/profiles/web)
npm install /path/to/dsh-shell-termux-0.2.0.tgz
# or manually: unpack into <profile>/node_modules/@dsh-android/dsh-shell-termux/

2. Mount — add to the profile's cordis.patch.yml:

- id: bash-sandbox
  disabled: true
- insert:
    - id: shell-termux
      name: '@dsh-android/dsh-shell-termux'
      config:
        bashPath: /data/data/com.termux/files/usr/bin/bash
        prefix: /data/data/com.termux/files/usr
        home: /data/data/com.termux/files/home
        cwd: /data/data/com.termux/files/home
        timeoutMs: 120000
        maxTimeoutMs: 600000

3. Restart the dsh service and verify with --dump-config (the row must be present, not disabled).

Configuration

keymeaningdefault
bashPathabsolute bash binary pathrequired
prefixTermux prefix root (contains bin/ lib/)required
homeTermux home directoryrequired
termuxVersionTERMUX_VERSION value injected0.118.3
extraPathextra PATH entries prepended (e.g. /system/bin)[]
cwd / timeoutMs / maxTimeoutMs / maxOutputBytes / maxSpillBytes / graceMsinherited local-executor knobs (editable via shell settings)mirror dsh-bash-local

What it does

  • Controlled environment — every spawn injects PATH/LD_LIBRARY_PATH/HOME/PREFIX/TERMUX_VERSION/SHELL explicitly; execution never depends on the launcher environment.
  • Reuses local mechanics — extends LocalBashExecutor (runArgv/startArgv): process-group SIGTERM→SIGKILL, output caps + spill, grace period, background lifecycle, teardown ownership.
  • Honest sandbox declaration — sandboxMode = 'workspace-write' (so permission presets mount) with per-process enforcement: 'partial': the protection boundary is the Android app domain (SELinux u0_aXXX) plus the approval flow, not a path-level confiner.
  • Probe diagnostics — probe() reports bash presence/version and missing toolchain packages (pkg install bash coreutils findutils grep ripgrep hints). Misconfigured bash fails loud with repair guidance.
  • Single toolchain table (0.2.0) — REQUIRED_TOOLCHAIN / PROBE_BINARIES / TOOLCHAIN_REPRESENTATIVE are exported from one module, so the probe, install hints and any consumer list cannot drift apart; a source-level test fails if a second copy of the table exists.

Verification

  • probe() status: full / partial / unusable with a missing-package list;
  • fault injection: point bashPath at a missing binary → structured error (shell-termux: <path> is not executable; run 'pkg install bash' …) returned to the model.

License

MIT. Contains code derived from @deepseek-ai/dsh-bash-local (MIT, © 2026 DeepSeek) — see NOTICE. Design rationale: docs/design.md.

Comments

Loading…

Similar plugins

dsh-desktop

by anywhere-labs

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

UI & ExperienceManifest valid

★ 33.8k

↓ 124/wk

MIT

TypeScript

Oct 28, 2026

dsh plugin --profile web add dsh-plugin-desktop

by whitefirer

dsh(DeepSeek Harness)插件:让 agent 读写浏览器所在机器的本地文件——File System Access 授权 + WS 中继,含非安全上下文兼容模式

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 4

↓ 128/wk

MIT

JavaScript

Aug 23, 2026

dsh plugin --profile web add dsh-browser-fs

by zptalk0221-cpu

远程桌面移动化插件:为 DeepSeek Harness 提供手机横屏外壳与中文输入法

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Aug 29, 2026

dsh plugin --profile web add dsh-remote-desktop

by hehehe1234567894

DeepSeek Harness (DSH) SSH 远程工作插件 — 纯远程模式:多机管理、工作区选择、远程文件读写工具

Manifest valid

★ 0

JavaScript

Sep 1, 2026

dsh plugin --profile web add deepseek-harness-ssh

by eighteentang

DSH 开发工具箱:按 Alt 悬浮查看界面元素归属、把踩过的坑记进随插件分发的经验库、开发模式下自动注入动手前的自检清单。

Terminal & ClientsManifest valid

★ 0

MIT

JavaScript

Oct 13, 2026

dsh plugin --profile web add dsh-plugin-dev-tools

by AGImentu

DSH (DeepSeek Harness) Web 插件:任务完成后播放提示音(可开关、可调音量、可上传自己的音频;内置提示音由脚本合成)

Development & InfrastructureManifest valid

★ 0

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add dsh-turn-chime