deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:fgm-builds/dashr
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
dshcurl -fsSL https://raw.githubusercontent.com/fgm-builds/dashr/main/install.sh | bash
dsh Plugin CLI (npm)dsh plugin --profile web add --config.auto-install-peers=false dsh-rlm-mode
# then copy the preset files (install.sh does this for you):
# <profile>/node_modules/dsh-rlm-mode/preset/rlm-mode/* → ~/.dsh/.agent-presets/rlm-mode/
After installation, launch
dsh weband select the RLM Mode agent preset.
DeepSeek Harness (dsh): Everything is a plugin (万物皆插件, Cordis framework).
Prime Agent: RLM paradigm (递归自调用), Context as variables (上下文即变量).
Why not both? That's dsh in RLM mode — that's Dashr.
Dashr is an open-source plugin for the DeepSeek Harness (dsh) agent runtime. It brings RLM(Recursive Language Models:递归自调用) and the Context as Variables(上下文即变量) paradigm to dsh, registering a dedicated rlm-mode agent preset upon installation.
Instead of paying massive token costs on every round-trip tool call in standard multi-turn chat, Dashr equips the agent with a stateful, persistent Python kernel(持久化内核). The agent writes self-contained Python programs per cell, manipulating context, tools, and memory as native variables via the Python Kernel Unified Tool Calling(统一的代码化工具调用).
Reference: Recursive Language Models (MIT/Stanford/Open MIND, 2025, arXiv:2512.24601)
In standard agent loops, reading large files or computing complex payloads dumps raw output directly into the conversation history. In Dashr:
tools.<name>()). Intermediate execution data never round-trips through the prompt.rlm())The core mechanism of RLM:
handle = rlm("Investigate repository history")).rlm_await(handle) collects only the final distilled summary back into the parent kernel.compact()).refine()) and reinjected into the prompt.dsh built-in)While both RLM Mode (Dashr) and dsh's built-in Code Mode provide a code-first interface for programmatic tool orchestration, they differ fundamentally in language ecosystem, kernel persistence, and recursive capabilities:
| Dimension | RLM Mode (Dashr Plugin) | Code Mode (dsh Built-in) |
Highlight & Advantage |
|---|---|---|---|
| Interface Standardization | Host Toolset Registry Schema | Host Toolset Registry Schema | 🤝 Both dynamically expose typed SDK bindings (tools.*) generated from the same host registry. |
| Trigger & Orchestration | Programmatic Code Execution | Programmatic Code Execution | 🤝 Both collapse multiple sequential tool calls into a single code execution step. |
| Execution Language | Python (IPython 3.10+) | TypeScript / JavaScript | 🐍 Full access to Python's data science, AST analysis, and AI tooling ecosystem (pandas, numpy, etc.). |
| Backend & Kernel Layer | Persistent IPython Kernel (ZeroMQ + Jupyter Protocol) | Ephemeral Node.js Sandbox / One-shot runner | ⚡ Dashr maintains a dedicated, persistent kernel per session. Variables, imports, and objects survive across turns. |
| Functional Recursive Delegation | Native rlm() Function Call, Arbitrary Recursion Depth) |
Framework-level Sub-Agent Tool Call | 🔀 Standardized as a zero-friction Python function (rlm()). Sub-agents can recursively spawn Level 2+ sub-agents with arbitrary depth, returning results directly into Python variables. |
| State Snapshot & Revival | Full Namespace Snapshot (dill) |
Stateless between restarts | 💾 Kernel state can be serialized and restored across session restarts. |
rlm(task) to spawn parallel sub-agents and rlm_await(id) to collect results inside Python code.refine() for operating memory and compact() for context reduction under pressure.tools.* run through dsh's host tool pipeline, where approval and sandbox policies apply normally.dsh. Run Dashr in environments where you trust the agent's code execution against your user account (or run dsh within a container).The design of Dashr builds upon groundbreaking research in recursive agent execution and persistent prompt harnesses:
Recursive Language Models (RLM)
Recursive Language Models, 2025.
Paper: arXiv:2512.24601
Establishes the recursive decomposition and sub-agent execution paradigm for ultra-long context and bounded prompt management.
Continual Harness & Prompt Refinement
Continual Harness for Autonomous Agents, 2026.
Paper: arXiv:2605.09998
Formulation for dynamic prompt refinement and in-loop compaction.
Dashr is built as an open-source plugin for DeepSeek Harness (dsh).
While Dashr's codebase was developed independently from scratch for the dsh plugin ecosystem, the core design and philosophy are deeply inspired by the pioneering work of Prime Agent by Prime Intellect. We pay tribute to their introduction of the Context as Variables(上下文即变量) paradigm and the Recursive Language Model(RLM:递归自调用) execution model, which inspired us to bring these breakthrough capabilities to the dsh agent community.
Both Dashr and upstream inspiration Prime Agent are licensed under the permissive MIT License. Dashr is fully open-source and license-compliant without IP or licensing conflicts.
This project is licensed under the MIT License.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。