DSH Plugins Marketplace

DSH Plugins

Plugins

/

deepseek-rlm

O

deepseek-rlm

Discovered

Persistent IPython state, durable snapshots, and native recursive subagents for DeepSeek Harness—packaged as a Prime-compatible Cordis plugin bundle.

DeepSeek RLM — persistent Python state and native recursive subagents for DeepSeek Harness

CI MIT license Node.js 22.19 or newer DeepSeek Harness 0.1.2 alpha 3 Python 3.11

DeepSeek RLM

Give every DeepSeek Harness agent a persistent IPython workspace and the ability to delegate focused work to native recursive subagents. DeepSeek Harness remains the only agent loop: it owns models, tools, approvals, sessions, policy, lineage, cancellation, and persistence.

[!NOTE] RLM means a Recursive Language Model workflow. This is a Cordis plugin bundle for DeepSeek Harness—not another harness and not a DeepSeek model.

[!IMPORTANT] This preview targets the exact DSH 0.1.2-alpha.3 baseline and requires four ordered host patches. The packages are not published; install the local tarballs using the installation guide.

What it adds

  • Persistent Python: one authenticated IPython/Jupyter kernel per live DSH agent, with state preserved between tool calls.
  • Durable snapshots: bounded, digest-authorized namespace snapshots restore variables without replaying historical cells or their side effects.
  • Native recursion: await rlm(...) admits a normal DSH continuable child with enforced lineage, depth, model selection, and cancellation.
  • Parent/child messaging: Prime-compatible agent_message calls route through public DSH subagent services.
  • Harness tools from Python: optional dsh_tools.call() requests remain inside the originating tool execution and pass through DSH policy.
DeepSeek Harness Agent
  └─ ipython tool → persistent Jupyter kernel → snapshots
                       └─ rlm(...) → native DSH child agent
                                        └─ agent_message → parent inbox

No production code starts prime-agent, creates a Prime AgentSession, calls an LLM provider from Python, or runs a second agent loop.

Compatibility

ComponentSupported baseline
DeepSeek Harnessdsh-v0.1.2-alpha.3 / dd6322d plus four bundled patches
Cordis4.0.2
Node.js^22.19 or >=24
Package managerpnpm 11.7.0
Managed PythonPython 3.11 through uv
Prime Agent runtimevendored pin f8f0036

The DSH packages move as one audited set. Do not mix registry copies or another pre-release into the profile.

Quick start

Build and verify the five local packages:

git clone https://github.com/OpenCnid/deepseek-rlm.git
cd deepseek-rlm
pnpm install --frozen-lockfile
pnpm package:bundle

Apply the four patches under patches/deepseek-harness/ to the exact pinned DSH checkout, configure the generated tarballs as profile-local overrides, and install the bundle:

dsh plugin --profile <profile> install
dsh plugin --profile <profile> add -w /absolute/path/deepseek-rlm-dsh-rlm-bundle-0.1.0-preview.0.tgz
dsh --profile <profile> --dump-default-config

The dump should contain one active row each for rlm-spawn-provider, rlm-jupyter, and rlm-ipython-tool. Follow docs/INSTALL.md for the required overrides, patch commands, runtime roots, and a complete Windows configuration.

Use persistent Python

State survives between calls in the same agent:

records = {"passed": 41, "failed": 1}
records["passed"] + records["failed"]  # 42

Snapshots serialize values independently with dill. Missing, corrupt, or oversized values are reported and skipped, the final payload is held to the configured aggregate cap, and old cells are never replayed.

Delegate to a child agent

worker = await rlm(
    "Investigate the failing test and report the smallest verified cause.",
    name="investigator",
    model="provider/model",
    thinking="high",
)

rlm(...) returns when DSH admits the child, not when the child finishes. When model is omitted, the child inherits the exact active request route from the parent session. The child reports explicitly:

import agent_message
await agent_message.send("Cause: ...", receiver_role="parent")

The parent can continue the same child:

