DeepSeek Harness plugin

dsh-smart-input

智能输入插件 — 语音输入 + 提示词优化

Jump to install

Source facts

Repository
v-quest123456/dsh-smart-input
Latest update
Aug 15, 2026
Category
Tools & Capabilities
GitHub stars
2
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/v-quest123456/dsh-smart-input
Plugin: dsh-smart-input
Author: v-quest123456

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsm-smart-input

> 智能输入插件 for DeepSeek Harness — 语音输入 + 提示词优化

![DSH Plugin](https://github.com/deepseek-ai/deepseek-harness) ![License](LICENSE)

✨ 功能

🎤 语音输入

在 DSH 输入框一键语音输入,支持三种识别引擎:

引擎特点适用场景
浏览器 Web Speech API零依赖、即时可用日常使用,中文识别
本地 Whisper ONNX完全离线、隐私安全无网络环境、高准确率需求
Whisper API(在线)最高准确率、多语言专业场景、多语言混合
  • 实时流式转写,边说边出字
  • 智能标点自动添加
  • 支持中文、英文、日文
  • 连续对话模式(发送后自动续听)
  • 快捷键 Ctrl/Cmd + Shift + V

✨ 提示词优化

一键优化输入框中的提示词,支持 6 种策略:

策略说明
🔄 自动根据内容自动选择最佳策略
✂️ 简洁化去除冗余,精炼表达
📝 详细化补充上下文和约束条件
⚙️ 技术化使用精确的技术术语
📋 结构化目标-约束-输出格式
🎭 角色扮演添加角色设定增强代入感
  • 上下文感知:可注入工作区文件信息
  • 优化前后对比预览
  • 一键采纳或撤回
  • 快捷键 Ctrl/Cmd + Shift + E

📦 安装

# 通过 dsh CLI 安装(推荐)
dsh plugin --profile web add dsh-smart-input

# 或手动安装
git clone https://github.com/your-repo/dsh-smart-input.git ~/.dsh/plugins/dsh-smart-input
dsh plugin --profile web link ~/.dsh/plugins/dsh-smart-input

⚙️ 配置

安装后在 设置 → 智能输入 中配置:

语音输入设置

配置项默认值说明
识别模式auto自动选择 / 浏览器 / 本地 Whisper / Whisper API
本地模型whisper-small模型大小(影响速度 vs 准确率)
模型路径D:\subbatch-local-v2.0.0\models本地模型文件目录
识别语言zh默认语音识别语言
智能标点true自动添加标点符号
自动发送false识别完成后自动发送
连续对话false发送后自动进入录音模式

提示词优化设置

配置项默认值说明
优化模型留空留空复用当前会话模型
默认策略auto自动选择优化策略
上下文感知true注入工作区上下文

🚀 使用

语音输入

1. 点击输入框工具栏的 🎤 按钮 2. 开始说话,文字实时出现在输入框 3. 再次点击停止录音 4. 确认文字后发送

提示词优化

1. 在输入框中输入你的提示词草稿 2. 点击工具栏的 ✨ 按钮 3. 选择优化策略(或保持自动) 4. 点击"开始优化" 5. 对比预览后选择采纳或重新生成

🛠️ 本地模型准备

方案一:使用现有模型(推荐)

如果你已有 subbatch-local-v2.0.0 中的模型:

1. 在设置中设置 模型路径D:\subbatch-local-v2.0.0\models 2. 选择模型:whisper-smallwhisper-large-v3-turbo

方案二:下载新模型

# 下载 Whisper Small(~466MB)
npx @xenova/convert --model openai/whisper-small --output ./models/whisper-small

# 下载 Whisper Large V3 Turbo(~1.5GB)
npx @xenova/convert --model openai/whisper-large-v3-turbo --output ./models/whisper-large-v3-turbo

📋 快捷键

快捷键功能
Ctrl/Cmd + Shift + V开始/停止语音输入
Ctrl/Cmd + Shift + E打开提示词优化面板

快捷键可在设置中自定义。

🔧 开发

# 克隆项目
git clone https://github.com/your-repo/dsh-smart-input.git
cd dsh-smart-input

# 安装依赖
npm install

# 开发模式(热重载)
npm run dev

# 构建
npm run build

📄 项目结构

dsh-smart-input/
├── dsh.bundle              # 插件 manifest(DSH 识别文件)
├── package.json            # npm 包定义
├── tsconfig.json           # TypeScript 配置
├── src/
│   ├── backend/
│   │   ├── index.ts        # 后端入口(工具注册)
│   │   └── types.ts        # 类型定义
│   ├── frontend/
│   │   ├── index.tsx       # 前端入口(UI 注册)
│   │   └── components/
│   │       ├── VoiceInputButton.tsx    # 语音输入按钮
│   │       ├── PromptEnhanceButton.tsx # 提示词优化按钮
│   │       └── SettingsPanel.tsx       # 设置面板
│   └── services/
│       ├── asr-service.ts      # 语音识别服务
│       └── enhance-service.ts  # 提示词优化服务
├── skills/
│   └── voice-enhancer/
│       └── SKILL.md        # Agent 技能指令
├── public/
│   └── models/             # 本地模型文件目录
└── README.md

🤝 贡献

欢迎提交 Issue 和 PR!

📜 协议

[MIT](LICENSE)

🙏 致谢