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. 适合希望模型在每轮对话中评估自身情绪,并在下轮对话中保持情绪连贯性的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:A-f-ish/dsh-emotion-feedbackREADME
Read the full README ↗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
| Field | Default | Effect |
|---|---|---|
enabled / inject | true | master switch / whether to inject (off = judge only) |
disabled | false | emergency switch, takes priority over enabled, no uninstall needed |
minIntensity | 0.2 | injection threshold |
judgeProvider / judgeModel | '' | judge target; falls back to agent.options → session request header → session default model |
useLlm | true | whether the model judge layer is allowed |
timeoutMs | 6000 | single judge timeout |
turnDecay / takeoverRetain | 0.9 / 0.35 | blend rules above |
halfLifeMinutes | 10 | inactive (kept for reference only) |
injectPerStep | false | also allow injection on later steps of the same turn |
emotions / rules / prompt / template | built-in | vocabulary (15 labels) / keyword rules / judge prompt / injection text |
negations | see above | negation word list; [] disables the guard |
panelEvent / panelRoute / statusTool | true | session event / read-only HTTP route / emotion_status tool |
persistHistory | true | write per-session history to disk (kept 30 days) |
The full schema is Config in lib/types/index.d.ts.