dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
输入框上方的提示词库:📚 按钮展开可搜索面板,点条目一键填入草稿(追加不覆盖);数据以 JSON 文件保存在 Host 侧。
Prompt Vault — a prompt library right above the input box of DeepSeek Harness (DSH). Inspired by voyager's Prompt Vault.
~/.dsh/prompt-library.json (override with the DSH_PROMPT_VAULT_FILE environment variable)Prerequisites: DSH installed (dsh web runs), Node.js ≥ 20.
npx -y --package @deepseek-ai/dsh dsh plugin --profile web add @frog755/dsh-prompt-vault
Then hard-refresh the browser (Cmd/Ctrl+Shift+R) and the 📚 button appears in the composer toolbar.
This command registers the dependency, detects the package's
dsh.bundle.patch(cordis.patch.yml), and mounts it intodsh.profile.bundles. The plugin ships as an npm package and does not modify DSH source code.
npx -y --package @deepseek-ai/dsh dsh plugin --profile web update @frog755/dsh-prompt-vault
Then hard-refresh the browser. Client changes hot-reload without a restart; host-half changes need a DSH restart.
npx -y --package @deepseek-ai/dsh dsh plugin --profile web remove @frog755/dsh-prompt-vault
The data file ~/.dsh/prompt-library.json is kept.
| Item | Value |
|---|---|
| Default path | ~/.dsh/prompt-library.json |
| Override | DSH_PROMPT_VAULT_FILE environment variable |
| Format | { version, items: [{ id, title, content, createdAt, updatedAt }] } |
| File | Purpose |
|---|---|
src/index.js | Host half: /__prompt-vault/list·save·delete HTTP endpoints + JSON file storage |
src/client.js | Client half (ModuleLoader bundle): 📚 button + expandable panel; fills the composer via inputActions.setDraft |
cordis.patch.yml | Bundle patch: inserts the prompt-vault row into the profile roster |
dependencies in ~/.dsh/profiles/web/package.json:
"@frog755/dsh-prompt-vault": "link:C:/path/to/dsh-prompt-vault"pnpm install in ~/.dsh/profiles/web