返回目录
Agent 与会话 插件

dsh-better

agi-fans/dsh-better

A DeepSeek Harness (dsh) plugin bundle combining pi-better's codebase-grounded prompt deepening (/better) and subagent brief verification with DSH's Cordis host/web-client architecture.

Stars
3
Forks
0
Issues
0
更新
10 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:agi-fans/dsh-better

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

PROJECT README

README

@agi-fans/dsh-better

English | 中文

A DeepSeek Harness (dsh) plugin bundle combining pi-better's codebase-grounded prompt deepening (/better) and subagent brief verification with DSH's Cordis host/web-client architecture.

Demo

https://github.com/agi-fans/dsh-better/blob/main/docs/motion.mp4

A 20-second one-shot explainer (Chinese UI, sound on). The draft lifts out of the composer and becomes the first finished turn; a hairline forks into a read-only helper that reuses the cached prompt prefix; that same panel widens into the Depth dock while the four stages run; then it folds back into the composer as the grounded prompt — real files, acceptance criteria, one-click Restore original.

Features

  • /better <draft prompt>: Forks a short-lived, read-only helper agent from the current session's completed-turn prefix (turn/end), inspects relevant repository files and conversation history without modifying files or running shell commands, and places the deepened prompt directly into the composer draft.
  • Prompt-cache preservation: Uses tools.guard() inside the forked helper instead of altering tools.schemas(), keeping tool declarations byte-for-byte identical to the parent session.
  • Non-blocking Web / Desktop UI Depth dock: Renders a two-row conversation.input.dock panel above the composer with a 6-cell progress meter, the four Depth stages (Explore, Surface, Deepen, Sharpen), live tool badges, elapsed timer, and Esc / /better-cancel cancellation.
  • Headless / CLI fallback: When no UI connection service is attached, /better awaits completion and returns the deepened prompt as command output.
  • Subagent brief checking: Automatically intercepts ctx.subagents.startActivation when a subagent's prompt starts with /better, verifies file paths, symbols, constraints, and test conventions against the repository using prompts/brief.md, and fails closed if cancelled or invalid.

Install / Update

Install in DeepSeek Harness Web UI or Desktop App

Open Plugins → + Add plugin, enter @agi-fans/dsh-better (or https://github.com/agi-fans/dsh-better), and click Install.

Install with dsh CLI

Install @agi-fans/dsh-better from DeepSeek Harness into the Web UI profile:

dsh plugin --profile web add @agi-fans/dsh-better

Or update @agi-fans/dsh-better:

dsh plugin --profile web update @agi-fans/dsh-better@latest

For the Desktop App profile or default/CLI profile:

# Desktop App profile
dsh plugin --profile desktop add @agi-fans/dsh-better
dsh plugin --profile desktop update @agi-fans/dsh-better@latest

# Default / CLI profile
dsh plugin add @agi-fans/dsh-better

Then start Web UI with dsh web (or open DeepSeek Harness Desktop). Pre-built Host and Client bundles are included (dist/index.js and dist/client.js) — no build step or restart is required when HMR is active.

Configuration

Configure @agi-fans/dsh-better via Settings → Prompt Deepener, Plugins → Prompt Deepener, the /better-model slash command, or cordis.patch.yml defaults:

- id: dsh-better
  name: '@agi-fans/dsh-better'
  config:
    # Inherit the active session's model when null (reuses KV prompt cache), or pin e.g. "deepseek-official/deepseek-reasoner"
    model: null
    # Equivalent to pi-better's `thinking`: defaults to fast `"low"` reasoning (preserving KV cache) when null, or set `"inherit"` / `"off"` / `"low"` / `"medium"` / `"high"` / `"max"`
    reasoningEffort: null
    # Optional override specifically for /better subagent brief checking (falls back to `model`)
    briefModel: null
    # Optional reasoning effort override for /better subagent brief checking (falls back to `reasoningEffort`)
    briefReasoningEffort: null
    # Set false to disable automatic /better brief checking on subagent activations
    checkSubagents: true

UI and /better-model changes are stored atomically in <profileDir>/dsh-better.settings.json and take effect immediately.

Development

npm run build
npm run typecheck
npm test

Credits

CLASSIFICATION EVIDENCE

分类依据

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

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