hu568/dsh-plugin-cluster-preset ↗★ 0
@dsh-external/dsh-cluster-preset
提供集群模式智能体编排与寿命提示器 适合需要多专家智能体协同,并监控上下文占用折算寿命的复杂任务。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hu568/dsh-plugin-cluster-preset說明文件
閱讀完整 README ↗配置
在 build-preset.mjs 的 cluster-lifecycle-reminder 行加 config 即可:
- id: cluster-lifecycle-reminder
name: ./cluster-preset/lifecycle-reminder.js
config:
subjectPreset: cluster # 只对本预设生效;null = 所有会话
includeSubagents: true # 子智能体也提示(它们才是真吃上下文的)
explain: true # 在系统提示里加一段说明 + 实时年龄
theoreticalWindow: 1000000 # 标称上限;省略则用实际生效窗口
stages: # 省略则用内置四档
- age: 20
label: 轻量任务可以完成
lines:
- 【寿命论 · 壮年 1/4】理论年龄 20 岁。
- ''
- 趁窗口还干净,把关键结论固化下来。
任何非法值都会让挂载失败并给出具体原因(fail-loud),而不是被静默忽略。