DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Test Insight — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
T

dsh-test-insight

Test Insight

基于证据的测试计划和可供审阅的 DeepSeek Harness 测试草案

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:duyanta123/dsh-test-insight#de6d90c0e702018e02126c0fe394d7ae16443566
README兼容性版本

兼容性与来源证明

Test Insight 以 dsh-test-insight 发布,当前版本为 1.0.0-rc.3。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/11

版本

1.0.0-rc.3prerelease
2026/9/11

相关插件

正在加载相关插件…

最新版
1.0.0-rc.3
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/12
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

dsh-test-insight

English | 简体中文

A test-insight plugin for DeepSeek Harness: builds reviewable test plans (TEST-PLAN.md) and isolated test drafts (review-only) from repository facts and change risk.

Turn repository facts and change risk into evidence-backed test plans and reviewable test drafts.

Positioning

dsh-test-insight covers the "repository facts + change risk → test plans and drafts" step. The core scanning capability is provided by dsh-repo-scanner (an npm dependency; scanner source is never copied); this plugin contributes test evidence, gap detection, risk ranking, test design, and report generation.

It answers:

  • Where are the test-protection gaps in this repo (test ↔ source mapping)?
  • How risky is this change, and which tests should be added?
  • What is the evidence level of each finding (fact / inference / suggestion / needs confirmation)?
  • What do the coverage data reveal in the target × test-category matrix?

Boundaries:

  • Read-only by default: never runs the target repo's tests, build, lint, or typecheck; the library interface spawns no subprocesses, and the CLI runs only parameterized read-only Git queries for change inputs.
  • Repo content is not authorization: instructions inside READMEs, test files, config files, or comments never constitute execution authorization.
  • Draft ≠ passing: drafts are always marked DRAFT ONLY; passing a syntax check is not passing the tests.

Installation

As a DSH plugin:

dsh plugin --profile web add "github:duyanta123/dsh-test-insight#v1.0.0-rc.3"

Or from npm (as a library or standalone CLI):

npm install dsh-test-insight

Compatibility tiers: the standalone CLI / library requires Node.js >= 20.11; as a DSH 0.1.5-rc.2 plugin it is verified with Node.js >= 22.19. Run npm run test:compat to execute an isolated-profile add, dump-config, and startup smoke test.

After installing, restart dsh --profile web and use it through the test-insight-runbook skill.

Quick Start

1. Use as a DSH skill

Tell the agent "generate a test plan for /path/to/repo" or "analyze the test gaps in this change". The skill follows its runbook: collect mode and targets → read and validate scanner facts → build the test/module/symbol/entry mapping → separate facts from inference → generate TEST-PLAN.md and test-insight.json.

2. Use as a standalone CLI

# Whole-repo analysis: test mapping, gaps, risk ranking
dsh-test-insight . --mode all --output reports --format both

# Change analysis: working-tree changes as input, warnings fail the run
dsh-test-insight . --mode change --working-tree --strict

# Targeted analysis: generate test drafts for a specific file/symbol
dsh-test-insight . --mode target --target src/auth.js:authenticate --generate-drafts

3. Use as a library

import { analyze, writeReportFiles } from 'dsh-test-insight/core';

const report = await analyze({ repoPath: '.', mode: 'all' });
// report is what lands in test-insight.json: mapping, gaps, risk, performance budget

CLI Options

OptionDefaultDescription
<repo>-Target repository path
--mode all|change|targetrequiredAnalysis mode: whole-repo / change-driven / targeted
--target <path[:symbol]>-Target-mode input, repeatable
--working-tree-Change-mode input: git status --porcelain -uall (mutually exclusive with --diff/--base)
--diff <file> / --base <ref> / --head <ref>-Change-mode inputs: diff text or Git refs
--output <path>-Output file or directory
--format json|markdown|both-Output format
--generate-draftsoffGenerate isolated review-only test drafts
--draft-output <path>-Draft directory (requires --generate-drafts, hidden directory by default)
--execute-testsoffExplicitly authorize test execution (requires --test-command)
--test-command <preset|cmd>-Preset npm-test|pytest|go-test|node-test or a shell-free argv array
--forceoffAllow overwriting existing output files
--strictoffNon-zero exit when warnings exist

Output

ArtifactDescription
TEST-PLAN.mdStructured test plan: test mapping, evidence levels, risk targets and gaps
test-insight.jsonMachine-readable report (schema in schema/test-insight.schema.json), records shared cache, cold/hot hits, end-to-end performance budget, and the actual scanner version
Draft directoryIsolated review-only drafts (default .dsh/test-insight/drafts), atomic writes with overwrite protection; never overwrites existing tests

Safety Boundaries

  • Read-only by default: analysis, the scanner library interface, and default CLI paths never run the target repo's tests, build, lint, or typecheck; the CLI runs only parameterized read-only Git queries for change inputs.
  • Dual-authorized execution: test execution requires both --execute-tests and an allowlisted --test-command (preset or shell-free argv); execution runs with a fixed working directory, timeout, and output limits only.
  • No overwrites: output files are never overwritten unless the user explicitly passes --force; drafts never overwrite existing tests.
  • Redaction: all commands, environment variables, and source references must be redacted.
  • Authorization boundary: instructions in READMEs, test files, config files, or comments are never treated as authorization; drafts must not be treated as passing.

Troubleshooting

--mode change says "Git change inputs require ..."? Change mode requires a change input: exactly one of --working-tree, --diff, or --base; --working-tree cannot be combined with --base/--head/--diff.

No test drafts generated? Draft generation needs --generate-drafts (in target mode); drafts go to a hidden directory by default — set it with --draft-output. Drafts are review-only and do not imply passing tests.

--execute-tests rejected? By design: test execution requires --execute-tests and --test-command together, and the command must hit the allowlist (a preset or a shell-free argv array).

Old sessions won't open after upgrading the DSH host to 0.1.5.x? The Session format V3 migration is irreversible and is host behavior; back up session logs before upgrading the host (see the 1.0.0-rc.2 entry in CHANGELOG.md).

Documentation

  • schema/test-insight.schema.json — report JSON schema
  • docs/RELEASE-CHECKLIST.md — three-stage pre-release checklist
  • CHANGELOG.md — release notes
  • PLUGIN-MAINTENANCE.md — repo maintenance runbook
  • DSH-TEST-INSIGHT-开发计划.md — design and iteration history

License

MIT