DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
O

dsh-opencode-acp

Opencode Acp

在 DeepSeek Harness 中将 opencode 作为 ACP 子代理运行:提供委派工具、设置页面,以及包含 opencode 会话 ID 和 token 使用量的运行历史。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:wangqingdhuo/dsh-opencode-acp#ae71c51e7bc6b993e3a041acb5afd78bbad1e74a
README兼容性版本

兼容性与来源证明

Opencode Acp 以 dsh-opencode-acp 发布,当前版本为 0.3.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/11/2

版本

0.3.1stable
2026/11/2
0.3.2stable
2026/11/2
0.2.4stable
2026/10/26
查看其余 2 个版本收起版本
0.2.1stable
2026/10/26
0.1.1stable
2026/10/20

相关插件

正在加载相关插件…

最新版
0.3.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/11/2
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 agents-orchestration 分类下经过校验的插件。

Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Liangshen@linxin666/dsh-liangshen适用于 dsh Web GUI 的 LiangShen (梁神) agent preset 及其 composer lever。主机部分在激活时将内置 preset 声明到 harness 的 agent-preset 注册表中(declare = enabled),因此无需写入任何内容,preset 即可供新会话选择Remote Bridge@linxin666/dsh-remote-bridgeDSH 远程桥接:主机端通过唯一且精确的 /ios/v1 WebSocket 路由提供协议 v1——会话列表、历史记录基线、提示、包含工具活动的实时回合增量、中断以及进程内代理审批——连接到通过一次性配对的设备Ds Botds-botDS Bot:DeepSeek Harness 的一组长期运行的 Bot,支持主 Bot、Bot 间消息和群聊

README

dsh-opencode-acp

Run opencode as an ACP subagent inside DeepSeek Harness (DSH).

Your main agent keeps its own model and context; subagent_opencode hands a self-contained task to opencode in a separate process, opencode does the work with its own models, tools and free tier, and only the final answer comes back. A settings page lets you switch models, choose the permission policy and working directory, and watch every run — including the opencode session id, duration and token usage.

中文说明

Quick start

  1. Install: dsh plugin --profile default add dsh-opencode-acp, then restart or refresh DSH.
  2. Open Settings → OpenCode 委派; keep the default model and press 刷新列表 to pull opencode's current catalog, then 测试模型 to confirm one actually answers.
  3. Ask your agent: "Delegate to subagent_opencode: create hello.txt and tell me what you wrote." The call returns a child id immediately; the completion notice carries opencode's answer and the run appears in the history with its opencode session id, duration and tokens.

Why

  • Two harnesses, one conversation. DSH stays the driver. opencode brings its own free models and its own tooling; nothing it does lands in your context or your token bill.
  • You can see what happened. Because this plugin speaks ACP itself, each run records the remote session id, the model, the duration, tool-call count and token usage — so "which opencode session was that?" has an answer.
  • Settings without restarts. Settings are read at the start of every delegation, so a saved change applies to the next run.

Requirements

DeepSeek Harness>=0.2.1-rc.1 <0.3.0 (declared as engines.dsh; install refuses other versions)
opencodev2 with the acp subcommand (opencode --version, opencode acp --help)
opencode authalready logged in (opencode auth login); the child reuses your login and free models

Install

From the DSH Plugins page, or from a terminal:

# from npm (prebuilt, no build step)
dsh plugin --profile default add dsh-opencode-acp

# or from a tarball
dsh plugin --profile default add ./dsh-opencode-acp-0.3.1.tgz

Then restart or refresh DSH. Two things appear:

  • a delegation tool named subagent_opencode for every agent in the profile;
  • Settings → OpenCode 委派, the configuration page.

Use

Just ask for it, or call the tool directly:

Delegate to subagent_opencode: in this repo, add a unit test for parseDuration and report what you changed.

The call returns immediately with a child id; the completion notice carries opencode's final answer. The child gets only your task text and the working directory — never your conversation.

Settings

GroupSettingMeaning
Modelmain modelPicker built from the models your opencode has used, plus a free-form id
Modelsmall modelopencode's model for titles and small jobs (blank = let opencode choose)
Modelhealth checkRuns opencode --version and reports whether the executable resolves
Modeltest modelStarts one throwaway session against the saved model and answers whether it works right now (it spends one real request)
Modelrefresh listRuns opencode models and merges the free-tier entries into the picker; cached in catalog.json, so it costs one short subprocess, not a request
Executionpermissionallow auto-answers permission requests, reject denies them
Executionworking directoryFollow the calling session, or pin one path
Advancedcommand / argsThe opencode executable plus the acp argument
AdvancedgraceProcess teardown window in milliseconds
AdvancedenvExtra environment variables as a JSON object

Settings live in $DSH_HOME/opencode-acp/settings.json; runs in runs.json beside it (last 100).

How it works

DSH agent ── subagent_opencode ──► ctx.subagents ──► dsh-opencode-acp (provider "opencode")
                                                        │ spawn: opencode acp
                                                        ▼
                                              ACP over stdio (NDJSON JSON-RPC)
                                       initialize → session/new → session/prompt
                                                        │
                                     ◄── agent_message_chunk, usage_update
  • The ACP protocol carries no model parameter, so the model is decided on the opencode side. This plugin injects OPENCODE_CONFIG_CONTENT into the child; OPENCODE_CONFIG (a file path) is ignored by opencode acp in v2 — verified, not assumed.
  • Runs are one-shot: an external ACP child cannot receive follow-up messages, so it is not continuable. For multi-turn delegation use DSH's built-in subagent instead.
  • The child process runs with your user account and is not confined by the DSH sandbox, exactly like DSH's own @deepseek-ai/dsh-subagent-acp. Treat delegation as "opencode may do what you could do".

Troubleshooting

SymptomCause and fix
Delegation fails with category: free-limitopencode's free tier is exhausted for the account. Click 测试模型 to see which model works now, or connect a provider in opencode.
Delegation fails with category: provider.internal + "Model is unavailable"that model's endpoint is down right now; pick another one
The settings page shows a read error or is blankthe Host could not register /.dsh-opencode-acp/*. Restart DSH; if it persists, check that the bundle is enabled in Plugins.
卡住 on a delegation that never returnsfixed in 0.3.0: a child that dies mid-request now fails the run instead of leaving it pending
Windows: EPERM ... rename ... state.json from another plugintwo DSH instances writing the same profile state. Quit from the tray and start once.

The /.dsh-opencode-acp/* routes are unauthenticated by design and reachable from any process on this machine (localhost only). Run history and settings are stored as plain JSON under $DSH_HOME/opencode-acp/; treat that directory as sensitive as your shell history.

Limits

  • Only assistant text is returned; opencode's tool traffic, reasoning and plans stay in its own session.
  • A fresh process per run: expect a few seconds of startup on every delegation.
  • Windows, macOS and Linux are all supported. The default command is the npm-global opencode on Windows (%APPDATA%\npm\node_modules\@opencode\cli\bin\opencode.exe) and opencode on PATH elsewhere; override Advanced → command if your install differs.

Uninstall

dsh plugin --profile default remove dsh-opencode-acp

Removing the bundle removes the tool and the settings page; $DSH_HOME/opencode-acp stays until you delete it.

Development

Plain JavaScript, no build step.

npm run check   # node --check on both halves
npm test        # contract smoke test: loads both halves with stubbed runtimes
npm pack --dry-run

The Host half is index.js (ACP client, provider, storage, HTTP routes under /.dsh-opencode-acp), the browser half is client.js (a settings.section page registered through the client module table). Both are named exports; cordis.patch.yml inserts the two rows.

Licence

MIT