DeepSeek Harness Plugin

lokih1028/dsh-prompt-optimizer

Stars ★ 0 Category UI Enhancements Added 2026-08-30

One-click prompt enhancement and structuring button for DSH composer.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:lokih1028/dsh-prompt-optimizer

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

This plugin publishes its README in Chinese only.

✦ One-Click Prompt Enhancement and Structuring Plugin for DeepSeek Harness (DSH)
一键提示词结构化增强与润色插件,无缝集成至 DSH 输入框

English | 中文说明


English

✨ Features

  • Seamless Composer Integration: Injects an elegant ✦ sparkle button directly into the DSH composer tool row (conversation.input.right slot), matching the native design system.
  • Smart Prompt Structuring: Instantly turns short, vague, or casual ideas into professional, structured instructions with objectives, key details, execution steps, and constraints.
  • Automatic Domain Intelligence:
    • 🎬 Video & Script Creation: Generates high-retention 3-second hooks, narrative pacing, and storyboard editing tips.
    • 💻 Coding & Architecture: Enforces environment specifications, API interfaces, boundary tests, and error handling.
    • 🎯 Universal AI Directives: Formats any daily prompt into a production-grade instruction.
  • Session Model Sync: Automatically leverages the currently active model in your session (MiniMax, DeepSeek, Claude, etc.) without extra configuration.
  • Keyboard Shortcut: Press Alt + O to optimize instantly without clicking.
  • One-Click Revert (Undo): Revert back to your original input at any time with a single click or by pressing Alt + O again within 15 seconds.

📦 Installation

In your DSH environment:

# Add plugin to your web profile
dsh plugin add dsh-prompt-optimizer

# Or install from GitHub
dsh plugin add git+https://github.com/lokih1028/dsh-prompt-optimizer.git

Then start DSH:

dsh web

中文说明

✨ 核心特性

  • 原生输入栏嵌入:无缝注入至 DSH 官方输入栏右侧槽位(conversation.input.right),完全遵循 DSH 官方设计规范与主题配色。
  • 一键结构化重构:将简短或粗略的一句话需求,秒级重构为包含【任务目标】、【核心要求】、【分步执行路径】与【输出约束规范】的高质量专业指令。
  • 垂类场景智能识别:
    • 🎬 影视解说与视频文案:自动补齐黄金前3秒吸睛 Hook、情绪递进叙事节奏、分镜剪辑提示点与爆款标题方案。
    • 💻 代码与架构开发:自动补充技术栈约束、接口规范、边界测试与异常处理逻辑。
    • 🎯 通用任务结构化:全面提升各类日常问答与 Agent 执行任务的准确度。
  • 会话模型自动联动:自动感知并使用当前会话激活的模型(如 MiniMax M3、DeepSeek-V3 等),无需单独配置密钥。
  • 快捷键支持:随时按下 Alt + O 快捷键极速触发优化。
  • 防误触一键撤销(Undo):优化后 15 秒内再次点击或按快捷键,可一键还原至修改前的原始内容。

📦 安装使用

在 DSH 项目根目录下执行:

# 通过 DSH 插件管理器添加
dsh plugin add dsh-prompt-optimizer

# 或直接通过 GitHub 仓库安装
dsh plugin add git+https://github.com/lokih1028/dsh-prompt-optimizer.git

启动 DSH Web 界面:

pnpm dsh web

刷新浏览器页面后,在输入框右侧即可看到 ✦ 优化按钮。


📄 License

MIT License © 2026 lokih1028

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.