chunqing286/dsh-guard-degen ↗★ 0

dsh-guard-degen

Degeneration guard for DeepSeek Harness: detect and contain runaway symbol streams, verify writes, repair polluted artifacts and sessions

패키지
dsh-guard-degen
호환성
미검증
Harness peer 범위
>=0.1.6-alpha.2 <0.3.0-0
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 31.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:chunqing286/dsh-guard-degen

Configuration

KeyDefaultMeaning
enabledtrueMaster switch
modelIncludes[]Guard only these models (empty = all)
stream.reasoningtruncateReasoning policy: off/truncate/sanitize
stream.textsanitizeText policy
stream.holdbackChars256Characters held back before a verdict
stream.maxInterventionsPerCall1Max interventions per call
stream.unitRuntrueAlso govern multi-character units repeated as a whole block
stream.unitRepeats4How many repeats of a unit count as degeneration (stream guard)
toolGuard.modewarnDegeneration in tool arguments: off/warn/refuse
toolGuard.scopeallall/write-only/oversized-only
toolGuard.unitRuntrueAlso govern multi-character units in tool arguments
toolGuard.unitRepeats4How many repeats of a unit count as degeneration (tool guard)
postExecute.enabledfalseWrite-back verification (costs IO)
postExecute.roots[]Restrict verification; empty = inside the workspace
retry.policysame-modelsame-model/steer/no-retry
retry.maxSameModelRetries1Same-model retry count
retry.switchModel.enabledfalseAllow an automatic model switch
artifacts.modecollapsecollapse (marker) or remove
artifacts.applyfalsePreview only by default
artifacts.unitRuntrueAlso govern multi-character units repeated as a whole block
artifacts.unitRepeats4How many repeats of a unit count as degeneration
artifacts.maxFileBytes8388608Per-file size limit; larger files are skipped (and listed)
sessions.modecopycopy (new file) or replace
sessions.maskModecollapsecollapse (marker) or remove (delete the run)
sessions.unitRuntrueAlso govern multi-character units in session content
sessions.unitRepeats4How many repeats of a unit count as degeneration
logging.enabledtruePersist the verdict journal

Runtime edits are written to ~/.dsh/guard-degen/config.json, layered over the profile configuration.