await agent_message.send(
    "Now verify the smallest fix.",
    receiver_role="child",
    receiver_name=worker.name,
)

Model discovery, child listing/deletion, and optional DSH tool routing are also available through rlm and dsh_tools; see SPEC.md for the complete contract.

Security boundary

[!WARNING] IPython is OS-authority code execution, not a sandbox. Python, %%bash, file access, sockets, imports, and subprocesses can bypass DSH tool guards. Only dsh_tools.call() traverses DSH restrictions, approval, logging, and telemetry. Use an external OS or container sandbox for untrusted code.

The kernel starts with an empty-by-default ambient environment plus explicitly allowed values and RLM-owned paths. Provider credentials and full environment values never enter model catalogs, lifecycle events, or snapshots.

Validate changes

pnpm build
pnpm check
pnpm package:bundle

check covers formatting, lint, type checking, TypeScript and Python tests, provenance, patch integrity, package metadata, real Jupyter/DSH integration, and bundle e2e behavior. CI runs on Windows, Ubuntu, and macOS and verifies the patch series against a fresh pinned DSH checkout.

Packages

PackageResponsibility
@deepseek-rlm/dsh-rlmProvider-neutral ctx.rlm service and typed events
@deepseek-rlm/dsh-rlm-jupyterJupyter transport, managed Python, bridge, and snapshots
@deepseek-rlm/dsh-tool-ipythonNative ipython tool and prompt guidance
@deepseek-rlm/dsh-rlm-prime-runtimeReproducible Prime shim and DSH Python bridge assets
@deepseek-rlm/dsh-rlm-bundleLoader-compatible DSH bundle and native spawn provider

Documentation

DeepSeek RLM is available under the MIT License. The workspace is a private preview package set and is not published to a registry.

Comments

Loading…

Similar plugins

@beihaizb/dsh-notebook

by beihzb

A stateful, Agent-controllable Jupyter workspace for DeepSeek Harness: a persistent ipykernel runtime the DSH agent can read, edit, execute, and inspect, with VS Code-aligned cell UI and .ipynb save/load.

Development & InfrastructureTerminal & ClientsManifest valid

★ 3

↓ 80/wk

MIT

JavaScript

Aug 26, 2026

dsh plugin --profile web add @beihaizb/dsh-notebook

by KannaKuron

Agent preset for DeepSeek Harness that layers the self-referential Cordis toolset (dynamic plugins, runtime inspection) and preset-authoring skills onto the PTC Code-Mode preset; materialized files ca

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 5

↓ 1.2k/wk

MIT

JavaScript

Oct 4, 2026

dsh plugin --profile web add dsh-ptc-cordis-preset

by flowingboy

Durable DeepSeek Harness bundle: local-model performance tuning as a re-installable plugin layer (compaction, tool-result pruning, time context, cloud title routing, text-toolcall guard) — survives ds

Manifest valid

★ 0

TypeScript

Aug 24, 2026

dsh plugin --profile web add @flowingboy/dsh-local-perf

by NinjaSln-labs

DeepSeek Harness 插件:Cursor-as-subagent 提供方——一次本地 @cursor/sdk one-shot 运行、摘要优先结果、可无人值守的 Profile Bundle

Manifest valid

★ 0

↓ 353/wk

MIT

TypeScript

Sep 19, 2026

dsh plugin --profile web add dsh-subagent-cursor

by february2015

Pi true-gateway plugin for DeepSeek Harness (DSH): /pi-lock direct connection to a durable Pi session — queued/steered conversation, live output, durable binding + auto-reattach. Personal fork of @dee

Manifest valid

★ 0

MIT

TypeScript

Sep 3, 2026

dsh plugin --profile web add dsh-subagent-pi-plus

by coffee-man666

Repository and agent-runtime analysis skills as an installable DeepSeek Harness (dsh) plugin

Security & AuditManifest valid

★ 0

MIT

TypeScript

Aug 24, 2026

dsh plugin --profile web add @deepseek-ai/dsh-lens