BrambleXu/dsh-prompt-profile
DeepSeek Harness 的可复用 Markdown Prompt Profile,支持逐轮模型选择、参数替换和状态恢复。
项目介绍Project Overview
dsh-prompt-profile 是 DeepSeek Harness 的可复用 Markdown 提示词配置插件。它可按配置临时选择供应商、模型与推理强度,把命令参数渲染进提示词,并在本轮后恢复原选择。适合把代码审查等重复指令固化为模板,在用户或项目目录调用。注意:项目同名配置优先,且暂不支持提示链、循环或子代理。
dsh-prompt-profile is a DeepSeek Harness plugin for reusable Markdown prompt profiles. A profile can temporarily select a provider, model, and reasoning effort for one turn, render command arguments into its body, and restore the previous selection afterward. Use it to standardize repeated tasks such as code reviews across user or project directories. Project profiles override user profiles with the same name; prompt chains, loops, and subagents are not supported.
请帮我了解并安装插件:【dsh-prompt-profile】【https://github.com/BrambleXu/dsh-prompt-profile】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:BrambleXu/dsh-prompt-profile
把 BrambleXu/dsh-prompt-profile 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-prompt-profile

English | 中文
Reusable Markdown prompt profiles for DeepSeek Harness. A profile can select a provider, model, and reasoning effort for one turn, render command arguments into its body, and restore the previous selection afterward.
Why this exists 💡
Model choice and review instructions are often repeated across sessions. dsh-prompt-profile turns those combinations into small, reusable Markdown profiles that can be invoked for one turn and then leave the Agent's previous model selection intact.
Features ✨
- Discover profiles from user and project directories, with project profiles taking precedence.
- Substitute positional arguments into profile bodies with shell-style placeholders.
- Select a provider, model, and reasoning effort for one turn.
- Restore the previous Agent selection automatically or opt out per profile.
- List available profiles and invoke nested profiles by slash-separated names.
Install 📦
dsh plugin --profile demo add ./dsh-prompt-profile
Create a user profile under ~/.dsh/prompt-profiles/ or a project profile under <repo>/.dsh/prompt-profiles/:
---
description: Deep code review
provider: deepseek
model: deepseek-reasoner
reasoningEffort: high
restore: true
---
Review $1 for correctness, regressions, and missing tests. Extra context: ${@:2}
Project profiles override user profiles with the same relative name.
Use 🚀
/prompt-profile list
/prompt-profile review src/index.ts "focus on cancellation"
Nested files use slash-separated names. For example, .dsh/prompt-profiles/review/security.md is review/security.
Supported placeholders:
| Placeholder | Value |
|---|---|
$1, $2, … |
One positional argument |
$@, @$, $ARGUMENTS |
All arguments |
${@:N} |
Arguments from position N |
${@:N:L} |
L arguments from position N |
Frontmatter 🧾
| Field | Required | Meaning |
|---|---|---|
description |
No | Text shown by /prompt-profile list |
provider |
With model |
Harness provider route |
model |
With provider |
Provider-owned model ID |
reasoningEffort |
With provider and model |
Adapter-owned reasoning effort ID |
restore |
No | Restore the prior selection after the turn; defaults to true |
Omit both provider and model to use the current agent selection.
Configure ⚙️
- id: dsh-prompt-profile
name: dsh-prompt-profile
config:
userDirectory: ~/.dsh/prompt-profiles
projectDirectory: .dsh/prompt-profiles
Develop 🧑💻
pnpm install
pnpm run check
Scope 🎯
Version 0.1 intentionally omits prompt chains, loops, skill injection, subagents, worktrees, and best-of-N orchestration. Those features should be added only when Harness extension points can preserve their lifecycle and durable-session semantics.
License 📄
MIT
Credits 🙏
The core idea comes from pi-prompt-template-model. This first Harness-native release focuses on the smallest useful unit: deterministic discovery, argument substitution, scoped model routing, and restoration.
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS