dsh-skillopt

by WODE25500

技能包github收录于 08-21

微软 SkillOpt-Sleep 集成:夜间睡眠循环——收获会话、挖掘重复任务、重放并在留出验证门后沉淀技能。

Microsoft SkillOpt-Sleep integration: a nightly sleep cycle that harvests sessions, mines recurring tasks, replays them and consolidates validated skills behind a held-out gate.

安装

dsh plugin --profile web add github:WODE25500/dsh-skillopt

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

快速上手

  1. 安装引擎:pip install skillopt(或克隆 microsoft/SkillOpt 并把其根目录加入 PYTHONPATH)
  2. 在 profile 的 cordis.patch.yml 插入插件(见根 README)
  3. 启动 dsh 后向 agent 提问:"用 skillopt_status 查看睡眠循环状态"

工具与引擎命令对照

dsh 工具 skillopt_sleep 动作 说明
skillopt_status status 状态与暂存提案
skillopt_dry_run dry-run 预览,不暂存
skillopt_run run 完整循环并暂存
skillopt_adopt adopt 应用提案(先备份)
skillopt_harvest harvest 只读导出任务
skillopt_schedule schedule 安装夜间 cron
skillopt_unschedule unschedule 移除 cron

引擎进阶配置(~/.skillopt-sleep/config.json)

{
  "gate_mode": "on",
  "gate_metric": "mixed",
  "gate_no_regression": false,
  "dream_rollouts": 1,
  "recall_k": 0,
  "evolve_memory": true,
  "evolve_skill": true,
  "preferences": "Prefer pytest. Keep commits imperative."
}

详见上游文档:https://github.com/microsoft/SkillOpt/tree/main/docs/sleep

原始 README: https://github.com/WODE25500/dsh-skillopt/blob/main/README.zh.md ↗