narrative-prompt-polish
Run the following command in DeepSeek Harness:
dsh plugin install shengyvself/narrative-prompt-polish
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install shengyvself/narrative-prompt-polish in the DeepSeek Harness terminal to install the plugin; the source is available at https://github.com/shengyvself/narrative-prompt-polish . Restart DSH Web after installation for it to take effect.
About this plugin
Anyone who works with AI agents regularly hits the same wall: you have the idea, maybe even a rough draft, but handing it straight to the agent often falls short—vague phrasing, missing context, unclear intent. narrative-prompt-polish exists to close that last mile from draft to executable prompt. Hit the ✨ button beside the main input, and the plugin spins up a sidebar conversation where the agent inherits the full session context (system prompt plus history), rewrites your draft into a specific, action-ready prompt, and stays available for multi-round refinement. When you are happy, one click copies the result back into the main input—without ever touching the session history.
Under the hood the plugin follows a three-tier fallback chain. In full mode it replicates the [system]+[history] prefix to hit the prompt cache, so only the draft and polish instruction are computed incrementally. If context is limited it degrades gracefully to partial (recent conversation window) or none (bare draft), logging every step into the response and a JSONL trace. Local regex classifies the input into one of four intents—debug, implement, explain, or chat—and shapes the prompt skeleton accordingly. A CAS fingerprint check guards the write-back: if the draft changed during polishing, the plugin refuses to overwrite rather than silently losing edits.
This plugin is built for writers and engineers who drive AI agents daily inside DSH Web, for automation pipelines that can hit the single-shot polish endpoint without a sidebar, and for teams that want every polish run auditable via structured traces (intent, context mode, cache hit, token counts). The multi-round sidebar flow depends on better-sidebar; without it the single-shot path still works, so the plugin is ready to use out of the box either way.
Use Cases
- One-click rewrite of vague drafts into precise, agent-ready prompts
- Multi-round prompt refinement in the sidebar, then copy the final result back into the main input
- Audit every polish run via JSONL traces covering intent, context mode, and cache hit status
Best For
- Writers and engineers who drive AI agents daily inside DSH Web
- Automation pipelines that require precise, structured prompts from natural-language drafts
- Teams that need every AI interaction to be traceable and auditable
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.