realjhen123/dsh-ask-powerful ↗★ 0

dsh-ask-powerful

Ask a powerful external model (ChatGPT / Claude) for coding help without polluting the main DSH context. The plugin builds a self-contained prompt, shows it to the user through a UI-only command result, and the external answer returns as the next user message. 适合在任务超出当前模型能力时,快速打包上下文并求助于外部模型的用户。

Package
dsh-ask-powerful
Compatibility
Unverified
Harness peer range
^0.1.7-rc.1 || ^0.2.0-rc.1
Cordis peer range
^4.0.1
Version
0.1.1
Last updated
Oct 8, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:realjhen123/dsh-ask-powerful

使用

模型入口

模型判断任务超出能力时调用 ask_powerful_model:

{
  "question": "为什么高并发下计数器会丢更新?",
  "files": [{ "path": "src/counter.ts", "start": 1, "end": 80 }],
  "symptom": "压测时最终计数小于预期",
  "goal": "改成线程安全且不引入全局锁",
  "constraints": "不能改公开 API",
  "done_when": "新增并发测试通过",
  "output": "patch"
}

然后你运行:

/ask-powerful

命令结果会渲染成一张卡片,带复制按钮。点一下复制整段提示词。

手动入口

直接给任务文本:

/ask-powerful 设计一个无锁队列,并说明 ABA 问题怎么处理

命令现场生成提示词,不读文件,不拼接会话历史。

配置

在 cordis.patch.yml 的 ask-powerful 条目里配置:

字段默认含义
maxEscalationsPerSession5每个会话允许模型主动求助的次数
maxFiles8一次提示词最多嵌入的文件数
maxSnippetLines400每个文件最多读取的行数
maxFileChars120000每个文件最多读取的字符数
maxPromptChars30000最终提示词字符上限
languagezh提示词语言,zh 或 en