tradercjz/dsh-dolphindb
项目介绍Project Overview
dsh-dolphindb 是面向 DeepSeek Harness 的 DolphinDB 集成插件,作为可安装的 profile bundle 发布。一个包内含 WebSocket 执行器、面向模型的查询/写入工具,以及 23 个内置的 DolphinDB 技能。适用于需要让 LLM 通过安全通道只读查询或经审批写入 DolphinDB 集群、并复用官方 DolphinX 技能库的场景。安装首步需在 pnpm-workspace.yaml 用 commit 固定的精确键放行构建脚本;密码应通过环境变量或 .env 配置,绝不可提交。
dsh-dolphindb is a DolphinDB integration plugin for DeepSeek Harness, shipped as an installable profile bundle. It provides a WebSocket executor, model-facing query and write tools, and 23 bundled DolphinDB skills in one package. Use it to let an LLM run read-only queries against a DolphinDB cluster or perform writes through the approval seam, reusing the official DolphinX skill library. The first install needs an exact commit-pinned key in pnpm-workspace.yaml to authorize the build script, and the database password must come from the environment, never the repo.
请帮我了解并安装插件:【dsh-dolphindb】【https://github.com/tradercjz/dsh-dolphindb】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:tradercjz/dsh-dolphindb
把 tradercjz/dsh-dolphindb 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-dolphindb
DolphinDB integration for DeepSeek Harness as an installable profile bundle. One package ships the WebSocket executor, the model-facing query/write tools, and the 23 bundled DolphinDB skills.
What you get
| Component | Surface |
|---|---|
dolphindb_query |
Read-only DolphinDB scripts/SQL (result tables, vectors, matrices, scalars; optional chart) |
dolphindb_execute |
Write/mutation scripts, gated behind the approval seam with a code preview |
| 23 DolphinDB skills | Bundled SKILL.md trees (syntax, SQL, vectorization, functional programming, data import, factors, ops, Orca DStream, plotting, backtest, FICC pricing, Tushare/CSMAR, …) exposed through the skill tool |
Install
dsh plugin --profile <name> add github:tradercjz/dsh-dolphindb
or add @tradercjz/dsh-dolphindb to a profile's dsh.profile.bundles list after @deepseek-ai/dsh-base.
The executor's only required field is passwordRef (default DOLPHINDB_PASSWORD); host/port/username default to 127.0.0.1:8848 / admin. Override for a remote server in the profile's own cordis.patch.yml:
- id: dolphindb
config:
host: 183.134.101.139
port: 8892
username: admin
passwordRef: DOLPHINDB_PASSWORD
Set the password in the process environment or the repo .env; never commit it.
Verify the layer
dsh --profile <name> --dump-config
The output shows a # == @tradercjz/dsh-dolphindb layer mounting three rows — dolphindb (executor), tool-dolphindb (tools), dolphin-skills (skills). Starting the profile registers dolphindb_query / dolphindb_execute and exposes the 23 dolphindb-* skills through the skill tool.
Development
The repo type-checks and builds against a sibling deepseek-harness checkout (see tsconfig.json):
pnpm install
pnpm run typecheck # against ../deepseek-harness
pnpm run build # tsc -b + tsdown → lib/
dsh plugin add github:… installs source, so pnpm runs prepare (a self-contained tsdown transpile with no harness checkout and no type check). The first install fails until the profile's pnpm-workspace.yaml authorizes the build scripts (the dsh error prints the exact commit-pinned key — prefer that over the loose form below):
allowBuilds:
"@tradercjz/dsh-dolphindb@https://codeload.github.com/tradercjz/dsh-dolphindb/tar.gz/<commit-sha>": true
# Native file-watcher pulled transitively by the `dolphindb` client
# (dolphindb → xshell → sass → @parcel/watcher); set `false` to skip the
# native build and keep the JS fallback.
"@parcel/watcher": true
Skills provenance
The assets/skills/ trees are vendored from the official dolphindb/DolphinX_Skill repository. One source SKILL.md (dolphindb-daily-factor) had an unquoted description that breaks YAML parsing; the vendored copy quotes it.
License
MIT
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill