puppetcat-fire/dsh-plugin-dreaming ↗★ 0

dsh-plugin-dreaming

记录工具调用并优化其描述与边界 适合希望通过分析历史调用来提高工具调用精准度的用户。

套件
dsh-plugin-dreaming
相容性
待驗證
Harness 依賴範圍
>=0.2.1-0
Cordis 依賴範圍
*
版本
1.0.0
授權
MIT
最近更新
2026年10月20日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:puppetcat-fire/dsh-plugin-dreaming

Configuration

All configuration lives in the profile's cordis.patch.yml (or a home patch). The plugin exports no editable volatile fields, so Settings shows no generic form; Settings → Dreaming is a read-only observability page. Defaults are defined in lib/config.js. The most useful keys:

KeyDefaultMeaning
enabledtrueMaster switch
dataDir''Data directory; empty = $DSH_HOME/dreaming
probe.enabledtruePredict on skill load
probe.mode'inline'inline (recommended, cheap) or subagent
probe.sampleRate1Sampling rate; known-gap skills are always probed
probe.attachDeadlineMs1500How long the skill result waits for the probe; on timeout only history is attached
probe.maxPerHour120Hourly probe cap
judge.enabledtrueJudge after the turn
observe.maxTurnExtensionMs600000Hard cap on the observation window
prompt.awarenessSectiontrueInject the global awareness section
prompt.annotateSkillResulttrueAnnotate the skill result
prompt.refreshMinutes10Minimum refresh interval for the global section (KV-cache friendly)
dream.enabledtrueNightly dream
dream.time'03:30'Local wall-clock time HH:MM
dream.timeZone''IANA zone; empty uses the process zone
dream.scoreThreshold78Below this score a judged episode is a mismatch case
dream.autoApplyfalsefalse records suggestions only; true applies validated edits with backup and revert
dream.editableSources['user-dsh','user-agents']Skill sources that may be edited on disk
dream.dailyTokenBudget60000Daily dream token budget
run.maxConcurrent2Concurrent probe/judge calls
store.retainDays120Episode retention
store.maxEpisodes4000Episode cap

Example (probe office skills only and opt into automatic edits):

- id: dreaming
  config:
    probe:
      sampleRate: 0.5
      attachDeadlineMs: 1200
    dream:
      time: '04:10'
      timeZone: Asia/Shanghai
      autoApply: true