不是又一个记忆插件:ODR 是“演化世界”式(Dream-RSI)自我改进回路——每次尝试都记入发现树(Discovery Tree),任务间歇将数千个策略变体在这棵记录下来的世界上回放;策略、配方或经验只有通过反事实回放的考验才会晋升,绝不因模型自己说好就获得信任,Sentinel 还会在预算耗尽前拦截工具调用;LLM 保持冻结,可从 npm 安装 dsh-open-dream-rsi。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-open-dream-rsi
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:patrykorwat/open-dream-rsi#path:/plugins/deepseek_harness
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
DeepSeek Harness (dsh)
is an all-plugin agent harness. ODR speaks MCP, and DSH ships a first-party
MCP client bridge (@deepseek-ai/dsh-mcp-client) — so this adapter is pure
configuration: a Cordis overlay that inserts the ODR MCP server as an
external stdio (or Streamable HTTP) server. DSH starts the child with its
plugin lifecycle, discovers the six odr_* tools, and exposes them as
mcp__open_dream_rsi__<tool>.
No code ships here — only two overlay files and this guide.
Files
| file | transport | use when |
|---|---|---|
odr.cordis.yml |
stdio | DSH and the ODR checkout on one machine |
odr-http.cordis.yml |
streamable-http | ODR served remotely (tunnel / other host) |
cordis.patch.yml + package.json |
bundle (npm) | installable dsh plugin add package |
The npm bundle ships the ODR Python server inside the package
(open_dream_rsi/, stdlib-only) plus a tiny bridge (bridge.js) that does
two things: it publishes where the vendored entry point lives
(run_mcp.py), and it is the dreamer's brain — an in-process
OpenAI-compatible proxy that forwards every ODR LLM call to the model the
harness itself is configured with (ctx.llm.stream), so the Python child
needs no API keys, no presets and no extra endpoints. The layer inserts the
in-box @deepseek-ai/dsh-mcp-client row pointing the system python3 at
the vendored entry point. No pip, no PYTHONPATH, no build step and no build
allowance even for git installs. Bundle defaults resolve tasks.json /
.dream_rsi beside the directory dsh launches from; override the
mcp-open-dream-rsi row from your profile's cordis.patch.yml (same id —
a config override replaces the whole config).
Install as a bundle (dsh plugin add)
The bundle ships the Python server inside the package — no pip, no
PYTHONPATH. Only a system python3 (3.10+) on PATH is required. From a
directory holding your tasks.json:
# from the npm registry, a tarball, a checkout, or straight from GitHub — pick one:
dsh plugin --profile <name> add dsh-open-dream-rsi # or pin: dsh-open-dream-rsi@0.3.1
dsh plugin --profile <name> add /path/to/dsh-open-dream-rsi-0.3.1.tgz
dsh plugin --profile <name> add /path/to/open-dream-rsi/plugins/deepseek_harness
dsh plugin --profile <name> add github:patrykorwat/open-dream-rsi#path:plugins/deepseek_harness
dsh --profile <name> --dump-config # shows the "# == dsh-open-dream-rsi" layer
Git installs fetch sources; this bundle needs no build step and no build allowance. Pin a commit so a later push cannot silently change what runs:
dsh plugin --profile <name> add "github:patrykorwat/open-dream-rsi#<sha>&path:plugins/deepseek_harness"
(The pin must point at a commit that already contains this directory — pnpm fetches sources, not releases.)
Updating
The bundle is self-contained (the Python server is vendored, no pip, no build step), so updating is a re-install of the same package id:
dsh plugin --profile <name> add dsh-open-dream-rsi
Installed from git instead? Pin a commit that already contains the bundle
files — an older sha registers a synthetic 0.0.0 package and dsh dies in
resolveBundleDir:
dsh plugin --profile <name> add github:patrykorwat/open-dream-rsi#<sha>&path:plugins/deepseek_harness
Verify the installed version afterwards with your profile's plugin list
(see dsh plugin --help). Re-installs never touch your memory:
tasks.json / .dream_rsi live beside the directory dsh launches from.
Install (stdio, --patch overlay)
Make the server importable (not on PyPI — install from the repo):
python3 -m pip install git+https://github.com/patrykorwat/open-dream-rsi, or exportPYTHONPATH=<ODR checkout>in the overlay'senv:block.Edit both
/ABSOLUTE/PATH/...placeholders inodr.cordis.ymlto your project'stasks.jsonand memory dir (DSH does not expand~; use absolute paths).Apply it once:
dsh --patch /ABS/PATH/TO/odr.cordis.yml webTo persist across runs, merge the overlay's
- insert:entry into$DSH_HOME/profiles/web/cordis.patch.yml(do not overwrite that file — it may already hold unrelated patches). Verify the layer mounted:dsh --patch /ABS/PATH/TO/odr.cordis.yml --dump-config | grep -A2 open_dream_rsi
Install (remote)
Serve the endpoint first, then apply odr-http.cordis.yml the same way.
The URL is a credential — see the note in the overlay.
Where the dreamer's model comes from
The bundle needs no LLM configuration at all. The bridge runs an
OpenAI-compatible proxy inside the harness process; the Python child is
pointed at it via OPENAI_BASE_URL=http://127.0.0.1:<port>/v1 and every
/v1/chat/completions call is served by the harness's own configured model
through the dsh-llm service (ctx.llm.stream). The route is resolved once,
in order of intent: ODR_LLM_MODEL pins the model; otherwise the harness's
own agent default route (ctx.agentDefaultModel); otherwise the first
registered provider plus its first catalog model (ctx.llm.listModels).
GET /v1/models reports that
model, so ODR's auto-detection picks it up.
Escape hatch: if the harness process already has a real OPENAI_BASE_URL
set, the child is pointed there directly and the proxy stays idle (direct
mode). Set ODR_LLM_MODEL to pin a specific model in either mode.
Environment scrubbing still applies: DSH drops child-env names matching
KEY|PASSWORD|SECRET|TOKEN and everything DSH_*, and the bridge
(childEnv()) re-passes only LLM vars that are actually set — an empty
ODR_LLM_PRESET="" never reaches the child (older ODR releases fed it into
preset selection and died with Unknown preset '').
The hand-rolled --patch overlay (odr.cordis.yml) has no bridge: it
re-passes the vars it needs (process.env.VAR || undefined) and ODR then
resolves an endpoint itself — OPENAI_* env, a preset
(ODR_LLM_PRESET=local|openai|cursor|goose), or its local default
(http://127.0.0.1:8000/v1 with model auto-detection).
Timeouts
toolCallTimeoutMs: 1800000 (30 min) replaces the 60 s default because
odr_run_once / odr_dream run bounded improvement cycles that can take
tens of minutes. odr_status, odr_recipes and
odr_add_task return in milliseconds.
Verify
In a DSH session:
mcp__open_dream_rsi__odr_status— returns the loop's learned-state summary (policies, recipes, events). Expected on a fresh memory dir: zeros plus a hint, not an error.mcp__open_dream_rsi__odr_add_taskwith a small task (prompt + tests), thenmcp__open_dream_rsi__odr_run_once— with the bundle, the cycle calls the model your harness session already uses; with the overlay, it needs a resolvable LLM endpoint (env, preset, or localhost vLLM) and reports the resolution failure instead of hanging.
Model-facing behavior notes (recipes as warm start, add-task-then-dream workflow) live in the main README's "Plug in your favourite agent" section.
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 38526
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37266
dsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
yikart/AiToEarn#dsh-plugin-aitoearn★ 28921
帮你生成文案/图文/短视频,一键分发抖音、快手、小红书、公众号、bilibili、Facebook、TikTok 等海内外平台,覆盖自媒体运营从内容创作,内容发布到内容变现全链路。
superdesigndev/treg★ 9983
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
T-Auto/dsh-ops★ 6095
为 Windows 的 DSH 提供 bash、PowerShell 7 及 Rust 高性能工具,减少 token 消耗。
Hithink-Tech-Org/Financial-API#hithink-finance★ 4745
在 DeepSeek Harness 中查询同花顺金融数据、在对话中查看图表,并保存可刷新的看板。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。