DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

one241 /

one241/dsh-team-default-on

Verified

让 DeepSeek Harness 每个新会话默认开启「智能体团队协作」(绕过官方 defaultEnabled 在 Web/桌面宿主失效)

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@534e9300

dsh-team-default-on

让 DeepSeek Harness 每个新建会话默认开启「智能体团队协作」,不用每次手动点。

Make Agent Teams default-on for every new Session in DeepSeek Harness.


为什么需要它 / Why

官方 @deepseek-ai/dsh-agent-team 有 defaultEnabled: true 配置项,但它在 Web / 桌面宿主上不生效:插件内部的 ctx.on('agent/created', …) 没带 { global: true },而宿主创建的 agent 不在该插件的作用域里,监听收不到,配置等于白写。

社区同样问题:https://github.com/deepseek-ai/deepseek-harness/discussions/13115

@deepseek-ai/dsh-agent-team ships a defaultEnabled option, but it does nothing on the Web/Desktop host: the plugin registers ctx.on('agent/created', …) without { global: true }, so it never sees agents created from the session controller. This bundle registers the same listener globally and calls the public agentTeams.setEnabled service instead.

行为 / Behaviour

  • 只对新建的根会话生效(source === 'startup',且不是子代理)。

  • 旧会话保持自己保存的选择;在某个会话里手动关掉,就一直关着。

  • 失败只记日志,不阻断会话创建。

  • 不修改 app.asar,不写私有接口,只调用公开服务 agentTeams.setEnabled。

  • Fresh root Sessions only (source === 'startup', never a subagent).

  • Existing Sessions keep their saved choice; switching Teams off inside one Session stays off.

  • Failures are logged and swallowed, never blocking Session creation.

  • No app.asar patching and no private APIs: it calls the public agentTeams.setEnabled service.

安装 / Install

# 从本地目录安装 / from a local checkout
gh repo clone one241/dsh-team-default-on
# 然后在 DSH 插件页「添加插件」选择该目录,或用 plugin_manager 安装

安装后插件列表里会出现「团队默认开启 / Team default on」,开关默认开启。

也可以手动挂到 profile:

# ~/.dsh/profiles/<profile>/cordis.patch.yml
- insert:
    - id: team-default-on
      name: 'dsh-team-default-on'

并把本目录 link 进 profile 的 dependencies(link:/path/to/dsh-team-default-on)。

卸载 / Uninstall

插件页关掉开关,或从 profile 的 dependencies 与 bundles 里移除本包。文件可整个删除。

Turn the switch off in the plugin list, or remove the package from the profile's dependencies and bundles.

已知限制 / Limitations

  • 只影响新建会话;已经开着的会话不会被追溯修改。
  • 团队模式会常驻 4 个任务工具与团队协调提示词,每个新会话都会多花这部分 token。
  • 在 dsh 0.2.3-alpha.2 桌面端验证;官方修好 defaultEnabled 之后本插件可直接卸载。

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit 534e930022a3

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout