dsh-pi
其他 活跃维护

dsh-pi

AndPuQing/dsh-pi

完整迁移 pi 的提示词哲学、工具调用习惯与搜索交互,让命令行智能体环境拥有类 pi 的对话体验,轻量易集成,无需改写现有流程。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
850 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:AndPuQing/dsh-pi
git clone https://github.com/AndPuQing/dsh-pi.git
git clone git@github.com:AndPuQing/dsh-pi.git
README.md main

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-tools must resolve from the profile module tree)
  • @dsh-pi/fff pulls @ff-labs/fff-node (native FFF engine) as a dependency

License

MIT — see LICENSE.