Chuyển đến nội dung chính

prompt

Đã xác minh

@dsh-pi/prompt · v0.1.0 · MIT

pi-style system prompt for DeepSeek Harness (dsh-pi). A Cordis plugin bundle that replaces the system prompt with pi's minimal-core, tool-listing, guideline style.

Cài đặt

dsh plugin add @dsh-pi/prompt

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.

Thẻ

Readme

@dsh-pi/prompt

pi-style system prompt for DeepSeek Harness (dsh), aka dsh-pi.

Transplants pi's prompt philosophy into dsh as a Cordis plugin bundle:

  • complete mode — the model sees only this section as its system prompt (dsh's default identity / tool-guidance text is replaced)
  • pi-style personaYou are an expert coding assistant operating inside dsh-pi...
  • tool one-linersAvailable tools: list in pi's format
  • guidelines — concise responses, clear file paths, small precise changes, verify with tests
  • cwd line — injected as a dynamic PromptContext

Zero dependencies: the plugin only uses ctx.systemPrompt, which ships in the @deepseek-ai/dsh-base bundle.

Install into a profile

# from anywhere, with dsh on PATH:
dsh plugin --profile web add file:/abs/path/to/dsh-pi-prompt     # or an npm/git spec

Then register the bundle in the profile's manifest:

# edit ~/.dsh/profiles/<name>/package.json:
#   "dsh": { "profile": { "bundles": [ "@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@dsh-pi/prompt" ] } }

Restart the profile: dsh web (or dsh --profile <name>). Done — the system prompt is now pi-style.

dsh plugin --profile <name> add <pkg> forwards pnpm add into the profile directory (~/.dsh/profiles/<name>), so the bare package name resolves from the profile's node_modules. Any other profile or machine repeats the two steps above; sessions/config stay per-profile.

Configure

The bundle's patch inserts row id dsh-pi-prompt. Override it from a higher patch layer (e.g. the profile's own cordis.patch.yml):

- id: dsh-pi-prompt
  config:
    complete: true          # default; false keeps dsh's other prompt sections
    persona: "Your custom persona text"   # override the whole persona
    includeCwd: false       # drop the "Current working directory" line

Patch files are HMR'd — changes apply without a restart.

Publish

npm publish --access public   # from this directory
# then on any machine: dsh plugin --profile web add @dsh-pi/prompt

Layout

File Role
index.js Cordis plugin (default export; inject: ['systemPrompt'])
cordis.patch.yml bundle patch — inserts the dsh-pi-prompt row
package.json declares dsh.bundle.patch

License

MIT