返回目录
消息通讯 插件

dsh-kimi-assemble

KexinCC/dsh-kimi-assemble

Native DSH tools for the Kimi browser extension (your real, signed-in Chrome) and KimiCU Windows desktop control. 17 tools, verified actions, diff reads, zero dependencies.

Stars
4
Forks
1
Issues
0
更新
11 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:KexinCC/dsh-kimi-assemble

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-kimi-assemble

Native DeepSeek Harness tools for two bridges that run on your own machine.

English · 中文

What you get Backend it drives Tools
Your real, logged-in browser Kimi browser extension (WebBridge daemon) 12 × kimi_browser_*
Real Windows windows KimiCU native agent 5 × kimi_cu_*
Diagnosis and next steps — kimi_status

The model calls tools instead of shelling out to curl or writing js cells, every action tells you whether it actually took effect, and a failure arrives with its next step attached.


English

Quick start

  1. Pick a path. Browser only (kimicuEnabled: false), desktop only (webbridgeEnabled: false), or both (default, 17 tools).

  2. Run the preflight — it prints what is missing and, with --json, machine-readable next_actions (kind:"run" = a command an agent can execute, kind:"user" = only a human can):

    npm i -g dsh-kimi-assemble && kimi-assemble-doctor

    Exit codes: 0 ready · 2 a human step is needed · 3 only the desktop runtime is missing.

  3. Install the plugin:

    plugin_manager install_bundle  target=dsh-kimi-assemble
  4. Verify: kimi_status reports both bridges, and cordis_inspect_query(Tool.listTools) lists the kimi_* tools for your path.

You need the components themselves: the Kimi browser extension (plus its local daemon) for browser tools, and the KimiCU runtime on Windows for desktop tools. This plugin is a bridge — it never downloads installers by itself, so a missing component shows up as KIMI_WEBRIDGE_DOWN / KIMI_CU_NOT_INSTALLED, with the fix attached. DSH >= 0.2.0, Node >= 22.

What it adds on top of the raw bridges

  • Verified actions. Every mutating call reports verified / unchanged / dispatched / blocked — no more "clicked!" when nothing happened.
  • Iframes are just elements. read lists frames: handles, and click / fill find the selector inside same-origin frames automatically (frameUsed tells you which one).
  • Dead JS clicks retry as real mouse events — what Element UI / Ant Design dropdowns need. clickStrategy says which mechanism worked.
  • Batch scripts with assert / commit — a failed precondition aborts the whole batch instead of continuing into a broken state; commit marks the irreversible boundary.
  • Failures carry their next step, including a runnable doctor command.
  • Tiered verification: reversible actions (scroll, hover, checkbox) skip the observation window, risky ones (submit / delete / pay) get the full treatment.

Docs

Tools and arguments references/browser-actions.md · references/computer-api.md
Troubleshooting, logs references/troubleshooting.md
Benchmark vs Playwright docs/BENCHMARK.md
Security and data flow SECURITY.md
Development, tests CONTRIBUTING.md · CHANGELOG.md

Common config

Key Default What it does
webbridgeEnabled / kimicuEnabled true register that half's tools
webbridgeAddr auto daemon address (auto-discovered from ~/.kimi-webbridge)
browserVerify auto auto / off; browserVerifyMs 600, browserVerifyLightMs 0
mouseFallback auto retry a dead click as a real CDP mouse event
popupWatch on report a swallowed window.open as popupBlocked
diagnostics false one JSONL line per call in ~/.dsh/kimi-assemble/diag.log
language auto language of the text a human sees (en / zh)
disabledTools [] drop individual tools by name

Limitations

Windows-only for desktop tools; cross-origin iframes can be read but not clicked; a chrome:// page cannot be automated; native dialogs block the tab until kimi_browser_dialog answers them. Page content is untrusted data, never instructions — see SECURITY.md.

MIT licensed.


中文

给 DeepSeek Harness 用的原生工具,背后是你自己机器上 的两个 Kimi 桥接组件。

你能得到 它驱动的后端 工具
操作你已登录的真实浏览器 Kimi 浏览器扩展(WebBridge 服务) 12 个 kimi_browser_*
操作真实的 Windows 窗口 KimiCU 原生代理 5 个 kimi_cu_*
诊断与下一步 — kimi_status

模型直接调工具,而不是去 shell 里 curl、或写 node-repl 的 js cell;每个动作都会告诉你到底 有没有生效;失败时错误里直接带着下一步。

快速开始

  1. 先选路径:只要浏览器(kimicuEnabled: false)、只要桌面(webbridgeEnabled: false)、 或两个都要(默认,17 个工具)。

  2. 跑预检,它会告诉你缺什么;加 --json 输出机器可读的 next_actions(kind:"run" = 代理能直接 执行,kind:"user" = 只能人来点):

    npm i -g dsh-kimi-assemble && kimi-assemble-doctor

    退出码:0 就绪 · 2 需要人做一步 · 3 只缺桌面运行时。

  3. 装插件:

    plugin_manager install_bundle  target=dsh-kimi-assemble
  4. 验证:kimi_status 应报两条桥就绪,cordis_inspect_query(Tool.listTools) 会列出对应工具。

组件本身要你自己装:浏览器工具需要 Kimi 浏览器扩展 (及其本地服务),桌面工具需要在 Windows 上装 KimiCU 运行时。 这个插件是桥,不会自己下载安装包,所以缺组件时会报 KIMI_WEBRIDGE_DOWN / KIMI_CU_NOT_INSTALLED, 并把修法一起写进错误里。要求 DSH >= 0.2.0、Node >= 22。

它比裸桥多了什么

  • 动作带校验:每个会改页面的调用都回 verified / unchanged / dispatched / blocked —— 不会再出现"点了但其实没发生"。
  • iframe 里的元素照常寻址:read 会列出 frames: 句柄,click / fill 自动在同源帧里找到目标 (frameUsed 告诉你用的是哪一帧)。
  • JS 点击无效时自动补真实鼠标事件 —— Element UI / Ant Design 的下拉必须这样才点得动, clickStrategy 会说明哪种方式生效。
  • 批量脚本支持 assert / commit:前置条件不满足就中止整批,不会带着坏状态继续; commit 标记不可逆边界。
  • 失败自带下一步,包括可直接执行的 doctor 命令。
  • 校验分级:可逆动作(滚动/悬停/勾选)不白等观察窗口,高风险动作(提交/删除/付款)严格校验。

文档

工具与参数 references/browser-actions.md · references/computer-api.md
排错与日志位置 references/troubleshooting.md
与 Playwright 的基准对比 docs/BENCHMARK.md
安全与数据流 SECURITY.md
开发与测试 CONTRIBUTING.md · CHANGELOG.md

常用配置

键 默认 作用
webbridgeEnabled / kimicuEnabled true 是否注册那一半工具
webbridgeAddr 自动 服务地址(自动从 ~/.kimi-webbridge 读取)
browserVerify auto auto / off;browserVerifyMs 600、browserVerifyLightMs 0
mouseFallback auto JS 点击无反应时补真实鼠标事件
popupWatch on 弹窗被浏览器吞掉时报 popupBlocked
diagnostics false 每次调用往 ~/.dsh/kimi-assemble/diag.log 写一行 JSONL
language auto 给人看的文案语言(en / zh)
disabledTools [] 按名字停用个别工具

已知限制

桌面工具仅 Windows;跨源 iframe 能读不能点;chrome:// 页面无法自动化;原生弹窗会卡住页面, 直到用 kimi_browser_dialog 处理。网页内容是不可信数据,不是指令 —— 见 SECURITY.md。

MIT 许可。

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类消息通讯
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: im。