Preface¶
When letting an agent modify code inside DeepSeek Harness (DSH), a common dilemma is this: the repository already contains lint warnings, type errors, or failing tests. Ordinary lint wrappers display “pre-existing debt” and “regressions introduced by this change” all mixed together. The agent either gets dragged around by historical noise, or declares completion as soon as lint passes—while missing type or affected-test regressions.
The community plugin dsh-lint-loop (maintainer lemonxiny55, category: workflow) addresses this. It captures baseline evidence before the first edit, only lets attributable new regressions drive repairs and continuation, keeps historical failures on record without treating them as a must-clear target for this change, and produces a verifiable Quality Receipt at the end.
What This Is¶
dsh-lint-loop is a change-aware quality loop for DeepSeek Harness. Its official summary is: Fix what the agent broke. Ignore what was already broken. Prove the change is clean.
Unlike the “run full lint every time, mix old and new problems” approach, it compares agent changes against evidence captured before the first edit: it keeps historical failures visible, safely repairs new lint regressions, and validates types and affected tests before completion. The current npm version is 0.6.0 (Quality Loop). The plugin does not bundle any linter, compiler, or test framework—it relies on tools already installed in the repository; it supports Node 22/24, and the DSH peer policy is described in the repository docs.
Core Features¶
Only Steer New Regressions¶
Old lint, type, and test failures continue to be recorded as historical debt; the default gate only initiates bounded continuation for attributable new regressions (default up to two forced continuations and two autofixes per round). Read operations and failed writes do not enter the changeset; it does not “fake” a baseline via stash, worktree reset, etc.
Two-Speed (Dual-Lane)¶
Fast Lane: Follows the “edit → lint delta → feedback prompt” flow; lint_repair only safely fixes lint regressions from the current turn, and will not change code to fix type/test failures.
Completion Lane: At the agent/turn-stopping checkpoint or when quality_verify is called, it performs a completion check on the files of this turn using the original baseline; Node/TS typecheck and test baselines are captured once before the first edit (the initial capture may have a separate budget). Completion-gate continuations within the same turn keep the full-turn scope; a new user turn does not inherit baselines from a finished turn.
Quality Receipt¶
On completion it outputs a structured Quality Receipt: the commands actually executed, the tests run, items repaired, debt ignored, missing evidence, etc. clean means no new regressions within the executed scope—it does not mean the entire repository passes. Missing baseline, unsupported runner, skipped tests, finding caps, malformed output, or timeouts yield incomplete rather than pretending to be all-green.
The demo repository dsh-lint-loop-demo exposes real desktop-collected receipts and provenance (e.g., 17 historical lints retained, 2 new regressions safely autofixed, 12/12 affected tests, lint/types/tests clean).
Mode Presets¶
The default is balanced; you can override the lint-loop plugin row in a profile patch:
- id: lint-loop
config:
mode: balanced
| Preset | Fast Lane | Completion Lane | Sweep budget |
|---|---|---|---|
fast |
lint delta + on-demand safe fixes | lint only; explicitly skips types/tests | 60s |
balanced (default) |
same as above | lint delta, repo-package typecheck, conservative-fallback impacted tests | 60s |
strict |
same as above | lint delta, repo-package typecheck and repo-package test suite | 120s |
fast deliberately produces an incomplete “full quality” receipt; strict widens the test scope while still ignoring historical failures and without introducing unbounded work.
Tool Overview¶
| Tool | Purpose |
|---|---|
quality_verify |
Read-only Completion Lane, returns a full Quality Receipt |
quality_receipt |
Retrieves the latest receipt for this session/repo without re-running checks |
lint_status |
This turn’s lint regressions and ignored debt |
lint_repair |
Bounded, regression-scoped safe autofix; call after editing |
lint_diagnostics |
File-level findings; scope: all / introduced / preexisting etc. |
lint_workspace_errors |
Errors in files checked during this session, including regression scope |
lint_fix |
Single-file fix; forced to regression-only when a baseline exists |
The keyword descriptions show the plugin works with ecosystems such as eslint, biome, and ruff (the actual choice is determined by the repository and the linters / linterPath configuration).
Installation & Activation¶
Install the npm wrapper into your DSH profile (replace web with your actual profile name):
dsh plugin --profile web add dsh-lint-loop@0.6.0
Desktop users can also install the release package v0.6.0 via DSH’s plugin_manager. For local development, run pnpm install --frozen-lockfile and pnpm build inside the repository, then mount it with an absolute path: dsh plugin --profile web add /absolute/path/to/dsh-lint-loop.
Typical Usage¶
-
Install the plugin and confirm the repository already has its own lint / typecheck / test commands (the plugin does not ship these tools).
-
Before the agent starts modifying files, the plugin captures the baseline before the first edit; every subsequent edit goes through the Fast Lane’s lint delta and optional
lint_repair. -
Before a turn ends, rely on the Completion Lane or explicitly call
quality_verify, and read the Quality Receipt in the tool result; when you need a recap, usequality_receiptto read the latest result. -
To reproduce the README walkthrough, refer to dsh-lint-loop-demo and the corresponding description of
assets/quality-loop-walkthrough.gifin the repository.
Before → after comparison (README summary):
Ordinary lint wrapper: shows old debt + new errors together, easily misses type/test regressions, and may declare done as soon as lint passes.
Quality Loop: Fast Lane handles new lint → safe fixes; Completion Lane does lint delta + types + impacted tests;
Only steers on new regressions (default max twice per turn); old failures kept as historical debt; outputs verification scope and final verdict.
Use Cases & Notes¶
Suitable for: Teams doing agent-based coding in DSH who want “don’t take the blame for historical lint/test debt, but this change must be provably clean”; Node/TS monorepos or multi-language repos using eslint/biome/ruff (depending on the repository’s actual tooling).
Notes:
- The plugin runs with the current DSH process’s privileges. Before installing, read the GitHub source and the MIT license (see
package.json) to confirm it meets your security and compliance requirements. - The community directory SkillHub plugin page and GitHub are independent information sources; the DSH ecosystem emphasizes “everything is a plugin,” and this directory site has no official affiliation with DeepSeek / High-Flyer—do not treat it as an official app store.
- Advanced options (such as
completionChecks,qualityTimeoutMs,gateMaxSteers, etc.) override presets; see the README’s Modes and Options tables for details.
Conclusion¶
dsh-lint-loop separates “what the agent broke,” “what was already broken,” and “whether this change is clean.” With baseline + dual-lane + Quality Receipt, it grounds the quality loop in verifiable commands and test scope. If you’re looking for a regression-aware quality gate in the DSH workflow category, start from the directory page and the repository README, install 0.6.0, and reproduce the receipts using the demo.
- Directory page: https://www.skillhub.cn/plugins/lemonxiny55/dsh-lint-loop
- GitHub: https://github.com/lemonxiny55/dsh-lint-loop