A-f-ish/dsh-emotion-feedback ↗★ 0

dsh-emotion-feedback

DSH plugin: judges the working model's own emotion each turn and silently re-injects it before the next turn. 适合希望模型在每轮对话中评估自身情绪,并在下轮对话中保持情绪连贯性的用户。

패키지
dsh-emotion-feedback
호환성
미검증
Cordis peer 범위
>=4.0.4 <5.0.0
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 25.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:A-f-ish/dsh-emotion-feedback

Configuration

Give the plugin row a config: block in a profile patch; every field has a default.

- id: emotion-feedback
  config:
    minIntensity: 0.3     # injection threshold (default 0.2)
    judgeModel: ''        # judge model; empty = the session's default model
    judgeProvider: ''     # same, for the provider
    useLlm: true          # allow the model judge when keywords miss
    inject: true          # false = judge and keep state, never inject
    includeReason: false  # true = append the judge's reason to the injected text
    timeoutMs: 6000       # single judge timeout; on timeout the old state stays
    turnDecay: 0.9        # per-turn intensity decay
    takeoverRetain: 0.35  # retained fraction of the old intensity on emotion switch
    disabled: false       # emergency switch: true = silences everything (wins over enabled)
    debug: false          # true = print the judge result each turn
FieldDefaultEffect
enabled / injecttruemaster switch / whether to inject (off = judge only)
disabledfalseemergency switch, takes priority over enabled, no uninstall needed
minIntensity0.2injection threshold
judgeProvider / judgeModel''judge target; falls back to agent.options → session request header → session default model
useLlmtruewhether the model judge layer is allowed
timeoutMs6000single judge timeout
turnDecay / takeoverRetain0.9 / 0.35blend rules above
halfLifeMinutes10inactive (kept for reference only)
injectPerStepfalsealso allow injection on later steps of the same turn
emotions / rules / prompt / templatebuilt-invocabulary (15 labels) / keyword rules / judge prompt / injection text
negationssee abovenegation word list; [] disables the guard
panelEvent / panelRoute / statusTooltruesession event / read-only HTTP route / emotion_status tool
persistHistorytruewrite per-session history to disk (kept 30 days)

The full schema is Config in lib/types/index.d.ts.