bobleer/dsh-acp-for-bitfun 预览 preview

bobleer/dsh-acp-for-bitfun

BitFun 与 DSH ACP 交互对接 插件

Project Overview项目介绍

This is a DSH-native plugin bundle built exclusively for integrating the BitFun agent into DeepSeek Harness sessions via the Agent Client Protocol v1 over stdio. It lets any DSH conversation delegate tasks to BitFun as a subagent using the default tool name subagent_bitfun, which is visible to the DSH-hosted LLM. The plugin reuses DSH’s official ACP client and subagent tool mounting logic, spawning a fresh BitFun ACP server process for every new task, then streams output back to the DSH session after completing the full ACP handshake.

The plugin is targeted at developers who already use both DSH and BitFun, and want to keep their workflow contained within a single DSH session without switching between tools manually. To use it, you just need to instruct the DSH LLM to call the subagent_bitfun tool with your task requirements, and the plugin will handle all process management and protocol communication automatically. You do not need to open a separate BitFun window or session to get BitFun’s output, as everything is routed back to your current DSH conversation.

Before installation, you need to have BitFun CLI version 0.2.17 or higher, DSH version 0.1.0-rc.6 or higher, and the pnpm package manager installed on your system. You should first verify that BitFun’s ACP server is working correctly by running bitfun acp doctor to pass the self-check. To install, run dsh plugin --profile web add dsh-acp-for-bitfun, then you can customize settings including BitFun’s executable path, tool name, and permission policy in DSH’s cordis.patch.yml config file. The plugin is open-source under the MIT license, and fails loudly on startup if BitFun is not detected.

这是一个专门为DeepSeek Harness(DSH)开发的原生插件包,作用是通过基于标准IO的ACP v1协议将BitFun代理接入DSH,让DSH会话中的模型可以通过subagent_bitfun工具,将任务委托给BitFun作为子代理执行。本插件复用了DSH官方提供的ACP客户端和子代理工具挂载逻辑,每次委托任务都会生成一个全新的BitFun ACP子进程,完成协议握手后流式收集BitFun的输出结果。

对于需要在DSH会话中调用BitFun的专业能力完成特定开发或任务处理的开发者来说,这个插件可以省去手动切换工具的麻烦,直接在当前DSH会话上下文中完成任务分发与结果收集。用户只需要在DSH聊天中提示模型调用该工具,将具体任务需求交给模型和BitFun处理即可,不需要额外开启独立的BitFun会话。

本插件依赖已安装的BitFun CLI(要求版本≥0.2.17)、DSH(要求版本≥0.1.0-rc.6)以及pnpm包管理器,用户需要先确保BitFun通过bitfun acp doctor自检。插件支持自定义配置可执行文件路径、工具名、权限策略等选项,加载时会自动检查BitFun是否存在,缺失会直接报错,项目采用MIT许可协议开源。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 10 stars - an early-stage project星标 10,属于早期项目
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命令行安装

dsh plugin --profile web add dsh-acp-for-bitfun

把 bobleer/dsh-acp-for-bitfun 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-acp-for-bitfun

BitFun 支持 ACP deepseek-harness。

一个 DeepSeek Harness (dsh) 插件 bundle: 通过 Agent Client Protocol (ACP) v1 over stdio 把 BitFun 接入 dsh,作为 dsh 会话的 subagent。dsh 里任意会话都可以用 subagent_bitfun 工具把任务委托给 BitFun 执行。

工作原理

dsh 会话 ──subagent_bitfun 工具──▶ dsh-subagent-acp (ACP 客户端)
                                        │ 每个任务 spawn 一个独立进程
                                        ▼
                              bitfun acp (ACP server, stdio JSON-RPC)
                                        │
                                        ▼
                              BitFun Agent Runtime
  • 本 bundle 复用 dsh 官方的 @deepseek-ai/dsh-subagent-acp 作为 ACP 客户端:每次委托启动一个全新的 bitfun acp 子进程,完成 initialize → session/new → session/prompt 并流式收集 agent_message_chunk。
  • 工具通过 @deepseek-ai/dsh-tool-subagent 挂载,模型见到的工具名默认为 subagent_bitfun。
  • 任务结束时关闭子进程 stdin(EOF 宽限 6s → SIGTERM → SIGKILL),BitFun 子进程 在 SIGTERM 下立即退出,会话数据由 BitFun 自身持久化。

前置条件

  • BitFun CLI:安装后确认 bitfun acp doctor 通过(BitFun 的 ACP server 内置于 CLI)。
  • dsh:npx @deepseek-ai/dsh --version, 需要 >= 0.1.0-rc.6(与依赖的 subagent 包版本匹配)。
  • pnpm:dsh plugin 通过 pnpm 安装 bundle。

安装

# 把 bundle 加进你的 dsh profile(从 npm 或本地目录)
dsh plugin --profile web add dsh-acp-for-bitfun

# 或者从本地 checkout 安装
dsh plugin --profile web add ./dsh-acp-for-bitfun

# 启动
dsh web

加载时插件会用 bitfun --version 探测 BitFun CLI:不在 PATH 上时启动直接失败 (fail loud),错误信息会提示安装 BitFun 或配置绝对路径。

配置

在 profile 的 cordis.patch.yml($DSH_HOME/profiles/<name>/cordis.patch.yml)里 按 id 覆盖:

- id: bitfun-acp
  name: dsh-acp-for-bitfun
  config:
    command: /absolute/path/to/bitfun   # 默认 'bitfun'(PATH 解析)
    providerName: bitfun                # 默认 'bitfun'
    toolName: subagent_bitfun           # 默认 'subagent_bitfun'
    permission: reject                  # 'reject' | 'allow'
    acpArgs: ['acp']                    # 默认 ['acp']
    env: {}                             # 传给 BitFun 子进程的额外环境变量
    checkOnStart: true                  # 加载时探测 bitfun,缺失则启动失败

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-anchored-monitor 下一个 Next dsh-anthropic-fonts →