dsh-requirements-alignment

DSH PLUGIN模型与账号接入

仓库 jiezeng2004-design/dsh-requirements-alignment · npm dsh-requirements-alignment

模型与账号接入 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

DSH plugin 需求对齐插件,在执行前建立需求基线,监控漂移并在方向改变时征询用户决策,保持长任务与用户意图一致。

一句话选型结论

按资料字段整理

dsh-requirements-alignment 是模型与账号接入类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,列出 4 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类模型与账号接入 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 8 复刻 1 · 未关闭 issue 0
最近更新 2026-09-29 创建于 2026-08-14
README 7.7 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add dsh-requirements-alignment@0.4.2
  1. 1
    确认版本与运行环境

    兼容的 DSH 版本为 0.1.1-rc.2;版本不匹配时安装会报错。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本0.1.1-rc.2版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名dsh-requirements-alignment可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-requirements-alignment:DeepSeek Harness 的轻量级需求对齐插件

  • 建立需求基线
  • 监控方向漂移
  • 用户决策记录
  • 对齐状态检查

上游标签

agentai-agentcordisdeepseek-harnessdsh-pluginrequirement-alignment

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✕ 未通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 boot failed
  • L5.3_HTTP_SERVED HTTP 服务响应

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 标注了兼容的 DSH 版本(0.1.1-rc.2),按版本装不容易报错。
  • 列出了 4 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在模型与账号接入场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-requirements-alignment当前 L4 · 沙盒安装通过 低风险 8 0.1.1-rc.2 有
archify L4 · 沙盒安装通过 低风险 8.0 万 未标注 有
DeepSeek-Reasonix L4 · 沙盒安装通过 低风险 3.6 万 未标注 有
nocobase L3 · 安装规范通过 低风险 2.5 万 0.1.1-rc.2 无
learn-harness-engineering L4 · 沙盒安装通过 低风险 2.0 万 未标注 有
dsh-our-free-model 未做沙盒验证 未标注 8,064 未标注 无

仓库档案

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方jiezeng2004-design仓库 dsh-requirements-alignment · 默认分支 main
分类模型与账号接入ai
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue8 / 1 / 0收录时的数值,非实时
创建 / 更新2026-08-14 · 2026-09-29最后推送 2026-09-29
本站收录2026-08-22首次进入本站目录的时间

README 全文

7.7 KB
作者原文,中文版优先;只做安全转义,不改内容

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.

They are complementary:

Plan → approve → execute → detect direction drift → re-align only when needed

Quick start

Install this release candidate into your DSH Web profile:

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

Then use DSH normally.

Auto mode is the recommended default. Clear tasks continue with zero interruption. When a real direction change appears, the plugin surfaces one decision and records the result.

Use /align any time you want an explicit status check.

Three modes

Mode Behavior
Auto Watches for direction-level drift and asks only when necessary
Manual No automatic drift policy; use /align when you want a check
Off Alignment capabilities are disabled for that session; /align-mode remains available so you can switch back

Common commands:

/align
/align-mode
/align-mode auto
/align-mode manual
/align-mode off
/align-mode reset

Per-session control:

/align-mode session
/align-mode session auto
/align-mode session manual
/align-mode session off
/align-mode session reset

A session override changes only that session. Shared runtime settings remain separate. On DSH 0.1.7, shared mode uses the profile's runtimeMode field; resetting it to null follows the live mode default without erasing other settings.

Example

Stay inside the original scope

User:
Improve the result-page filter. Do not refactor backend logic.

Agent:
[works normally]

Agent discovers:
A complete fix would require backend changes.

Requirements Alignment:
[reports a drift candidate and asks]

User:
Stay within the current scope.

Agent:
[keeps the backend untouched and continues within the approved direction]

Approve a real direction change

User:
The app is single-user and local-only.

Later:
Make it work across devices.

Requirements Alignment:
[detects that accounts/cloud sync may change the architecture]

