返回目录
Agent 与会话 插件

dsh-prompt-better

GeniusHu-tgty/dsh-prompt-better

DSH plugin: one-click prompt enhancement in the composer — rewrite your draft into a clearer, more specific prompt, with revert and cancel.

Stars
1
Forks
0
Issues
0
更新
1 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:GeniusHu-tgty/dsh-prompt-better

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

DSH Prompt Better

✨ One click. A clearer prompt.

Turn a rough idea into a focused prompt—right where you write. Enhance, cancel, or restore without leaving your conversation.

Apache-2.0 For DSH

English · 简体中文

From rough idea to ready-to-send

Ask a quick question, then enhance it into a clear request with useful context.

BEFORE AFTER
A short question about a GitHub project A detailed request for project analysis and usage instructions

A simple three-state button

✨ Enhance Animated loading spinner Enhancing · click to cancel ↺ Restore
Rewrite your draft in place. The animated spinner shows the request is running. Bring back the original draft at any time after enhancement.

The rewrite keeps your draft's language. Your text stays safe, too: if a request fails or you keep typing while it runs, the plugin won't replace it. File-reference chips are preserved.

Uses your current DSH model

Enhancement follows the model selected for the conversation when you click ✨, using your existing DSH provider and API setup. No separate API key or model setup is needed. If the conversation has no model selection, the DSH host's default model is used.

Get started

You need a working DSH installation and profile.

  1. Build the package:

    pnpm install
    pnpm build
  2. Add it to your profile's package.json and bundle list:

    {
      "dependencies": {
        "dsh-prompt-better": "link:<absolute path to this package>"
      },
      "dsh": {
        "profile": {
          "bundles": ["...", "dsh-prompt-better"]
        }
      }
    }
  3. Restart DSH, type a draft, and click ✨ beside the chat input.

Optional: set a timeout or pin a model

Add this to your profile's cordis.patch.yml. Usually, no extra configuration is needed.

- id: enhance-prompt
  name: dsh-prompt-better
  config:
    timeoutMs: 120000
    # Optional: use a fixed model instead of the conversation's selection.
    # provider: deepseek-account
    # model: deepseek-flash
Development
pnpm install
pnpm build
pnpm typecheck

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: prompt。