dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
输入框提示词增强:✨ 增强按钮用第一性原理、结合会话上下文/记忆/最近对话,把草稿扩写为更清晰、更结构化的提示词;关键信息缺失时以提问卡片澄清,预览确认后再应用到输入框。
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.
--dsw-alias-button-info-fill)~/dsh-plugins/dsh-prompt-enhancer~/.dsh/profiles/web/):
package.json → dependencies:
"dsh-prompt-enhancer": "link:/absolute/path/to/dsh-prompt-enhancer"
cordis.patch.yml:
- insert:
- name: dsh-prompt-enhancer
pnpm install in ~/.dsh/profiles/web/dsh web, then refresh the page — the button appears in the composer tool rowAdd 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.
None required. The plugin automatically uses:
agent.options), falling back to the agent-default-model selection; it calls the model with thinking disabled (reasoningEffort: off) for speed and stabilitysystemPrompt.assemble() (persona / memory / skills) + sessionQuery.readSurface() (last 30 messages)Write a weekly summary reportThe output language follows your input language.
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
^22.19.0 || >=24@deepseek-ai/dsh-client-runtime, @deepseek-ai/dsh-client-connection, @deepseek-ai/dsh-client-ui-slots, @deepseek-ai/dsh-client-locale| 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) |