JinkaiLiu/dsh-autonomy
在DeepSeek Harness会话中无需退出即可在Chat与Agent之间切换。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), that adds in-session switching between Chat mode and Agent mode without requiring users to reset their entire session or change models and presets. It adds a persistent, always-visible toggle control on a dedicated row above the DSH Web composer, so it never overlaps the text input area or takes up space in the existing composer toolbar. The selected mode is tied directly to the current session, so it survives page reloads, session resumes, and even follows forked sessions in DSH’s durable session logging system.
The plugin was created to address a common mid-session workflow need that existing DSH functionality could not solve. There are times when you want DSH to autonomously investigate a problem, edit files, run terminal commands, and push a task forward on its own. Other times, you just want a concise direct answer while you keep full control over the process, which changing presets cannot deliver. This plugin lets you adjust session autonomy without altering any of your existing session settings, making it useful for any DSH user who wants flexible control over agent behavior.
dsh-autonomy is released under the permissive MIT open source license, and it supports all DSH versions from 0.1.0-rc.6 upwards, including the latest 0.1.2 developer preview releases. It requires Node.js version ^22.19.0 or >=24.0.0, which matches the Node.js requirement for current DSH releases. The plugin does not make any outbound network requests, collect telemetry data, or read or write workspace files, and all mode changes are only logged via DSH’s native session logging system. After installation, you will need to restart your DSH Web process, because DSH does not support hot loading of newly added plugins.
这是一个专门为 DeepSeek Harness (DSH) 开发的原生插件,核心功能是让用户在同一个 DSH 会话内切换 Chat 聊天模式和 Agent 自主模式,不需要重置会话、更换模型或预设。它会在 Web 版编辑器上方新增一行固定的「Chat | Agent」切换控件,不会遮挡输入框,也不会占用编辑器工具栏的空间,切换状态会绑定到当前会话,支持页面重载、会话恢复,也会跟随分叉会话保存在持久会话日志中。
这个插件解决了会话中途需要切换自主性的需求,有时候你希望 DSH 自主调查问题、编辑文件、运行命令继续推进任务,有时候你只需要一个简洁回答同时保持自己对流程的控制。更换预设无法满足这种中途切换的需求,而这个插件可以在不替换模型、预设、历史、沙箱和权限策略的前提下修改当前会话的自主性,适合所有需要灵活控制 DSH 行为的开发者使用。
它采用 MIT 许可证开源,支持 DSH 0.1.0-rc.6 及以上版本,包括最新的 0.1.2 预览版,要求 Node.js 版本为 ^22.19.0 或 >=24.0.0,和当前 DSH 版本要求一致。它不会发起网络请求、收集遥测数据或读取工作区文件,只通过 DSH 原生会话日志记录模式变更,安装后需要重启 DSH Web 进程才能生效,不支持热加载新插件。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-autonomy(JinkaiLiu/dsh-autonomy)
仓库:https://github.com/JinkaiLiu/dsh-autonomy
本站详情页:https://www.yhbd.top/plugins/jinkailiu-dsh-autonomy/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-10-03 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
npx @deepseek-ai/dsh plugin --profile web add dsh-autonomy
把 JinkaiLiu/dsh-autonomy 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-autonomy
English | 简体中文
Switch between Chat and Agent without leaving your DeepSeek Harness session.
dsh-autonomy adds an always-visible Chat | Agent control on a dedicated row above the Web composer. It never overlays the text area or consumes space in the composer's tool row. The selection belongs to the current session, survives reloads and resumes, and follows a fork through the durable session log.
Why
Sometimes you want the harness to investigate, edit files, run commands, and keep going. Sometimes you only want a concise answer while you stay in control.
Changing agent presets does not solve that mid-session. dsh-autonomy changes the current session's autonomy without replacing its model, preset, history, sandbox, or permission policy.
The plugin was built in response to DeepSeek Harness Discussion #1644.
Token control, not a token cap
Chat mode can reduce accidental token spend when you only need an answer, explanation, or tightly guided collaboration.
It does this in two ways:
- Tool schemas are removed from the model request.
- Autonomous tool loops and follow-up execution steps are prevented.
This can avoid the kind of runaway agent session described in DeepSeek Harness Discussion #1644.
dsh-autonomy is not a token budget manager or a hard usage limit. Conversation history, prompt size, model output, and provider pricing still determine the final cost. It gives you direct control over when agentic execution is allowed.
| Mode | Model sees tools | Tool execution | Typical turn |
|---|---|---|---|
| Chat | No | Denied | One text response |
| Agent | Original DSH tool set | Original DSH policy | Normal agent loop |
Install
dsh-autonomy 0.1.4 uses DSH 0.2.0-rc.2 as the development baseline and supports 0.2.1-alpha.1. Compatibility checks also cover 0.1.0-rc.6, 0.1.0-rc.7, 0.1.1-rc.2, 0.1.2-rc.1, 0.1.7-alpha.2, and 0.1.7-rc.2. Use Node.js ^22.19.0 or >=24.0.0.
You need a working DeepSeek Harness CLI. Verify it without requiring a global installation:
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
liangmianya/dsh-synapse
alaliqing/claude-paper
acryldev/acryl
omdsh-dev/dsh-annotation
Anionex/dsh-turn-rewind
Tyan66666/billion-context-dsh
qkycir-123/dsh-run2skill