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

dsh-global-role

Đã xác minh

dsh-global-role · v0.1.0 · MIT · Giao diện web

User-global role definition applied to every session (Claude-style global role)

Cài đặt

dsh plugin add dsh-global-role

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.

Tác giả

Readme

dsh-global-role

User-global role definition for DeepSeek Harness — the replica of Claude's global role: one user-authored persona text applied to every session's system prompt.

The role text is stored in the settings scope (global-role), rendered as a dedicated settings page, and injected as a system-prompt section (user:global-role, right after the deployment persona). It applies to running sessions on the next request, including preset-based sessions (the preset persona wins over the global role).

Install

dsh plugin --profile web add dsh-global-role

Or add to a profile's package.json manually:

{
  "dependencies": { "dsh-global-role": "^0.1.0" },
  "dsh": { "profile": { "bundles": ["...", "dsh-global-role"] } }
}

Then restart DSH (/restart or restart_harness) and open Settings → 全局角色 (Global Role) to edit the persona text.

Configuration

No cordis.yml config. The role text lives in the settings scope; an empty text disables the role. The composition default below the user layer is set by the host plugin entry's config if needed.

Build

Requires a local deepseek-harness checkout for the workspace types (the @deepseek-ai/* rc.7 packages are published under the next tag):

pnpm install
node scripts/link-dsh-workspace.mjs --source /path/to/deepseek-harness
pnpm run build

Outputs lib/index.js (host), lib/invariant.js, and lib/client.js (browser bundle).

License

MIT