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.asarpatching and no private APIs: it calls the publicagentTeams.setEnabledservice.
安装 / 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
No comments yet. Be the first to write one.