nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Algovate/dsh-green-loop
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Arm once. The agent keeps fixing until your project check passes.

The GIF is a simulated demo of the UI flow. The plugin itself is installed and verified; the real dock screenshot is here.

dsh-green-loop is a DeepSeek Harness plugin for coding agents that do not stop at the
right moment. After every turn, it runs your test/lint/typecheck command. If the command fails,
the plugin steers the same turn with the failure output, so the agent sees the failing test
and keeps working. The loop stops when the check is green, the attempt budget runs out, the
output stops changing, or you stop it.
This is deterministic verification, not another model reviewing the model:
| Green Loop | Manual quality gate | Auto-continue on network errors | |
|---|---|---|---|
| Trigger | turn ends while armed | user runs /gate |
network failure |
| Decision | exit code of your command | evidence/spec rules | transport error |
| Action | steer the agent with the output | report / rework verdict | send "continue" |
| Stop rule | green / attempts / stalled output | gate verdict | transport recovery |
dsh plugin --profile <profile> add dsh-green-loop@0.1.0
Or install a local checkout / release tarball from Settings → Plugins:
dsh plugin --profile <profile> add ./dsh-green-loop-0.1.0.tgz
The package declares dsh.bundle.patch, so the profile adds it to dsh.profile.bundles and the
patch inserts the Host row. The composer dock attaches through dsh.client.
Requires DSH 0.2.2-rc.0 or newer in the 0.2.x line.
stalled.maxAttempts checks the loop disarms red./green stop.The command plane also works without the dock:
/green status show armed/running/attempts and the resolved command
/green start arm; the check runs when the next turn stops
/green run run the check now; failures are steered immediately
/green stop disarm and abort a running check
If config.command is set, it wins. Otherwise the plugin detects one from the session's
working directory without executing anything:
| Project signal | Command |
|---|---|
package.json scripts.test + pnpm-lock.yaml |
pnpm test |
package.json scripts.test + yarn.lock |
yarn test |
package.json scripts.test + Bun lockfile |
bun run test |
package.json scripts.test |
npm test |
pyproject.toml / pytest.ini / tox.ini / tests/ |
pytest -q (uv run / poetry run with lockfiles) |
go.mod |
go test ./... |
Cargo.toml |
cargo test |
Makefile with a test: target |
make test |
The detected command is shown in the dock before it runs. A monorepo or a nonstandard layout
should set command explicitly.
- id: green-loop
name: dsh-green-loop
config:
command: '' # explicit check; empty = detect from the project root
timeoutMs: 180000 # one check, including preparation
maxAttempts: 3 # checks in one armed cycle
stopOnRepeat: true # identical failure twice = no progress -> stop
outputTailChars: 4000 # output kept for steering and the dock
cwd: '' # override; relative resolves from the session cwd
detect: true # allow auto-detection when command is empty
Every field is a Schemastery-validated row config, so users can override it in their profile's
cordis.patch.yml without editing the package. The generic Settings → Plugins form shows
the same schema.
| Tool | Purpose |
|---|---|
green_check |
Run the configured/detected check and return pass/fail plus the output tail. Use it before claiming a coding task is complete. |
green_status |
Report armed/running/attempts, the resolved command, and the last result. |
The agent cannot arm or disarm the loop; that stays a user decision. green_check is a
read-only probe: it never arms the loop or steers the agent.
agent/turn-stopping, the Host runs the command through ctx.shell, the same executor
and sandbox as the bash tool.agent.steer(...); the loop re-reads its inbox and runs
another step instead of closing the turn.stalled; the attempt
budget stops it as red.See docs/architecture.md for the sequence, state machine, and failure modes.
green_check /
/green run. The agent has no arm tool.ctx.shell, so the deployment's
sandbox, working directory, and environment apply. A timeout kills the check.outputTailChars is kept for steering and the dock; the rest is not
persisted by this plugin.package.json script: only use it in projects whose commands you trust.node --test test/*.test.js
node --check index.js && node --check client.js && node --check engine.js \
&& node --check detect.js && node --check loop.js
The suite covers detection, the pure retry/stall/stop decisions, the live engine with a fake agent/shell, abort behavior, the browser factory, and the release manifest.
Live verification on DSH 0.2.2-rc.3 Desktop:
green_check passed make test (61 workspace tests);docs/dock.webp);make test and reported green · attempt 1/3, disarming itself.The failure → steer → fix path is covered by engine tests with a fake agent; it has not been exercised against a deliberately failing real project yet. The full record is in docs/verification.md.
See docs/RELEASE.md for the npm, tarball, and marketplace checklist.
timeoutMs.command.conversation.input.dock entry; it does not portal fixed overlays.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent。