SuperAPIAI Directory

更多介绍

github.com · AI agents

DeepSeek Harness (command-line tool name dsh) is an agent runtime (agent harness) open-sourced by DeepSeek AI, built on a Cordis-based "everything is a plugin" architecture, and provides both a CLI and a local Web UI. It covers complete subsystems such as LLM, MCP, LSP, ACP, sandbox, Skills, subagents, sessions, tools, plans, scheduling, Shell, and Web—even the agent main loop itself is a replaceable plugin. The project is open-sourced under the MIT license, is model-agnostic, and can connect to models from any vendor. It offers four operating modes: Standard, Code/PTC, Minimal, and Creative, and can incorporate Claude Code / Codex as subagents. Session logs are append-only, auditable, and reproducible. It is currently a developer preview, and the official documentation explicitly states that there will be breaking compatibility changes, so it is not suitable for directly carrying daily production workflows.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

DeepSeek Harness (command-line tool name dsh) is an agent harness (agent runtime) open-sourced by DeepSeek AI, built on a Cordis-based "everything is a plugin" architecture. It provides both a CLI and a local Web UI, and covers complete subsystems such as LLM, MCP, LSP, ACP, sandbox, Skills, subagents, sessions, tools, plans, scheduling, Shell, and Web. It is not a thin shell wrapped around a model, but a truly extensible runtime framework.

Purpose and positioning:

  • Standalone agent runtime: run dsh in the terminal or open the Web UI, and it can be used like Claude Code / Codex, except that every capability is a plugin.
  • Embed in your own products: the entire runtime is a set of Cordis plugins, so you can import only the subpackages you need and skip the rest (for example, remove the Web UI and run headless).
  • Extend LLM / tools: adding a provider or tool only requires writing a Cordis plugin that registers a service and effect; the runtime handles lifecycle, event bus, and connections.
  • Specification-driven / workflow-driven execution: use packages such as workflow, plan, goal, and schedule to run multi-step, scheduled, or goal-driven tasks, and they can survive across restarts.

Main capabilities:

  • Everything is a plugin (Cordis architecture): the entire runtime is built on Cordis (an IoC-style plugin framework). All subsystems, including LLM, MCP, LSP, sessions, tools, plans, sandbox, scheduling, and Web, are Cordis plugins that collaborate using a unified event / service / effect model; even the Agent main loop itself is a replaceable plugin.
  • Out-of-the-box CLI + Web UI: run npx @deepseek-ai/dsh web to http://127.0.0.1:3080 Launch the Web UI; no separate headless or GUI build is required.
  • Four run modes (presets): Standard mode (full toolset); Code/PTC mode (the model generates a TypeScript program that orchestrates multiple rounds of tool calls at once, greatly reducing token consumption); Minimal mode (keeps only shell + file editing, used officially for running model benchmarks); Creation mode (runtime checks + experimenting with plugins in memory, building new modes yourself).
  • Native image viewing: model adapters can send image requests directly; for models that do not support visual input, it automatically uses tools such as OCR / color statistics / pixel scanning to break images down into structured information.
  • Co-opt competitors as subagents: Claude Code and Codex can be installed via Profile Bundle and act as executors of specific tasks within DSH workflows (Codex also supports non-interactive permission mode and multiple named instances).
  • Fully traceable: everything the model sees is written to an append-only session log (system prompts, reasoning, tool calls and results, subagent scheduling, context injection); the Trajectory view inspects by source, and supports resume, fork, search, and replay.
  • Bilingual Chinese-English architecture docs: the docs/ directory provides complete bilingual Chinese-English documentation, covering architecture, agent lifecycle, tool execution pipeline, capability seams, Cordis introduction, defensive programming patterns, and more.
  • 40+ first-party subpackages: core / llm / mcp / lsp / acp / sandbox / skill / subagent / session / tools / plan / goal / schedule / web / shell / terminal / workflow / jobs / hooks / guard / feedback / compaction / context / attachment / identity / credentials / e2b / runtime-diagnostics / typert / client / host / sdk / extensions / bundle / boot / storage / preset, etc.
  • Plugin ecosystem: about 300 plugins in the community during the beta period, surpassing 1000 after open source; 100+ official built-in plugins, with the Plugin Store already reserved.
  • MIT license: source code, documentation, and tools are all MIT.