User:
Approve the direction change: multi-user with accounts and cloud sync.

Agent:
[records the new baseline revision and continues]

How it works

The plugin provides a small set of alignment primitives:

  • establish_baseline records the current goal, explicit constraints, must-preserve behavior, allowed scope and settled user decisions;
  • report_drift surfaces a material direction change, asks through DSH's native user-question path and records the exact decision;
  • /align reports current alignment status and requests a fresh inspection;
  • /align-mode changes Auto / Manual / Off behavior without requiring you to uninstall the plugin.

Canonical alignment state is kept in durable sidecar storage instead of being mixed into normal DSH session events. That keeps resume/fork/compaction behavior stable and avoids turning the session log into a plugin-specific state database.

Runtime mode model

Effective mode follows this order:

valid session override
↓
valid persisted runtime override
↓
valid profile default
↓
auto

This means two live sessions can use different alignment modes without leaking state into each other.

Switching modes changes which alignment capabilities are active. It does not delete the requirement baseline or drift history.

Web UI

In supported DSH Web builds, the plugin includes a small floating alignment control that exposes the current session mode and shared mode without requiring manual profile edits.

The UI and /align-mode operate on the same underlying state, so they are intended to stay consistent. Live browser interaction was not verified for this release candidate; the packed CLI/Web HTTP path was.

Long-running tasks can wait and continue

When the agent genuinely needs your decision, the expected behavior is to wait instead of guessing.

The same design principle applies to requirement drift: pause for the high-impact choice, record it, then continue from the new baseline.

What this plugin does not do

  • It does not replace DSH Plan Mode.
  • It does not turn every engineering choice into a user question.
  • It does not require a full PRD or spec before work can start.
  • It does not rewrite DSH core packages.
  • It does not continuously interrupt clear tasks.
  • It does not delete alignment state when modes change.

Uninstall

dsh plugin --profile web rm dsh-requirements-alignment

Off is not the same as uninstalling: Off keeps the plugin installed so the session can switch back to Auto or Manual at runtime.

Design goal

The project deliberately avoids becoming a full requirements-management system.

Its job is narrower:

> Protect the few human decisions that define what is being built, then let the agent work.

Development focus

The implementation is designed around:

  • durable baseline and drift state;
  • session-scoped mode isolation;
  • resume / fork / compaction continuity;
  • hot mode switching without duplicate registrations or listener leaks;
  • compatibility with normal DSH session semantics;
  • minimal interruption when the requested direction is already clear.

Contributing

Found a bug or have an idea? Open an Issue. Pull requests are welcome.

License

MIT. See LICENSE.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-requirements-alignment 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add dsh-requirements-alignment@0.4.2` 即可。对应的 npm 包名是 `dsh-requirements-alignment`。

dsh-requirements-alignment 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-requirements-alignment 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-requirements-alignment 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-requirements-alignment 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.1.1-rc.2。

dsh-requirements-alignment 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-requirements-alignment 有哪些功能?

建立需求基线、监控方向漂移、用户决策记录、对齐状态检查。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

模型与账号接入
按星标排序,可作替代方案

archify

archify

从仓库或系统描述生成经过校验的自包含交互式架构图、流程图、时序图、数据流图和生命周期图。

L4 · 沙盒安装通过 8.0 万 星

nocobase

nocobase

L3 · 安装规范通过 2.5 万 星

dsh-our-free-model

dsh-our-free-model

为 DeepSeek Harness 挂载免登录、免 API Key 的免费前沿模型通道,装完即用,并附用量看板与 OpenAI 兼容本地转

未标注验证等级 8,064 星

dsh-purge

dsh-purge

dsh-purge 是一款 DeepSeek Harness 设置插件,可修改默认副本、权限策略和工具限制,并添加规则卡片以分组应用补丁,支

L5 · 运行验证通过 4,573 星

jiezeng2004-design 的其它插件

1 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。