dsh-prompt-injector: Fallback System Prompt Injection

dsh-prompt-injector is a DeepSeek Harness plugin maintained by qbclex that injects prepared prompts into system prompts, taking effect across all sessions. It supports replacement or appending, rolling back to any historical entry, and one-click restoration to the pre-execution state, with state persisted in `~/.dsh/prompt-injector/state.json`. It provides three access points: a settings page, the `/pinject` chat command, and the `prompt_injector` tool. When no injection is active, it completely unregisters registered sections without affecting the original system prompt. This article introduces its functionality, two installation methods, typical usage, implementation highlights, and applicable considerations.

Read More
DeepSeek Harness Plugin: dsh-prompt-injector (General Per-Turn Context Injection)

`dsh-prompt-injector` is a plugin for DeepSeek Harness (DSH) designed to address the issue of rules being forgotten in long sessions. It leverages the memory mechanism, allows prompt lists to be managed via a UI, and injects context in the form of a “Context injection” notification line for each conversation (or after context compaction), ensuring that the model always “sees” critical rules. The plugin’s core features include per-turn injection, selectable trigger modes, abbreviation filtering, a zero-intrusion design, and UI-based management. It is responsible only for injecting text into the context and does not execute any actions, making it suitable for repeatedly emphasizing specific constraints in coding or complex Q&A scenarios.

Read More