Skip to content

dsh-acp-for-bitfun

⭐ 10 · ✅ active · integration

Type integration Category Developer tools
Stars ⭐ 10 Status ✅ active
Author bobleer Updated —

One-liner

BitFun 与 DSH ACP 交互对接 插件

About

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

✨ Key Features

📦 Install

# 把 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

🚀 Quick Start

dsh --profile web --dump-config | grep -A 2 bitfun

📚 Learn more

工作原理

dsh 会话 ──subagent_bitfun 工具──▶ dsh-subagent-acp (ACP 客户端) │ 每个任务 spawn 一个独立进程 ▼ bitfun acp (ACP server, stdio JSON-RPC) │ ▼ BitFun Agent Runtime 作为 ACP 客户端:每次委托启动一个全新的 bitfun acp 子进程,完成 initialize → session/new → session/prompt 并流式收集 agent_message_chunk。 挂载,模型见到的工具名默认为 subagent_bitfun。 在 SIGTERM 下立即退出,会话数据由 BitFun 自身持久化。

配置

在 profile 的 cordis.patch.yml($DSH_HOME/profiles/<name>/cordis.patch.yml)里 按 id 覆盖: 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,缺失则启