DeepSHPlugins
dsh-pi-compatible 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-pi-compatible

工具與整合JavaScriptMIT

在 DeepSeek Harness 中復刻 Pi 工具組:安裝小寫 read/write/edit/bash/find/grep/ls 核心工具,並保留 DSH-backed 網頁、任務、計劃、todo、think 與 slash 擴充套件。

2 Starskingguuu8-svg 更新時間 2026-08-20
訪問 GitHub 倉庫
dsh-pi-compatible 專案預覽

專案介紹

中文

在 DeepSeek Harness 中復刻 Pi 工具組:安裝小寫 read/write/edit/bash/find/grep/ls 核心工具,並保留 DSH-backed 網頁、任務、計劃、todo、think 與 slash 擴充套件。

English

Pi-compatible tool suite recreated inside DeepSeek Harness: installs lower-case read/write/edit/bash/find/grep/ls core tools while retaining DSH-backed web, task, plan, todo, think, and slash extensions.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
kingguuu8-svg
倉庫
kingguuu8-svg/dsh-pi-compatible
GitHub Stars
2
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-20
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

52/ 100
維護活躍
85
文件與實用資訊
85
生態關注度
14
安裝便捷訊號
55
專案宣告訊號
100

近 22 天仍在更新;README 含完整安裝與使用說明;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:kingguuu8-svg/dsh-pi-compatible

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-pi-compatible

English | 中文

Two Full Access-only DeepSeek Harness agent presets whose core tool contract is frozen to @earendil-works/pi-coding-agent 0.84.2.

  • Pi-compatible Core exposes exactly seven lower-case tools: read, bash, edit, write, grep, find, and ls.
  • Pi-compatible Plus exposes the same core plus explicit DSH-backed Web, Task, Todo, Plan, Think, Slash, and compaction capabilities.

The presets use DSH's filesystem, subprocess, attachment, session, cancellation, model-routing, and presentation seams. They are designed and tested only with the danger-full-access permission preset; they do not implement escalation workflows for narrower policies.

Product contract

Core tools

ToolPi-compatible behavior
read(path, offset?, limit?)Head truncation at 2,000 lines or 50 KiB, offset continuation, a 64 MiB whole-file safety cap, and PNG/JPEG/GIF/WebP/BMP handling subject to DSH attachment capabilities
bash(command, timeout?)Fresh real Bash process per call, no persistent state, no default timeout, tail truncation with a private full-output spill file
edit(path, edits[])Original-file matching, unique non-overlapping edits, Pi-style fuzzy punctuation fallback, BOM and CRLF/LF preservation, one guarded atomic write
write(path, content)Complete UTF-8 write through DSH; missing parent directories are created by the DSH local filesystem backend
grep(...)ripgrep JSON search, default 100 matches, 500-character line clipping, optional context/glob/literal/case control
find(pattern, path?, limit?)fd glob search, default 1,000 results, .gitignore-aware relative paths
ls(path?, limit?)One directory, dotfiles included, case-insensitive sort, / after directories, default 500 entries

All seven tools are visible by default. This intentionally differs from Pi 0.84.2's default four-tool activation (read, bash, edit, write): DSH does not reproduce Pi's dynamic tool-activation mechanism.

Plus extensions

pi-compatible-plus additionally registers:

  • WebFetch
  • WebSearch
  • Task
  • TodoWrite
  • ExitPlanMode
  • Think
  • SlashCommand
  • /plan
  • /compact
  • DSH basic compaction and tool-result pruning

These are DSH-backed extensions, not Pi 0.84.2 core tools.

Install

Install the bundle into the DSH Web profile:

dsh plugin --profile web add kingguuu8-svg/dsh-pi-compatible

Or install a local checkout:

dsh plugin --profile web add .

The bundle installs both presets into:

${DSH_HOME:-~/.dsh}/.agent-presets/pi-compatible/
${DSH_HOME:-~/.dsh}/.agent-presets/pi-compatible-plus/

Installation is idempotent and does not overwrite a complete existing preset. Set force: true on the bundle row in the profile patch to replace packaged files during an upgrade. A forced 0.1.x → 0.2.0 migration also removes the known package-owned legacy modules from the Core directory; unrelated user files are preserved.

After installation, create a new session and choose Pi-compatible Core or Pi-compatible Plus.

Runtime configuration

VariableMeaning
PI_COMPAT_BASH_PATHAbsolute path to the real Bash executable
PI_COMPAT_FD_PATHAbsolute path to fd
PI_COMPAT_RG_PATHAbsolute path to rg
PI_COMPAT_OFFLINE=1Disable fd/rg network download
PI_OFFLINE=1Pi-compatible alias that also disables fd/rg download
DSH_HOMEDSH home and the private pi-compatible/bin cache root

Bash resolution follows Pi's platform intent: on Windows, Git Bash under Program Files is preferred before PATH Bash. PowerShell is never silently presented as bash.

fd and rg resolution is:

  1. explicit environment override;
  2. system executable on PATH;
  3. cached executable under <DSH_HOME>/pi-compatible/bin;
  4. latest compatible GitHub release download, unless offline mode is enabled.

When GitHub publishes a SHA-256 asset digest, the downloader verifies it. Downloaded files and extraction directories are private to the current user.

Persona customization

The default persona is intentionally short and direct. To customize it, copy the preset to a new id and edit that copy's agent.cordis.yml. Tool compatibility is the stable product contract; persona text is not.

Compatibility boundaries

  • Pi baseline is permanently frozen to 0.84.2 for this product line.
  • Compatibility means schema and key behavior, not byte-identical error messages or Pi's TUI rendering.
  • DSH owns path authorization, filesystem publication, subprocess-tree cancellation, attachments, sessions, and UI cards.
  • BMP is recognized, but DSH rc.6/rc.7 attachments do not accept BMP; read returns a conversion instruction instead of an image block.
  • Pi resizes large images to 2,000×2,000. DSH's attachment seam has no resize operation, so supported images are stored at their original dimensions and the deviation is disclosed in the tool result.
  • Text read rejects files above 64 MiB before whole-file decoding. Grep context expansion skips files above 10 MiB. These safety bounds prevent one tool call from exhausting the long-lived DSH host.
  • Windows is the release-blocking platform. POSIX paths remain supported on a best-effort basis.
  • The preset shadows only the model-facing sandbox:policy and approval:policy runtime-context prose because it duplicates the Full Access contract and mentions tool parameters that do not exist in Pi. DSH enforcement remains active, and all other runtime contexts remain available.
  • The preset does not reject a narrower DSH permission mode at mount time. Such modes are unsupported; host denial is reported directly and the model is instructed not to request escalation.

Development

npm run check
npm test
npm run test:integration
  • Unit tests use DSH seam mocks and require no LLM API key.
  • test:integration uses the globally installed DSH rc.6 local filesystem and subprocess packages, executes real Git Bash, and exercises downloaded/cached fd and ripgrep.
  • The running DSH Web host is separately validated by creating blank Core and Plus sessions through session.create; no model request is required for mount validation.

Trust

A user preset is a Cordis composition and has the authority of the plugins it loads. This bundle is intentionally Full Access-only and can execute arbitrary Bash commands and modify arbitrary files allowed by the host process. Review the source before installation.

License

MIT. See THIRD_PARTY_NOTICES.md for the Pi 0.84.2 behavior reference.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案