tools
已验证@dsh-pi/tools · v0.1.0 · MIT
pi-compatible tool surface for DeepSeek Harness (dsh-pi): an `edit` tool with pi's exact interface plus pi-style descriptions for read/write/bash.
安装
dsh plugin add @dsh-pi/tools 用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。
源码
发布到 npm 但没有公开仓库。安装前请检查包内容。
标签
说明文档
@dsh-pi/tools
pi-compatible tool surface for DeepSeek Harness (dsh-pi), aligning the model-visible tool layer with pi's:
edittool — pi's exact interface:path+edits[]witholdText/newText. EveryoldTextmust match a unique, non-overlapping region of the original file; edits are validated like pi and applied in one call. (pi's description is used verbatim.)- Description alignment — via the
system-prompt/assemblewaterfall, the model-visible descriptions ofread/write/bashare rewritten to pi's wording.bashkeeps a one-line sandbox-escalation note so dsh's denial policy is not lost.
Install into a profile
dsh plugin --profile web add @dsh-pi/tools # published, or:
dsh plugin --profile web add file:/abs/path/to/dsh-pi-tools
The bundle auto-registers in the profile manifest. Restart the profile.
Config
| Field | Default | Meaning |
|---|---|---|
alignDescriptions |
true |
rewrite read/write/bash descriptions to pi wording |
Notes
- Param names (
pathvsfile_path) are intentionally NOT renamed: execution binds by parameter name, and rewriting schemas would break calls. The model adapts (observed using both styles). str_replace_editorremains available as the native dsh editor; the persona tool list steers towardeditfor pi-style precision.- Requires dsh ≥ 0.1.0-rc.6 (
@deepseek-ai/dsh-toolsresolves from the profile module tree).
Layout
| File | Role |
|---|---|
index.js |
Cordis plugin (registers edit, installs the assemble description listener) |
cordis.patch.yml |
bundle patch — inserts the dsh-pi-tools row |
package.json |
declares dsh.bundle.patch |
License
MIT