jiezeng2004-design/dsh-requirements-alignment 预览 preview

jiezeng2004-design/dsh-requirements-alignment

Plugin插件 Native原生 ⭐ 8 MIT Subagents & Orchestration子代理与编排

适用于DeepSeek Harness的轻量级需求对齐——在执行前对齐重要决策,无需完整的规格工作流。

Project Overview项目介绍

dsh-requirements-alignment is a native DSH plugin built exclusively to prevent requirement drift in long-running DSH agent tasks. It creates a durable baseline from the user’s initial intent, and runs passively in the background while the agent works, only interrupting when a material direction change is detected. To install it, run dsh plugin --profile web add dsh-requirements-alignment in your terminal after ensuring you meet the dependency requirements. It requires Node.js version 22.18.0 or higher, and targets DSH version 0.1.1-rc.2 specifically. Auto mode is the recommended default setting for new users.

This plugin focuses on detecting direction-level changes to the task, not nitpicking implementation details like variable names or small in-scope refactors. Common drift cases it catches include scope expansion or reduction, violating explicit user constraints, changing user-visible behavior, switching architectures, and altering previously approved user decisions. It complements DSH’s existing Plan Mode: Plan Mode checks if the implementation plan is correct before execution starts, while this plugin protects the user’s original intent during execution. It is ideal for users working on long complex tasks where unintended scope creep is a common risk.

The plugin offers three operational modes: Auto, which watches for drift and prompts only when needed; Manual, which disables automatic checking and requires users to run /align for checks; and Off, which disables all alignment capabilities for the current session. Users can switch modes at any time via the /align-mode command, or use the floating Web UI control in supported DSH Web builds. It stores alignment state in durable sidecar storage separate from DSH session logs to keep resume and fork behavior stable. It is released under the permissive open-source MIT license, and can be uninstalled at any time via the DSH plugin command.

dsh-requirements-alignment 是一款专门为 DeepSeek Harness (DSH) 开发的原生插件,作用是防止长任务运行过程中 AI 代理悄悄偏离用户最初的需求,发生需求漂移。它会将用户的初始意图转换为持久的需求基线,在代理工作时保持静默不打扰,只有检测到下一步操作会实质改变任务方向时才会中断并提醒用户确认。

当用户启动一个新的 DSH 任务后,插件会自动建立需求基线,代理在既定范围内开展正常工作都不会被打扰。如果代理在执行过程中发现新方案需要调整范围、修改架构、违背原有约束,插件会检测到这类方向级变更,暂停执行并询问用户是否接受变更,只有用户确认后才会更新基线继续任务。

该插件当前版本为 v0.4.2,适配 DSH 0.1.1-rc.2 版本,要求 Node.js 版本不低于 22.18.0,采用 MIT 许可证开源。它支持自动、手动、关闭三种工作模式,可通过命令切换,也支持在 DSH Web 版本中通过浮动控件快速操作,切换模式不会删除原有基线或漂移历史。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-requirements-alignment@0.5.0-rc.1

把 jiezeng2004-design/dsh-requirements-alignment 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-requirements-alignment

Stop long-running agents from quietly changing what you asked for.

让 DSH Agent 自己做工程决策,但别让它在长任务里悄悄改需求、扩范围、换架构。

dsh-requirements-alignment is a lightweight runtime drift guard for DeepSeek Harness (DSH). It turns the user's intent into a durable requirement baseline, stays out of the way while the agent works, and only interrupts when the next step would materially change the direction.

You decide the direction. The agent decides the engineering.

Current release candidate: v0.5.0-rc.1, targeting DeepSeek Harness 0.1.7-rc.2. Requires Node.js >=22.18.0. See the compatibility report for verified behavior and limits.

The problem

Long-running coding agents are good at keeping momentum. That is also how they can drift.

A task may start as:

Fix the result-page filter.
Do not refactor backend logic.

Later the agent discovers that a cleaner solution would require backend changes. Without an explicit guardrail, it may simply expand the scope and continue.

Requirements Alignment changes that behavior:

User intent
   ↓
Durable requirement baseline
   ↓
Agent works normally
   ↓
Direction-changing step detected?
   ├─ No  → keep working silently
   └─ Yes → ask once → record decision → continue

What counts as drift

The plugin is interested in direction-level changes, not implementation trivia.

Typical drift candidates include:

  • expanding or shrinking the approved scope;
  • violating an explicit constraint;
  • changing user-visible behavior;
  • switching architecture or product form;
  • invalidating a settled assumption;
  • changing a previously approved user decision;
  • taking a destructive path that changes the intended outcome.

It should not stop the agent to ask about variable names, helper placement, ordinary refactors inside the approved scope, or other routine engineering choices.

Requirements Alignment vs Plan Mode

Plan Mode asks:
"Is this the right implementation plan?"

Requirements Alignment asks:
"Are we still solving the right problem?"

Plan Mode helps before implementation starts. Requirements Alignment protects intent during execution.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev github-explore 下一个 Next dsh-director-toolkit →