dshbase

插件目录 / Developer / dsh-workspace-drift

dsh-workspace-drift

已验证 · 实测可装 Npaobi

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

查看 GitHub ↗ ← 返回插件目录

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

功能简介

项目环境体检助手

✅
我们的评价
可用 — 实测通过,早期项目

项目环境体检助手 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-workspace-drift

dsh-workspace-drift is a DeepSeek Harness plugin for finding the environment differences that stop a project from running after it moves to another computer.

It records a project baseline, checks the current machine, and explains differences in plain language. It never saves the values of API keys, passwords, tokens, or .env files.

Install

Install the plugin into a DSH profile:

dsh plugin --profile web add dsh-workspace-drift

For a local checkout during development:

dsh plugin --profile web add .

Use

Ask the agent to use one of these tools with the absolute path to your project.

Record a baseline

environment_snapshot records the environment that currently works and writes it to:

<workspace>/.dsh/environment-baseline.json

Example request:

Record the development environment for E:\Project\my-app.

Check the current machine

environment_check inspects the workspace without changing files. It checks project type, installed runtimes, package manager, dependency-ready markers, common start scripts, and required configuration names.

Example request:

Check whether E:\Project\my-app has the environment needed to run.

Compare with the saved baseline

environment_compare compares the current workspace with the saved baseline and also performs the current-environment checks. Each finding states what differs, why that may block the project, and the next command or action to take.

Example request:

Compare E:\Project\my-app with its saved environment baseline.

What is collected

  • operating-system identifier;
  • Node.js, Python, Rust, and Go versions when those tools are installed;
  • project types detected from package.json, Python project files, Cargo.toml, and go.mod;
  • whether Node dependencies, Python virtual environments, Rust build output, and Go module checksums are present;
  • detected package manager and project lockfiles;
  • names of package scripts;
  • Git branch and commit identifier;
  • names from .env.example, without their values;
  • whether required names are set in the current process environment or local .env file, without retaining their values.

Privacy and limits

The plugin never stores or returns .env values, API keys, passwords, access tokens, private keys, or cookies. During a check it reads local .env assignments only long enough to determine whether each required name has a non-empty value. It only reads files inside the selected workspace. The first release reads package.json, .env.example, .env, and known lockfile names; it does not install dependencies or modify project files other than its own baseline.

Baseline format

Baselines use JSON format version 1. They contain the workspace path, collection time, plugin version, normalized environment facts, dependency-ready markers, and required configuration names, never secret values. The file is written through a temporary file and rename so an interrupted write does not replace the previous baseline with partial JSON. A malformed or unsupported baseline is rejected rather than silently treated as a match.

What a result means

An empty finding list means the plugin found no critical difference among the facts it can inspect. It does not prove that the project will start, build, connect to a service, or pass tests. The plugin never runs project commands or installs dependencies during a check.

Development

npm install
npm run typecheck
npm test
npm run build

The development rules and privacy contract are in AGENTS.md.

Known limitations and deferred work

  • Python, Rust, and Go support checks only basic project markers and dependency readiness. It does not parse every ecosystem-specific dependency manager or prove a program can build.
  • A matching baseline is evidence of matching recorded facts, not proof that an application will run successfully.

安装

🧩 让 Agent 自动装(推荐)

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

dsh plugin add dshbase-catalog

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

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

Web profile:

dsh plugin --profile web add github:Npaobi/dsh-workspace-drift

Headless(CLI)profile:

dsh plugin --profile headless add github:Npaobi/dsh-workspace-drift

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →