JinkaiLiu/dsh-autonomy

Plugin插件 Native原生 ⭐ 3 MIT Sessions & Context会话与上下文

在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 进程才能生效,不支持热加载新插件。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 →

← 上一个 Prev dsh-task-notify 下一个 Next dsh-HoldThatBigBlueFatFish →