
Security News
Rust 1.100 Will Add Dependency Cooldowns to Cargo
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.
iterate-plugin
Advanced tools
dsh plugin that turns the iterate skill into an autonomous closed-loop harness with quality command center and experience bank (v3.3). Features: plan -> parallel review xN -> atomic fixes -> validate -> loop -> auto-stop, plus dry-run pure-review mode, qu
dsh 桌面端的 iterate 质量指挥中心 + 经验银行插件(v3.2)。把 iterate 生态的同一套 review/fix loop 直接搬进 dsh 界面,新增质量门禁、经验银行、防御事件流与原生指挥操作。 The iterate ecosystem's quality command center + experience bank plugin for dsh (v3.2). Natively embedded inside the DeepSeek Harness (dsh) desktop client with quality gates, experience bank, defense events stream, and native command buttons.
Developed and reviewed in the iterate-skill monorepo: the plugin code is maintained in the main repository and synced here via
git subtree; releases and npm publishing happen in this (plugin) repository, which is the canonical publish point for the dsh ecosystem. Please star / fork the main repository and file issues at the main repository Issues.
⭐ If this helps your dsh workflow, give the main repo a star — it means a lot to open-source maintenance!
iterate is not one single binary — it is a skill ecosystem that layers a strict multi-round code gate on top of your existing AI assistants, IDEs, and scripts. It never replaces your tools; it adds an audit-and-close-the-loop layer on them. The whole ecosystem ships as three interchangeable components sharing one iterate.config.yaml + one 9-dimension review system:
/iterate + iterate CLI. For conversation-driven multi-round iteration inside Trae / Claude Code / Cursor / Copilot / Codex and 25+ other assistants.ih (npm: iterate-harness). Runs the exact same loop in terminal / CI / git hooks, without any conversational assistant required.iterate-plugin). Plugs the harness runtime into the dsh UI: convergence dashboard, triage panel, round progress — all surfaced as native dsh widgets.How they fit together: Core Skill is the canonical, assistant-agnostic review/fix engine (the "brains"). iterate-harness is the same engine wrapped as a headless CLI + WebUI for unattended runs. iterate-plugin (this repository) wraps that harness runtime as a dsh plugin, rendering the triage UI and convergence dashboard directly inside the dsh desktop client. Configuration (iterate.config.yaml) and the 9-dimension review system are identical across all three — learn one, use them all.
Quick install / entry points for the rest of the ecosystem:
# Core Skill + CLI (install into 25+ AI assistants)
npx iterate-skill-installer
# iterate-harness: headless engine (npm wrapper, simplest)
npm install -g iterate-harness
curl -fsSL https://raw.githubusercontent.com/jingzhao-l/iterate-harness/main/scripts/install.sh | bash
ih iterate init && ih iterate review
# iterate-plugin: dsh desktop plugin (this repo — commands repeated under Installation below)
dsh plugin --profile web add iterate-plugin
This document focuses on iterate-plugin (this repo). For Core Skill docs see the iterate-skill monorepo; for headless engine docs see iterate-harness.
iterate is an open-source project that gives AI coding assistants the ability to review and fix code in multi-round autonomous loops. It targets a concrete pain point:
AI assistants tend to "talk a lot but do little": a single conversation only touches a few lines, stops caring about the rest of the repo after seeing one file, and rarely double-checks what they broke. iterate automates these closing chores — itemized review, per-dimension triage, fix, validate, and iterate again — so AI actually finishes changes and gets them right.
iterate-plugin is the iterate integration for the DeepSeek Harness (dsh) desktop client. It brings iterate's review loop (review → triage → fix → validate → converge) directly into the dsh UI, offering autonomous closed-loop code iteration (normal mode) and dry-run read-only multi-round review.
v3.2 Quality Command Center: the plugin has grown from a "passive observation panel" into an "active command center + knowledge base". It now ships quality gate view + writable compute, an experience bank with search / adopt / add, a defense events stream (record + bilingual labels), native command buttons, and a task_mode indicator.
Besides 17 pure-function tools, it carries a build-free Web UI layer (convergence dashboard, triage panel, stats card, 10-tab runtime observatory, theme skin, etc.) that plugs straight into dsh's existing UI slots. Configuration (iterate.config.yaml and the review dimensions) is identical across the other two components of the iterate ecosystem (skill / headless engine) — zero migration cost.
The plugin runs the same iterate engine as the rest of the ecosystem, either fully read-only or as an autonomous fix loop:
Both modes share:
normal mode additionally:
conversation.input.dock) — live round progress bar, severity stats, dimension badges, trend mini-chart above the input; normal mode also shows fix-count badges; plus a live workflow-phase chip (current phase + running/stopped) and a v3.2 task_mode indicator (code / iterate), now backed by the persisted transcript (iterate_status / iterate_transcript emit taskMode).conversation.input.dock) — a ten-tab runtime observatory below the input: live activity stream (type filter), review threads (expand / collapse all), convergence trend, finding locations (severity / dimension / search filter), fixes + rollback, checkpoint resume, decision timeline (type / round filter + search). v3.2 tabs: Quality Gate (F8), Experience Bank (F9), Defense Events (F10); one-click JSON export of all observatory data (download, copy fallback). v3.3+: F8/F9/F10 are live — they scan the session stream for the latest iterate_quality_gate / iterate_experience / iterate_defense_events results and render real data (PASS/FAIL chip + per-dimension score bars, experience entries with adopt buttons + client-side search, defense type-count chips + filtered event stream), degrading to copy-able query instructions only when the session has none. v3.5.3: reset actions surfaced — F5 copies an iterate_checkpoint clear instruction, F8 an iterate_quality_gate clear instruction, F10 an iterate_defense_events clear instruction.conversation.chat.turnTail) — per-finding y/n/a triage, filtering, batch ops (incl. select-all), keyboard shortcuts, localStorage persistence, copy-YAML / apply-instruction. v3.2: native command buttons (approve architectural fix, trigger new round, rollback to checkpoint). v3.3: §8 指派修复 (assign) — one click copies an iterate_fix instruction carrying every in-scope finding (respecting the batch toggle).conversation.chat.turnTail) — convergence stats, round history, trend chart and completion summary when no findings remain.theme.overrideTokens) — a warm-amber 13-token --dsw-* override, light/dark modes, togglable in settings.shell.overlay) — popup notification on each round completion / convergence (incl. convergence confirm).settings.section) — theme toggle, triage-persistence notes, config-management guide, runtime status overview (artifact layout + view/cleanup tool guide), one-click triage data reset.The UI layer is defensive by design: it degrades gracefully if any of slots / theme / React is unavailable — it never crashes the client.
Beyond the 17 registered tools (full reference further down), the plugin closes several loops end to end:
iterate_triage writes back known_intentional → auto-filtered next rounditerate_rollbackiterate_history reads the decision log (filtered by type / time / count) and the fix-registry summary to audit run process and fix detailsiterate_prune removes stale decision-log entries, stale checkpoints, orphaned fix backups, empty rounds and stray temp files left by crashed atomic writes; dry-run by default (report-only), real cleanup requires dryRun:false, and every cleanup is loggediterate_config supports validated, backed-up, rollback-capable partial writesiterate_experience queries historical fixes and patterns with search / filter / adopt, and can persist new verified fixes (add) — re-adding the same pattern+dimension bumps its hit count instead of duplicating ititerate_quality_gate reads quality gate status with per-dimension convergence rates and PASS/FAIL, and can recompute + persist a fresh certificate (compute) from this round's findings / validation results (real convergence from findingsByRound)iterate_defense_events queries defense events (precondition failures, rollbacks, invariant violations, assumption falsifications) and can record new ones; readable labels follow the project language (en / zh)dsh plugin --profile web add iterate-plugin
# or
pnpm add iterate-plugin
dsh officially supports installing plugins directly from a GitHub repo: dsh plugin --profile web add "github:owner/repo#ref" (repo root is the plugin, auto-enabled once dsh.bundle is declared). This plugin's standalone iterate-plugin repository has the repo-root-is-plugin publish point, synced from the main repo via git subtree, content identical to the npm package:
dsh plugin --profile web add "github:jingzhao-l/iterate-plugin#main"
After installation, restart the dsh service (recommended dsh web --patch) and refresh the page so both the host and the client UI layer load.
dsh plugin --profile web add /path/to/iterate-skill/harness/iterate-plugin
# or
pnpm add /path/to/iterate-skill/harness/iterate-plugin
Then add to your profile cordis.patch.yml:
- insert:
- id: iterate-plugin
name: 'iterate-plugin'
The package carries its own
dsh.bundle.patch(i.e.cordis.patch.yml); the npm package'sfileswhitelist issrc/lib/dist/cordis.patch.yml/README.md/LICENSE.dist/is the compiled output of the TypeScript server-side logic, shipped with the package so it works with dsh'sgithub:owner/repo#refgit-clone install (Node does not strip TS types undernode_modules).
When you want "just review repeatedly, modify nothing", an example prompt:
dry-run review this project, find all issues across all dimensions
The plugin auto-triggers the iterate workflow:
plan → read config, generate the review planloop → review dimensions in parallel each round, only new findings → deterministic aggregation / dedupe → convergence stats → stop when no new findingsmeta-review → audit report consistencyreport → output final resultWhen you want "iterate this project / fix the issues found", an example prompt:
iterate on this project, fix all atomic issues
Workflow:
plan → read configloop → parallel review → aggregate / dedupe → parallel atomic fixes → run validation commands → rollback on failure → log → stop when no new findingsreport → output fix statisticsPut iterate.config.yaml at the project root:
# Review goal (e.g. "Improve code quality of the project")
goal: "Improve code quality of the project"
# Review dimensions (pick from the plugin's predefined set or customize)
dimensions:
- correctness
- security
- performance
- maintainability
- code-style
# Max review rounds
max_rounds: 3
# Review scope
review:
scope: full # full = whole project, changed-only = only changed files
# Atomic fix threshold (max lines a single fix may change; beyond requires force)
atomic:
max_lines: 20
# Known intentionally-unfixed issues (filtered out, never re-reported)
personalization:
known_intentional:
- file: src/example.ts
line: 42
dimension: security
reason: "Intentional for demonstration"
# Validation commands (run after fixes; results logged)
validation:
commands:
- npm test
- npm run typecheck
The config can be read and validated-partially-written via
iterate_config(auto backup, auto rollback on write failure).
iterate_config — read / write iterate.config.yaml. operation=read returns the full config or a named section; operation=write schema-validates, backs up, then merges and writes — auto rollback on failureiterate_validate — run a whitelisted validation command, return the resultiterate_decision_log — append a decision log entry (append-only, never edits old ones), stored in .iterate/decision-log.jsonliterate_context — read the SKILL.md / ITERATE.md contextiterate_review — deterministic review engine: plan builds the plan, aggregate dedupes + converges, meta-review audits report consistency. Pure computation, no filesystem accessiterate_triage — manage personalization.known_intentional: apply validates, dedupes (file|dimension|line), backs up and writes back to config; list reads back the current entries. The only channel for the browser triage panel to write back to configiterate_fix — apply one atomic fix: validates the relative path, backs up the original file, enforces atomicity via atomic.max_lines (skippable with force), writes new content, records a FixRecord and an atomic_fix log. The only legal file-modifying entry in normal modeiterate_diff — view accumulated fix changes: with file, returns the unified diff against the first backup; without it, a per-fixed-file summaryiterate_rollback — roll back an applied fix: restore the file from backup, remove that FixRecord from the registry, append a revert log. Used after a failed round validationiterate_checkpoint — iteration breakpoint: save persists progress to .iterate/checkpoint.json, load reads it back, resume loads + bumps the resume counter (interruption recovery), clear removes it (bounded findings payload, round ≤ maxRounds enforced). Resumable interrupted long iterationsiterate_status — summarize current iteration state: mode, current/last round, fixes applied, remaining architectural, decision-log entry count, whether a checkpoint exists; v3.4: also surfaces the persisted quality-gate snapshot, experience-bank summary, and defense-events summary (qualityGate / experienceBank / defenseEvents)iterate_history — read iteration history (read-only): decision-log entries (filter by type / since / limit, default latest 50, cap 200) + fix-registry summary (per-round fixed/failed counts). For auditing the run, tracing logs, and inventorying fixesiterate_prune — clean runtime artifacts: stale decision-log entries (by retainDays, default 30), stale checkpoints, orphaned fix backups, empty rounds, stray temp files (crashed atomic writes). Dry-run by default (report-only); real cleanup with dryRun:false, each cleanup loggediterate_transcript — runtime observatory: persist review transcripts, threads, fixes, and nudge directions to .iterate/transcript.json for the client observatoryiterate_experience — v3.2 query the experience bank (list / search / get), add a new verified fix (re-adding the same pattern+dimension bumps its hit count instead of duplicating it), or v3.5 remove a stale/incorrect entry by id so bad experiences never resurface. Persists to .iterate/experience.jsoniterate_quality_gate — v3.2 read the quality certificate (read), or recompute + persist a fresh one (compute) from findings, validation results, findingsByRound, and fixedByDimension. Real per-dimension convergence rates. v3.5: clear removes the persisted certificate to reset a stale gate before a fresh iterationiterate_defense_events — v3.2 query defense events (list / counts), record a new one, or v3.5.3 clear the persisted stream so a fresh iteration starts without stale defensive data. Human-readable labels follow the project language (en / zh)All runtime state lives under .iterate/ at the project root (can be excluded via .gitignore):
.iterate/
decision-log.jsonl # append-only decision log (plan/review/fix/revert…)
checkpoint.json # iteration breakpoint (resume)
transcript.json # runtime-observatory manifest (per-reviewer threads, trend, fixes, timeline, nudge)
transcript-live.ndjson # append-only near-real-time reviewer-activity feed (read/fix/rollback/validate…), byte-capped
experience.json # v3.2: experience bank (historical fixes and patterns, accumulated across sessions)
quality-gate.json # v3.2: quality gate snapshot (dimension convergence, verification pass rates, PASS/FAIL)
defense-events.json # v3.2: defense events stream (precondition failures, rollbacks, invariant violations, assumption falsifications)
fixes/
registry.json # fix registry (list of FixRecords, grouped by round)
<fix-id>_<ts>.bak # original file backup before each fix
>=20 (package.json engines.node).dsh.compatibility.dshReleases — compatible for the official
0.1.1-rc.1, 0.1.2-alpha.4, 0.1.2-alpha.5, 0.1.2-rc.1, and 0.1.3-alpha.1
releases. The plugin is built against @deepseek-ai/dsh-tools /
@deepseek-ai/dsh-util-values 0.1.2-rc.1 and uses only public contracts
(tool registration, client slots + theme, bundle patch). 0.1.3-alpha.1 is a
source declaration matching the current DSH release window; it does not use any
API changed by that release.dsh CLI 0.1.1-rc.1): on a temp
$DSH_HOME, dsh plugin --profile <p> add <this-repo> installed the bundle in
~449 ms; dsh --profile <p> --dump-config composed the iterate-plugin bundle
patch into the profile; dsh plugin --profile <p> remove iterate-plugin
uninstalled in ~602 ms and left zero references in the composed config. A full
runtime boot was not exercised here (no model provider in the disposable
profile), so dshOperations start/rollback stay unknown/partial — see
CHANGELOG.md for the exact commands and timings.The plugin runs with the same process capabilities as the DSH host and touches the
following capabilities; elevated capability means a DSH Profile install stays
user-reviewed/guarded rather than auto-approved:
<projectRoot>/.iterate/
(decision log, checkpoint, transcript, fix backups/registry, quality gate,
experience bank, defense events). iterate_fix / iterate_triage also apply
in-place edits to the user's source files (path-traversal protected to the
resolved project root, backups taken before every fix, rollback on failure).
The client half persists triage verdicts to localStorage.iterate_validate
runs one of the exact-match whitelisted commands configured in
iterate.config.yaml validation.commands (yes, it shells out via
node:child_process, timeout-capped to ≤600 s); iterate_review (changed-only
scope) runs git diff --name-only -z <branch> in the project root. Nothing else
spawns a process. The client "command buttons" only copy paste-able instruction
text; they do not spawn processes.Runtime dependencies: @deepseek-ai/cordis, @deepseek-ai/dsh-tools,
@deepseek-ai/dsh-util-values, js-yaml — all pinned exact versions. No
install-time lifecycle scripts (preinstall/install/postinstall/prepare);
only prepublishOnly (build) runs on publish.
.iterate/; a crash
mid-write cannot corrupt the checkpoint/transcript.{ ok: false, error } results instead
of silent success.The plugin follows dsh's "everything-is-a-plugin" architecture:
workflow + agent + paralleliterate_prune is dry-run by default and only clears artifacts under .iterate/ with every cleanup logged; iterate_fix caps content length and iterate_triage caps entry count to fend off abnormal oversized payloadslib/client.js uses a React.createElement tree + injected <style> tags, all colors via --dsw-* tokens, degrading gracefully when a service is missingcd harness/iterate-plugin
npm install
npm run typecheck
npm test
All tests pass:
This project is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement.
Automated code review and fixing carries inherent risk. All changes produced in normal mode are generated by AI models and may introduce bugs, regressions, or unintended behavior. Before merging, you should:
git restore, revert, or restore from backup)..env, or files that must not be modified — configure protected_paths accordingly.Users are solely responsible for the code that is generated, modified, or committed as a result of using this project. By using it, you acknowledge that neither the maintainers nor contributors are liable for any loss, damage, or legal consequences arising from its use.
MIT
FAQs
dsh plugin that turns the iterate skill into an autonomous closed-loop harness with quality command center and experience bank (v3.3). Features: plan -> parallel review xN -> atomic fixes -> validate -> loop -> auto-stop, plus dry-run pure-review mode, qu
The npm package iterate-plugin receives a total of 839 weekly downloads. As such, iterate-plugin popularity was classified as not popular.
We found that iterate-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.