Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions plugins/dsh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@
Give your **DeepSeek Harness** agent a nightly **sleep cycle**: it reviews past
sessions offline, replays your recurring tasks on your own API budget, and
consolidates what it learns into validated skills behind a held-out gate. Same
engine as the Claude Code / Codex / Cursor integrations (`skillopt_sleep`),
wired into dsh's plugin system as native tools plus a bundled skill.
engine as the Claude Code / Codex / Cursor integrations
([skillopt_sleep](https://github.com/microsoft/SkillOpt)), wired into dsh's
plugin system as native tools plus a bundled skill.

DeepSeek Harness is the "everything is a plugin" agent framework
([deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)).
Plugins are TypeScript modules exporting an `apply(ctx)` function that register
capabilities (tools, services, events, settings) on the Cordis context.

## Why a sleep cycle?

Skills improve when an agent re-examines its own sessions — not just when you
hand-tune a prompt. The sleep cycle turns your everyday usage into a nightly,
validation-gated skill-improvement loop: harvest what you actually did, replay
the recurring tasks on your own API budget, and keep only the changes that pass
a held-out gate. It's the same engine as the Claude Code / Codex / Cursor
integrations, wired into dsh as native tools plus a bundled skill.

## What this integration adds

| Component | Purpose |
Expand All @@ -34,7 +44,8 @@ capabilities (tools, services, events, settings) on the Cordis context.

## Prerequisites

- DeepSeek Harness (dsh) installed
- DeepSeek Harness (dsh) installed — dsh 0.1.x and 0.2.x are supported
(`@deepseek-ai/dsh-tools` 0.1.1-rc.2, 0.2.0-rc.2)
- Python 3.10+ with the SkillOpt-Sleep engine:

```bash
Expand Down
11 changes: 6 additions & 5 deletions plugins/dsh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsh-skillopt",
"version": "0.1.0",
"version": "0.2.1",
"description": "Microsoft SkillOpt-Sleep integration for DeepSeek Harness: give your dsh agent a nightly sleep cycle that harvests past sessions, replays recurring tasks, and consolidates validated skills behind a held-out gate.",
"type": "module",
"main": "src/index.js",
Expand Down Expand Up @@ -30,14 +30,15 @@
}
},
"dependencies": {
"@deepseek-ai/dsh-tools": ">=0.1.1-rc.2 <0.2.0 || >=0.2.0-rc.1 <0.3.0",
"@deepseek-ai/schemastery": "^3.18.1"
},
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.1",
"@deepseek-ai/dsh-tools": "^0.1.0-rc.8"
"@deepseek-ai/cordis": "^4.0.1"
},
"peerDependenciesMeta": {
"@deepseek-ai/cordis": { "optional": true },
"@deepseek-ai/dsh-tools": { "optional": true }
"@deepseek-ai/cordis": {
"optional": true
}
}
}