rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:liu-zhengdong/dsh-shells
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
让 DeepSeek Harness 的 Agent 具备多个跨平台持久后台 shell:
@deepseek-ai/dsh-tool-terminal 六工具(terminal_open/send/read/signal/close/list),本插件只做组合与扩展。bash(官方 dsh-terminal-bash,backendType shell)+ zsh(本插件)。cmd、gitbash(自动发现 git-bash.exe)、pwsh(官方 dialect)。⚠️ Windows 后端在本机无法验证,实验性。terminal_open { "type": "zsh", "name": "watcher", "cwd": "/tmp" }
terminal_send { "id": "...", "stdin": "htop\n", "wait": "stdin_read" }
terminal_read { "id": "..." }
# 从 GitHub
dsh plugin --profile <profile> add github:liu-zhengdong/dsh-shells
# 本地 checkout(开发用)
dsh plugin --profile <profile> add /abs/path/to/dsh-shells
无需构建:包直接发布 src/ 下的 JS。
依赖安装后如报 failed to import,检查 @deepseek-ai/schemastery 是否装上——
它是本插件的普通依赖,但在 autoInstallPeers: false 的 profile 里,若它被写成
peer 就没人会装。装了很多插件的 profile 可能因为别的插件顺手装过它而看不出问题。
组合层(cordis.patch.yml)挂载:dsh-terminal + dsh-terminal-bash + @deepseek-ai/dsh-tool-terminal + dsh-shells。
每个后端都是官方 BashTerminalBackend 的实例——PTY 会话机器(readiness、scrollback、sanitizer、read 分页)全部复用,只通过 spawnTerminal wrapper 改写 env:
| backendType | 机制 |
|---|---|
zsh |
PS1 = "\x1b]133;D;\x07dsh> "(raw ESC/BEL 经 env 透传;-f 跳过 rc 防覆盖) |
cmd |
PROMPT 环境变量注入同样 raw 标记 |
gitbash |
git-bash 即 bash,官方实例原样,只需发现 exe 路径 |
pwsh |
官方 dialect(stdin 注入 prompt setup),路径找不到时注册 stub 后端给出清晰报错 |
侧边栏面板经 Remote 命名空间 dshShellsPanel(list / attach stream)按 record.owner.session.id 过滤当前会话的终端,300ms 轮询非破坏 read()。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。