Prompt enhancement for the composer: an "✨ Enhance" button rewrites your draft prompt into a clearer, more structured version with first-principles thinking, grounded in session context, memory and recent conversation; asks clarifying questions in a card when key info is missing, then previews the result before applying it to the input.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yaoshuo530/dsh-prompt-enhancer
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
A prompt-enhancement plugin for DeepSeek Harness (DSH): an "✨ Enhance" button in the composer that rewrites your draft prompt into a more detailed, clearer, and structured version using first-principles thinking — grounded in your session context, memory, and recent conversation. When key information is missing, it asks you through a clarification card before generating.
Features
- One-click enhance: an "✨ Enhance" button on the right end of the composer tool row
- First-principles methodology: Think (return to the essence) → Plan (break down the structure) → Execute (organize the expression) → Review (check coherence)
- Context-aware: automatically reads the current session's agent system prompt (persona, memory, skill injections) and the recent conversation history
- Clarification card: when the model judges key information is missing, it pops up a card (option buttons + free-text input + cancel) and continues after you answer
- Preview then apply: the enhanced prompt is shown for review first; clicking "Apply to input" writes it into the composer — it is never sent automatically
- DSH-native look & feel: blue button with white text, reusing DSH's send-button theme tokens (
--dsw-alias-button-info-fill)
Installation
Method 1: Host profile plugin (recommended — survives refresh and restart)
- Clone or copy this repository to any local path, e.g.
~/dsh-plugins/dsh-prompt-enhancer - Edit the DSH web profile (
~/.dsh/profiles/web/):- Append to
package.json→dependencies:"dsh-prompt-enhancer": "link:/absolute/path/to/dsh-prompt-enhancer" - Append to
cordis.patch.yml:- insert: - name: dsh-prompt-enhancer
- Append to
- Run
pnpm installin~/.dsh/profiles/web/ - Restart
dsh web, then refresh the page — the button appears in the composer tool row
Method 2: Agent preset plugin
Add the plugin row to your agent preset's composition (~/.dsh/.agent-presets/<id>/agent.cordis.yml) and mount the package in that preset. Note: loading the browser UI via the host profile (Method 1) is the most stable.
Configuration
None required. The plugin automatically uses:
- Model route: the current session agent's model (
agent.options), falling back to theagent-default-modelselection; it calls the model with thinking disabled (reasoningEffort: off) for speed and stability - Context:
systemPrompt.assemble()(persona / memory / skills) +sessionQuery.readSurface()(last 30 messages)
Usage
- Type a draft prompt in the composer, e.g.
Write a weekly summary report - Click the "✨ Enhance" button
- If the model decides key information is missing, a clarification card appears (e.g. "What did you complete this week?", "Who is the audience?") — select or type your answers, then click "Generate"
- Preview the enhanced prompt, click "Apply to input" to write it into the composer, then edit and send as you like
The output language follows your input language.
Example
Input:
Write a weekly summary report
Enhanced output:
## Objective
Generate a submittable weekly report that covers this week's completed work,
achievements, issues, and next week's plan, so progress can be synced with
your manager or team.
## Background
You want a clearly structured, results-focused weekly report. Fill in the
placeholders below with your own details.
## Requirements
- Summarize completed tasks, milestones, and outcomes this week
- Note any blockers or issues and their current status
- List next week's planned work with priorities
- Keep the tone concise and professional; use bullet points and short sentences
## Output Format
Markdown with the sections: This Week's Work / Achievements / Issues / Next Week's Plan
## Acceptance Criteria
- All four sections are present and non-empty
- No placeholders remain
- The report can be submitted as-is
Dependencies
- DeepSeek Harness (DSH) web, with at least one working model route (e.g. DeepSeek official API)
- Node.js
^22.19.0 || >=24 - Browser-side packages (bundled with DSH web):
@deepseek-ai/dsh-client-runtime,@deepseek-ai/dsh-client-connection,@deepseek-ai/dsh-client-ui-slots,@deepseek-ai/dsh-client-locale
How It Works
| Component | Description |
|---|---|
Host half (lib/index.js) |
Serves POST /__dsh-enhance/api JSON RPC: prepare (decides whether clarification is needed and returns a structured question JSON), complete (generates the final enhanced prompt as plain text); assembles context and calls llm.stream |
Client half (lib/client.js) |
ModuleLoader browser plugin: the composer button (conversation.input.right) and the overlay cards (shell.overlay — busy / clarify / preview / error states) |
License
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8801
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★ 8801
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.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 4908
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.
ccch1mneyyy/dsh-TUI★ 4640
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4198
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1463
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.