dshbase

插件目录 / Developer / dsh-refine

dsh-refine

未验证 dushaobindoudou

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-21最近推送
跨平台平台

功能简介

DeepSeek Harness (dsh) plugin — /refine command + settings panel for the dsh-continual-harness self-refinement engine. npm: dsh-refine

我们的评价
未验证 — 尚未实测

DeepSeek Harness (dsh) plugin — /refine command + settings panel for the dsh-continual-harness self-refinement engine. npm: dsh-refine 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

dsh-refine

English | 简体中文

npm version
npm downloads
License
CI

A refinement UX layer for the DeepSeek Harness (dsh): the /refine human
command plus a settings panel with entry browsing, a refinement history
timeline, one-click rollback, and auto-gate audit. It drives the
dsh-continual-harness
engine, which is optional at runtime — when the engine is not mounted,
every operation degrades into an actionable instruction instead of an error.

This project is a port and practical adaptation of the
prime-agent /refine idea
for the dsh ecosystem.

Features

  • /refine commandstatus / list [kind] / history [n] /
    rollback <id>, plus free-text refinement instructions
  • Settings panel — harness timeline, entry browsing, one-click rollback,
    auto-gate audit
  • Session-history compatibilityharness/refinement session events
    written by the engine are registered into the host reader, so refined session
    logs stay loadable (no data migration involved)
  • Engine optional — without the engine you get actionable setup guidance;
    nothing errors out, nothing pollutes the session

Requirements

  • Node.js ≥ 18
  • dsh 0.1.0-rc.6+ (with @deepseek-ai/dsh-home-paths and
    @deepseek-ai/dsh-typert-protocol)

Installation

Mount this package and the engine in your dsh profile (e.g.
~/.dsh/profiles/web/cordis.yml):

plugins:
  - dsh-continual-harness   # the engine (optional, but required to actually trigger refinements)
  - dsh-refine              # this UX layer (required)

Or point at a local checkout with link: during development:

plugins:
  - link:/path/to/dsh-refine

Restart dsh web to apply (host-side changes need a restart; client panel
changes hot-reload while pnpm run dev:web is running).

Usage

Command

Input Description
/refine status Overview of engine/rollback state
/refine list [kind] List current entries (filter by prompt/memory/skill/subagent)
/refine history [n] Recent refinement history (default 10, max 50)
/refine rollback <id> Roll back one committed refinement (ids from history)
/refine <any text> Trigger an engine refinement; returns immediately, results appear later in the panel / history

/refine <text> treats the text as a refinement instruction handed to
the engine's planner. For ordinary chat, just type in the input box without
the / prefix.

Panel

Settings → Refine Harness: browse entries, inspect the history timeline,
roll back with one click, and audit auto-gate decisions.

How it works

/refine command ──► dsh-commands ──► dsh-refine (lib/index.js)
                      │                     │
                      │              tools.execute('harness_refine', {signal})
                      ▼                     ▼
               command/run+done      dsh-continual-harness engine
                      │                     │
                      └── harness/refinement session events
  • Instruction triggers are background fire-and-forget: the engine and agent
    are validated synchronously, then the command acks immediately so the input
    box is never frozen for a planner round-trip; engine results land in the
    panel timeline and /refine history.
  • Rollback is synchronous: it applies the stored inverse edits only, with no
    LLM round-trip.
  • Session-event compatibility: lib/compat.js registers harness/refinement
    into the host reader's known event-type set (KNOWN_SESSION_EVENT_TYPES) —
    one registration heals both old logs and future writes.

Development

npm install
npm run lint    # ESLint (lib/ + smoke-host.mjs)
npm test        # smoke suite — no engine required; extra host-registration
                # assertions run when dsh is on PATH

The smoke suite is hermetic: minimal engine ESP fixtures are bootstrapped
automatically when ~/.dsh/harness lacks them, and it also exercises the real
dsh install paths for compatibility regression (skipped gracefully when dsh
is not on PATH). Run DSH_HOME=/tmp/fresh npm test to reproduce the CI
environment in a clean directory.

See CONTRIBUTING.md for commit style, changelog policy, and
the release process; see SECURITY.md for reporting
vulnerabilities.

License

MIT © dushaobindoudou

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-refine」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:dushaobindoudou/dsh-refine

Headless(CLI)profile:

dsh plugin --profile headless add github:dushaobindoudou/dsh-refine

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-26
备注:验证: runtime-fail 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →