oss-prompt-optimizer
One-click optimization of a raw instruction into a professional prompt: three output styles, situation-aware role/task/goal profiling, self-iterating learning (session memory + smart defaults + user overrides), /template for 22 sub-scenes with zero model calls, input-box ✨ one-click optimize/undo, prompt_optimize tool, auto-optimize hook and auto-detected zh/en documents.
把原始指令一键优化为专业提示词——支持三种输出形态、情境感知画像、自迭代学习,以及 /template 等命令与一键工具/钩子/自动语言。
How to install
dsh plugin add oss-prompt-optimizer About
prompt-optimizer DeepSeek Harness 插件:将用户原始指令自动优化为专业、结构化的提示词。 优化结果默认为四段结构化提示词(## Role / ## Task / ## Context / ## Format),可配置为无标题的纯文本提示词(outputStyle: 'plain',更省 token), 由内置元提示词驱动,经 harness 的 llm 服务完成(不直连任何 API、不触碰凭据)。 功能 **工具 prompt_optimize**:agent 可调用,传入 instruction,返回优化后的纯文本提示词。 **服务 ctx.promptOptimizer**:其他插件可编程调用 optimize(rawInput, { signal }); 浏览器端经 ctx.remote.promptOptimizer.optimize(sessionId, text) 可调用。 **输入框 ✨ 图标**:composer 工具行左侧的常驻图标,点击即优化当前草稿并写回输入框。 **自动优化钩子**(可选,默认关闭):以触发前缀开头的用户消息会在进入模型前被自动优化(见下文)。 后置校验:模型输出缺段时自动重试(可配次数),仍失败则返回原文 + 错误说明。 输出恒含四段;空输入报错;超长输入截断护栏;取消信号透传。 输入框 ✨ 图标 插件自带浏…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 19
- mo. downloads
- 7.2K
- Last push
- 2026-09-20
- Created
- 2026-08-16
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- deepseek-harness, dsh-plugin, prompt-optimizer
Related plugins
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
davinci-resolve-mcp
samuelgursky/davinci-resolve-mcp
MCP server integration for DaVinci Resolve Studio
ssh-mcp
tufantunc/ssh-mcp
MCP server exposing SSH control for Linux servers via Model Context Protocol.