dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
A DeepSeek Harness plugin that stops agents from drifting off-task: it locks in the good first-round behavior, watches every step, and pulls the agent back when it degrades.
Self-contained DeepSeek Harness bundle (v0.5.2). It observes one agent's
trajectory, anchors the first round, and speaks exactly two kinds of
behavioral reminders. It deliberately does not promise effects: every
mechanism that was ever measured and found null / low-precision /
structurally unreachable has been removed (slim rewrite, ablation-log.md
§61). What remains is:
<workspace>/.dsh-trajectory-logs/anchor-<agentId>.jsonl), reward
annotation, and the read-only anchor_status tool.bash / str_replace_editor /
pwsh), a Minimal persona, and runtime-context + skill-catalog
suppression. The tool surface is derived at assembly time (the
unpromoted request only receives the bootstrap allow-list); no
tools.restrict() call exists anywhere in the runtime, so the old
"context restored but tool surface didn't" split is structurally
impossible. Promotion is gated (anchor-gate lexical check) with a
step-cap fallback; every degradation path exposes the full catalog and
logs loudly.pullbackMaxPerSession per session), suggested
phrasing with an explicit exemption, and a randomized control arm
(pullbackControlRate) so its effect is measurable.No rollback, no capability layer, no delivery gates, no fact mirrors: those
families were deleted after measurement (P1 −0.25 p=0.890; Q1' 0.00 p=1.000;
ark anchoring A/B −2.6 p=0.254; lexicon buckets do not move scores). The
evidence trail lives in ablation-log.md (kept as the historical ledger) and
docs/.
Fresh install needs zero configuration; every key has a default and unknown keys are loudly warned and ignored.
| Key | Default | Meaning |
|---|---|---|
anchorEnabled | true | Enable first-round anchoring |
bootstrapTools | ['bash','str_replace_editor','pwsh'] | First-round tool allow-list (intersected with what the agent sees) |
bootstrapMaxTokens | null | Optional first-round maxTokens cap (null = no cap) |
bootstrapPersona | 'You are a helpful software engineer assistant.' | First-round persona |
gateEnabled | true | Promotion gate on (lexical anchor-gate) |
maxBootstrapSteps | 5 | Step-cap fallback for promotion |
suppressContextOnBootstrap | true | Suppress runtime context during bootstrap |
suppressSkillCatalog | true | Suppress the skill catalog during bootstrap |
suppressedSources | ['skill-catalog'] | Message-source kinds suppressed during bootstrap |
lexicon | built-in | Scoring dictionary (positive/negative/neutral buckets) |
lexiconPath | null | Optional JSON file to replace the dictionary |
pullbackEnabled | false | L1 informational pullback (measure first) |
pullbackMaxPerSession | 3 | L1 reminders per session |
pullbackControlRate | 0 | Fraction of triggers deliberately not spoken (control arm) |
reanchorOnConfirm | false | L2' confirm-reanchor |
reanchorConfirmControlRate | 0 | Control arm for L2' |
pullbackOutcomePath | null | Outcome JSONL path (default: audit dir) |
exportTrajectoryLogs | true | Write per-agent trajectory JSONL |
logDir | .dsh-trajectory-logs | Audit directory |
auditChunkEvents | 400 | Audit buffer threshold (events) |
auditChunkBytes | 262144 | Audit buffer threshold (bytes) |
anchor_status — read-only live audit (anchored/lifted state, bootstrap
allow-list, scores, evidence counts, pullback/reanchor state, audit tail).DSH STORE installs the Bundle Patch pinned to a full Commit. Manual or development install into a throwaway profile:
$env:DSH_HOME = "<scratch-dir>"
dsh plugin --profile anchor-e3 add --ignore-scripts <path-or-fixed-commit-spec>
dsh --profile anchor-e3 --dump-config # expect one row: id: trajectory-anchor
The patch inserts exactly one host-plane row (trajectory-anchor); there are
no lifecycle scripts and nothing @deepseek-ai/* is disabled, replaced or
installed twice.
>=0.2.0-rc.2 <0.3.0, declared in engines.dsh; per-release
records live in dsh.compatibility.dshReleases and the evidence behind them
in docs/store-compatibility.md.>=22.19 (engines.node).<workspaceRoot>/.dsh-trajectory-logs/ and, when configured, the
pullbackOutcomePath; reads its own package.json (version report) and an
optional lexiconPath.ctx.get('agents' | 'fs' | 'sandboxPolicy') services,
ctx.on(...) events, and one read-only model tool (anchor_status).index.js — the whole runtime (pure predicates in tools/task-anchor-core.mjs)tools/ — test suites, offline instruments, replay tools, mirror scriptablation-log.md — the historical ledger of every mechanism, measurement and
verdict (kept in the development workspace, not shipped with the bundle)docs/ — historical design documents (kept for reference)docs/store-compatibility.md — declared DSH release compatibility plus the
disposable-Profile install/start/uninstall evidence behind it