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

dsh-plugin-dreaming

Raises skill consciousness strength: probes every skill call, records what really happened, and improves skill descriptions and boundaries nightly so skills are invoked precisely and tokens are not wasted. 适合希望通过分析历史调用来提高工具调用精准度的用户。

Package
dsh-plugin-dreaming
Compatibility
Unverified
Harness peer range
>=0.2.1-0
Cordis peer range
*
Version
1.0.0
License
MIT
Last updated
Oct 20, 2026

Install

$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