dsh-pi
pi on DeepSeek Harness (dsh) — a plugin suite that transplants pi's prompt philosophy, tool behavior, and search ergonomics into dsh.
Packages
| Package | What it does | Install |
|---|---|---|
@dsh-pi/prompt |
pi-style system prompt: complete-mode persona, tool one-liners, guidelines, cwd line | dsh plugin --profile <name> add @dsh-pi/prompt |
@dsh-pi/fff |
ffgrep / fffind — frecency-ranked content & fuzzy file search (FFF engine) |
dsh plugin --profile <name> add @dsh-pi/fff |
@dsh-pi/tools |
pi-interface edit (multi-edit edits[] with oldText/newText) + pi wording for read/write/bash descriptions |
dsh plugin --profile <name> add @dsh-pi/tools |
@dsh-pi/runtime |
shared in-process pi runtime — one runtime, N surfaces (TUI + web) over the same live session event stream | library (bundled by tui/web) |
@dsh-pi/web |
web surface — second renderer of the live session: browser mirrors the TUI in real time (SSE push) and can chat, switch sessions, rename, interrupt | dsh-pi tui --serve / dsh-pi serve [session-id] |
Each package is a dsh bundle: install with dsh plugin add, it auto-registers in the profile manifest, restart the profile, done.
Quick start
dsh plugin --profile web add @dsh-pi/prompt
dsh plugin --profile web add @dsh-pi/fff
dsh plugin --profile web add @dsh-pi/tools
dsh web
Pre-made profile (one command)
Instead of installing bundles one by one, create a ready-made dsh-pi profile:
./scripts/setup-profile.sh pi web # registry mode (after npm publish)
./scripts/setup-profile.sh pi web --local # dev mode: point at this repo's packages/
dsh --profile pi # boot the web UI with all three bundles
Also ships a headless variant: ./scripts/setup-profile.sh pi-headless headless → dsh --profile pi-headless "task".
The generated profile lives in $DSH_HOME/profiles/<name>; override the persona via its cordis.patch.yml.
Override the persona per-profile via cordis.patch.yml:
- id: dsh-pi-prompt
config:
persona: "Your custom persona text"
Models
(the multi-provider adapter backed by pi-ai) is built into . No plugin needed — configure your provider routes in :
Set the default route with .
Models
dsh-llm-pi-ai (the multi-provider adapter backed by pi-ai) is built into dsh-base — no plugin needed. Configure provider routes in $DSH_HOME/settings.yaml:
llm-pi-ai:
providers:
my-provider:
apiKeyEnv: MY_PROVIDER_API_KEY
baseURL: https://...
api: openai-completions
models:
- id: my-model
Set the default route with agent-default-model.
Requirements
- dsh ≥ 0.1.0-rc.6 (
@deepseek-ai/dsh-toolsmust resolve from the profile module tree) @dsh-pi/fffpulls@ff-labs/fff-node(native FFF engine) as a dependency
License
MIT — see LICENSE.