Presets message-injection content combos and auto-injects them into every message.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:wf-ping/dsh-message-injector
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文:README.md
A dsh (DeepSeek Harness) plugin: preset common "message injection" content combinations (arbitrary text / skill invocations) and auto-inject them into every message at the first line of the input box. Enable, switch, and stop with one click — no more typing the same instruction prefix or format requirement into every message.
Features
- Preset group management: create/read/update/delete, enable/disable, reorder groups, and collapse groups in the sidebar Plugins page → this plugin → row config — with the same official card look
- One-click select: the 「Preset」 selector at the bottom-left of the composer — click to select, click again to deselect
- Config shortcut: a 「Configure」 item at the bottom of the selector menu opens this plugin's page
- Auto-inject: an empty input box gets the content injected within ~500ms (e.g.
/grill-me /domain-modelingor "Please answer in Chinese") - Skill validation: lines starting with
/are treated as skill invocations — missing skills are warned in the config card and skipped when injecting - Smart guard: nothing is injected when the input box already has content — existing content is never touched
- Global persistence: the selection survives page refreshes, tabs, and restarts — shared between terminal
dsh weband the VS Code panel
Where the config lives
Preset groups and the selection live in the dsh config system (settings namespace dsh-message-injector, persisted into the current profile's cordis.patch.yml). Because it lives on the Host, terminal dsh web and the VS Code panel read the same data, and switching browsers loses nothing.
When the Host does not serve that namespace (older dsh / no settings mounted), the plugin falls back to browser localStorage (key dsh-message-injector:config). On the first load after upgrading, the old localStorage presets are merged into the Host: same-name groups follow the Host, groups only the old store had are added — no group is dropped.
Quick install
dsh plugin --profile web add github:wf-ping/dsh-message-injector # install from GitHub (default = latest, tracks main)
dsh plugin --profile web add github:wf-ping/dsh-message-injector#v0.2.1 # pin a specific version (optional)
dsh plugin --profile web add <repo-path> # local/development install
No build needed on first install (
lib/artifacts are committed). See Install.
Rebuild
After changing code, regenerate lib/ and restart:
pnpm install # install the toolchain
pnpm build # build artifacts
dsh web # start the service
Update
Local path install (symlink) — update = change code + rebuild, no reinstall:
pnpm build # regenerate lib/
# restart dsh web
GitHub install (clone) — the installed copy is unrelated to your local code; update by re-pulling:
dsh plugin --profile web add github:wf-ping/dsh-message-injector # pull the latest version
# restart dsh web
If re-adding does not update, uninstall and reinstall first (see Uninstall).
Uninstall
dsh plugin --profile web remove dsh-message-injector # uninstall
# or from inside the repo: pnpm uninstall:plugin
Docs
- Install
- Usage
- Architecture
- Changelog (zh)
- Iteration log (zh)
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10680
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10680
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8392
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7493
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5371
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1073
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.