hg1048596-pixel/dsh-incremental ↗★ 0
dsh-incremental
Scoped read-only review tasks with auditable input snapshots and conservative incremental reuse for DeepSeek Harness.
同名包的其他仓库
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hg1048596-pixel/dsh-incremental说明文档
阅读完整 README ↗配置与运行
将配置模板复制到仓库外,例如 C:\private\review-config.json,并设置:
| 字段 | 内容 |
|---|---|
runtimeRoot | 已有 DSH 安装中包含 package.json 和 node_modules 的运行时目录。 |
approvedRepoRoot | 要审查的仓库绝对路径,如 C:\work\sample。 |
model、connection | 使用的模型、适配器和 API 地址。 |
credentialEnv | 保存 API 密钥的环境变量名,模板为 DEEPSEEK_API_KEY。 |
allowRemote | 确认允许向所配模型发送声明的输入后,设为 true。 |
通过环境变量向进程提供密钥。参考任务示例编写 C:\private\review.json,声明各任务的输入、审查要求和 dependsOn。输入路径相对于被审查仓库;目录输入包含隐藏文件和未跟踪文件,不自动应用 .gitignore。
默认缓存策略为 strict:无法核实模型版本时不跨运行复用。模板显式选择 visible-model 并设置 24 小时 TTL,允许按可见模型信息短期复用;同一模型 ID 下未公开的服务端更新可能无法检测。随时用 --full 全量重跑。详见缓存策略。
在本项目目录运行,将以下路径换成自己的配置;状态目录放在被审查仓库外:
$reviewArgs = @(
'--repo', 'C:\work\sample',
'--manifest', 'C:\private\review.json',
'--state', 'C:\review-state',
'--dsh-config', 'C:\private\review-config.json'
)
node bin/dsh-incremental.js plan @reviewArgs
node bin/dsh-incremental.js run @reviewArgs
node bin/dsh-incremental.js run @reviewArgs --full
node bin/dsh-incremental.js report --repo C:\work\sample --state C:\review-state
plan 查看任务与失效原因,run 执行审查,report 读取已保存报告。visible-model 模式的 plan 也会查询已授权端点的模型元数据。恢复运行、JSON 导出及 DSH patch 配置见使用指南。
在 DSH 中使用
按宿主配置说明固定仓库、任务清单、状态目录和模型路线,然后启动 DSH:
dsh --profile incremental-demo --patch C:\private\incremental.yml
| 工具 | 用途 |
|---|---|
incremental_plan | 查看需要执行的任务及原因。 |
incremental_run | 执行审查;传入 full: true 强制全量执行。 |
incremental_report | 传入 runId,读取对应报告。 |