Core concepts:

  • Plugin (Cordis): the most basic unit, declaring events, services, effects, and able to await the services of other plugins.
  • Service: an injectable capability; plugins obtain it via this.someService and await it.
  • Event: typed lifecycle hooks, used for message passing between plugins and for runtime diagnostics.
  • Effect: long-running side effects (such as tool calls, sandbox subprocesses), registered in the lifecycle system.
  • Capability seams: the explicit locations where new capabilities are integrated (LLM provider, tool, transport, storage, etc.).

Usage:

  • Run npx @deepseek-ai/dsh web in http://127.0.0.1:3080 Launch the Web UI; for parameters such as --host / --port, see the upstream Web UI guide.
  • Run dsh in the terminal or open the Web UI to use it.
  • Switch by mode: use standard mode for everyday coding; use Code/PTC mode for batch operations/complex task orchestration; use minimal mode for running model benchmarks; use creation mode for developing plugins/building your own presets.
  • Install Claude Code / Codex as subagents via Profile Bundle and schedule them in DSH workflows; the reportDelivery mechanism returns results and wakes the waiting parent task.

Use cases:

  • A runtime framework that needs a highly extensible, replaceable agent loop.
  • Want to reuse Claude Code / Codex as subagents rather than choosing one or the other.
  • Need auditable, reproducible session logs.
  • Need to embed into your own product and introduce subpackages on demand.
  • Need to extend your own LLM provider or tools.
  • Need multi-step, scheduled, or goal-driven task execution.

Limitations and caveats:

  • Still a developer preview: from v0.1 on August 13, 2026 to the 0.1.7-rc series, docs, CLI, and API are all changing rapidly, and breaking changes can happen at any time; not suitable for directly carrying daily production workflows.
  • The Claude Code Mods compatibility layer is experimental: currently not all Mods can run seamlessly in DSH; the official positioning is to validate the boundaries of plugin capabilities.
  • Docs lag slightly behind the code: most docs are bilingual in Chinese and English and of good quality, but some new packages may not yet be fully covered.
  • npm distribution is accelerating but the API is not stable: @deepseek-ai/dsh has iterated to the 0.1.7-rc line, but the dsh CLI interface may still change; check the migration notes before upgrading (e.g., Session log format upgrades, settings and preset migrations).
  • No official cloud service: this is a self-hosted, local-first runtime (as of the time of writing, DeepSeek does not yet provide a hosted service for the harness itself).
  • The plugin supply chain is a double-edged sword: a tool plugin can touch files and the external network, and a storage plugin holds the complete session; before entering production, you must pass through plugin source verification, permission boundaries, and dependency conflicts.

Related experimental project: dsh-superagent-prototype (2026-10-31 open source) is DeepSeek AI's official independent research prototype repository; it is not the same repository as this project (deepseek-harness, dsh), but belongs to the same dsh series and comes from the same team. The README explicitly states it is a research prototype, not a formal product or production-ready software. It targets a single code repository, can receive work requests from channels such as GitHub, autonomously create tasks, execute coding, and return to the original conversation to deliver a PR or items requiring human handling. The architecture is divided into Router and Worker: the former handles messages, dispatches tasks, and maintains global context, while the latter executes independent work and can also directly receive follow-up PR comments. The system filters events with two layers, "program rules + model judgment," and uses an independent Watchdog to check whether tasks fall into ineffective loops or deviate from the goal. The team's preliminary experiments involved about 300 messages and 20 requests; the report gives a median task completion time of 12.4 minutes, which is a small-sample engineering test and cannot be generalized into a universal performance conclusion. The public version is not entirely consistent with the internal version and design articles, and some capabilities are still future directions; before connecting to a real repository, you need to review permissions, credentials, and code quality yourself.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools