Articles / DeepSeek Harness Open-Sourced: Everything as a Plugin

DeepSeek Harness Open-Sourced: Everything as a Plugin

15 8 月, 2026 8 min read AI-agentsopen-source-framework

DeepSeek Harness Open-Sourced: Everything as a Plugin

Today, just hours after the official release of DeepSeek V4 Pro, DeepSeek unveiled DeepSeek Harness — a groundbreaking open-source developer preview framework for building, running, and extending AI agents.

DeepSeek Harness Announcement

Long anticipated — with early teasers and team recruitment efforts led by Tongyi Cui (DeepSeek Harness team) — Harness represents a paradigm shift in agent architecture: not another “smart coding assistant”, but a composable, extensible runtime system for intelligent agents.

We gained early access in early August and have since explored its capabilities — from game development to 3D animation generation — confirming its potential to redefine AI tooling ecosystems.

Harness Demo Interface

First Impressions: From Concept to Working Agent

Harness empowers developers to build fully autonomous agents without manual intervention. In one test, we configured it with DeepSeek-V4-Flash and instructed it to build a first-person zombie shooter — resulting in a playable prototype in under 30 minutes:

Zombie Shooter Demo

We also benchmarked its reasoning + execution fidelity using the viral “Huaqiang Bu Gua” (Huaqiang Buys Watermelon) prompt — generating a 3D animation from text description in a single shot:

Huaqiang Animation

Compared to a similarly prompted GPT-5.6 sol-xhigh-powered Codex implementation, Harness delivered superior narrative coherence and character relationships — despite V4-Flash’s significantly smaller parameter count. This highlights Harness’s architectural advantage over raw model scale.

Codex Comparison

Upgrading to DeepSeek V4 Pro further improved output quality:

V4 Pro Integration

Architecture: A Modular “Hole-Punched Board”

Harness’s repository already hosts 230+ workspace members, organized across modular domains:

  • packages/ — Core services (LLM adapters, shell, filesystem, LSP, web, skills, subagents, workflows)
  • apps/, examples/, python/, native/, vendor/, website/

Repository Structure

💡 Think of traditional agents as pre-built computers. Harness is more like a massive breadboard: models, tools, UIs, storage, security policies, and context managers are all pluggable components — swappable, composable, and independently maintainable.

Its default configuration delivers an out-of-the-box agent — but its true ambition lies deeper: to standardize how agents are assembled, not just what they do.

What Is DeepSeek Harness?

Harness is neither a new LLM nor an API wrapper. It is a:

SDK + application framework for building intelligent agents.
Runtime orchestrator that connects models to file systems, shells, editors, browsers, and other agents.
Interaction layer supporting Web UI, full-screen TUI, headless CLI, and automation protocols (ACP/JSON-RPC).

Harness Interaction Layers

It provides built-in model routing (with seamless swap to non-DeepSeek LLMs), project-aware editing, command execution, task delegation, and multi-modal user interaction — all governed by a unified event-driven lifecycle.

The “Harness” Metaphor

Like physical harnesses — which channel power without losing control — Harness bridges raw model intelligence to real-world action while enforcing accountability, safety, and observability.

It answers critical questions:
– Can a command be safely canceled mid-execution?
– How do tool results affect context integrity?
– Where should user messages injected mid-turn be routed?
– How is session state rebuilt exactly as the model saw it?

Harness treats each as a formalized system capability, not an afterthought.

Design Principle: Everything Is a Plugin

Harness’s most radical idea: “Everything is a plugin” — including the agent loop itself.

Built atop the Cordis microkernel, every Harness instance is a Cordis Context. Packages register services, events, and capabilities; configuration (cordis.yml) composes them into functional agents.

Core Packages Breakdown

Package Responsibility
packages/core/ Session management, system prompts, tool registry, agent creation, agent loop logic
packages/llm/ Model adapters & streaming I/O
packages/shell/, packages/subprocess/, packages/terminal/ Command execution, process trees, persistent terminals
packages/fs/ Secure file read/write/search with policy enforcement
packages/lsp/ Semantic code navigation via language servers
packages/web/ Search & web scraping
packages/skill/ Reusable skill modules
packages/subagent/, packages/workflow/ Multi-agent delegation & orchestration

Beyond infrastructure, even planning, goals, tasks, background jobs, context compression, credential management, and telemetry are decoupled — reflecting strict interface-boundary discipline.

Three-Layer Capability Model

Harness structures functionality as:
Interface: What the capability does (e.g., “execute command”)
Implementation: How it’s done (e.g., spawn local process)
Consumer: How the model uses it (schema + result parsing)

This enables clean swapping — e.g., replacing local Bash with cloud sandbox or enterprise executor — without rewriting tool schemas or agent logic.

Plugin Architecture Diagram

cordis.yml: Declarative Agent Assembly

Agent behavior is defined in cordis.yml — a YAML config listing plugins, IDs, and parameters:

plugins:
  - id: deepseek-llm
    package: packages/llm/deepseek
    config: { apiKey: "${DSH_API_KEY}" }
  - id: fs
    package: packages/fs
    config: { root: "./workspace" }
  - id: bash
    package: packages/shell

Same codebase → different products:
– Terminal agent: llm + fs + bash + tui
– Web app: Swap tuiweb-ui
– CI automation: Use headless entrypoint → runs once, exits cleanly
– Microservice: Expose via ACP or JSON-RPC

Config supports overlays (TUI/Web share base config + interface-specific layers) and runtime expressions (!!js process.env.DEEPSEEK_API_KEY). Credentials are never hardcoded — stored separately in $DSH_HOME/.credentials.yaml or .env.

Agent Loop: Not a Loop — A Traffic System

Harness replaces the naive prompt → tool → repeat cycle with a rigorous, observable turn-step-event lifecycle:

  • Turn: A user-initiated interaction
  • Step: One model request + optional tool execution(s)
  • Events: System prompt assembly, streaming chunks, tool calls/results, cancellation reasons — all emitted to a unified event stream

Agent Lifecycle Diagram

📌 The zombie shooter ran 3 turns, 127 steps.

Tools undergo a full pipeline: pre-check → security guard → execution → post-processing → result notification. Concurrency is explicitly declared (e.g., safe-for-parallel-read tools), and unsafe operations act as execution barriers.

Crucially, Harness tracks where user messages land — ensuring steering instructions are verifiably injected into the correct model request, not merely “received”.

Session Log: The Single Source of Truth

All model-visible state is reconstructible from the append-only session log, which records:
– User messages & environment context
– Model requests & streaming outputs
– Tool calls, results, permission switches, compression events, cancellation reasons

Interfaces, persistence, replay, fork/resume, and telemetry all derive from this same event source — eliminating state drift and enabling precise debugging, auditing, and evaluation.

From One Agent to Many: Subagents & Workflows

Harness natively supports hierarchical agent systems:

  • Main agents delegate to subagents, created fresh, forked from history, or connected via ACP
  • Each subagent has isolated scope: tools, prompts, and permissions
  • Workflows script multi-step, structured collaboration — integrating goals, plans, todos, and background jobs as distinct lifecycle states

Subagent Execution

🧩 The zombie shooter spawned 5 parallel subagents.

Workflow Visualization

Goal Planning UI

Interfaces: Web, TUI, Headless & SDK

Harness ships four primary interfaces — all sharing core logic:

Interface Use Case
Web UI (http://localhost:3080) Interactive development with sidebar, permissions, plan mode, tool cards
TUI Terminal-native experience for CLI lovers
Headless Scriptable, single-task mode (ideal for CI/CD)
ACP / JSON-RPC / Python SDK Programmatic control — launch sessions, send tasks, receive notifications

Four Preconfigured Agent Modes

Mode Capabilities Ideal For
Standard Full toolset: file editor, shell, search, skills, planning, subagents, workflows General development
PTC (Program-Then-Call) Adds TypeScript-based run_code tool — reduces round trips for complex pipelines Long-chain automation
Minimal Only bash + str_replace_editor — minimal context overhead Direct, path-clear coding tasks
Creative Enables runtime plugin inspection, dynamic mounting/unmounting, preset authoring Advanced users & agent R&D

Mode Selection UI

In Creative Mode, we extended the official Web UI to create a custom three-column layout — demonstrating true runtime composability:

Custom Three-Column UI

TUI Interface

Self-Inspecting & Self-Modifying Agents

Harness includes self-referential Cordis tools, accessible only in Creative Mode:
– Inspect current plugin tree
– Dynamically mount/unmount temporary plugins
– Register new tools or listeners at runtime

Self-Inspection UI

While powerful, this capability is gated — requiring explicit opt-in and operating within Cordis’s effect-scoped lifecycle (ensuring cleanup). It signals Harness’s north star: agents that don’t just use tools — but reconfigure their own runtime.

For deeper insight, see the companion paper: A Programming Paradigm for Spatiotemporal Composability

Paper Cover

Security: A System-Wide Constraint

Harness treats security as a cross-cutting system property, not a UI toggle:

  • Default workspace-write mode restricts FS/shell to allowed directories
  • ask approval strategy enforces human consent for privilege escalation
  • danger-full-access exists but requires explicit deployment opt-in
  • Tools pass through unified policy guards — no “shell bypass via file tool”
  • “Fail-closed” principle: if isolation can’t be verified, execution halts
  • All permissions, approvals, and failures are logged for auditability

Security Policy UI

Beyond Another Codex

Harness isn’t aiming to be “DeepSeek’s version of GitHub Copilot”. Its architecture reveals a deeper mission:

🔑 Models define intelligence ceiling. Harness defines how that intelligence enters reality — reliably, auditably, and sustainably.

Default apps are important — but they’re merely the first customer of the SDK. The real innovation lies in:
– Replaceable capability interfaces
– Event-driven, observable lifecycles
– Authoritative session logs
– Declarative composition

For enterprises, this means deployable, auditable, upgradable, and model-agnostic agent infrastructure — far beyond chat UI polish.

Harness is still evolving — but its technical vision is already complete, public, and actionable. Its greatest value may not be what it does today, but how transparently it reveals DeepSeek’s engineering answer to the agent problem.


🔗 Official Resources
GitHub Repository
Cordis Paper

Article adapted from Machine Heart (Ji Qi Zhi Xin).

DeepSeek Harness Open-Sourced: Everything Is a Plugin

14 8 月, 2026 7 min read AI-agentsopen-source-framework

DeepSeek Harness Open-Sourced: Everything Is a Plugin

Today, just hours after the official launch of DeepSeek V4 Pro, DeepSeek announced the developer preview release of DeepSeek Harness — a groundbreaking, fully open-source SDK and application framework for building, running, and extending AI agents.

DeepSeek Harness Preview

The project has been in stealth development for months — notably promoted by team lead Tianyi Cui on social platforms — and early adopters (including this publication) have already secured internal access to test its capabilities.

Harness Architecture Overview

A First-Person Zombie Shooter — Built in 30 Minutes

Using the official DeepSeek-V4-Flash model integrated into Harness, we configured an autonomous agent to build a playable first-person zombie shooter — without human intervention:

Zombie Shooter Demo

“Huaqiang Bu Gua” — Text-to-3D Animation Benchmark

We challenged Harness with the viral “Huaqiang Bu Gua” benchmark: turning a textual description into a 3D animated scene in one shot. The result faithfully captures narrative flow and character relationships:

Huaqiang Animation

For comparison, the same prompt fed to a GPT-5.6 sol-xhigh–powered Codex yielded significantly weaker output:

Codex Comparison

Notably, DeepSeek-V4-Flash operates at a much smaller parameter scale — underscoring that Harness’s architecture, not just raw model power, drives superior composability and execution fidelity.

Modular by Design: 230+ Workspaces, Zero Monolith

The GitHub repository (github.com/deepseek-ai/deepseek-harness) reveals extraordinary structural discipline:

  • Over 230 workspace members
  • Organized across packages/, apps/, examples/, python/, native/, vendor/, and website/
  • Dedicated packages for: file system, shell & subprocess, terminal (PTY), LSP integration, web scraping, skills, sub-agents, workflows, planning, session persistence, credentials, telemetry, and more

Repository Structure

💡 Think of traditional agents as pre-assembled computers. DeepSeek Harness is a giant perforated board: models, tools, UIs, storage, security policies, and context managers all plug in — and unplug — cleanly.

What Is DeepSeek Harness?

Harness is not a new LLM — nor merely an API wrapper. It is:

✅ A full-stack SDK & runtime framework for building intelligent agents
✅ Designed to connect any LLM (default: DeepSeek models; easily swappable)
✅ Enables agents to read projects, edit files, run commands, manage tasks, delegate sub-tasks, and interact via Web UI, full-screen TUI, headless CLI, or automation protocols (ACP/JSON-RPC)

Web UI Configuration Panel

📝 The web UI includes a built-in model configuration wizard — no manual YAML edits required.

“Everything Is a Plugin” — The Core Philosophy

Harness embraces extreme modularity: even the Agent Loop itself is a plugin, orchestrated atop the lightweight Cordis microkernel.

Each component registers services, events, and capabilities into a shared Cordis Context. Final agent behavior is assembled declaratively via cordis.yml — a single configuration file defining which plugins activate, their IDs, and parameters.

Key Capability Packages

Package Function
packages/core/ Session management, system prompt composition, tool registration, agent lifecycle
packages/llm/ Model adapters & streaming I/O
packages/shell/, packages/subprocess/, packages/terminal/ Process orchestration & persistent terminal sessions
packages/fs/ Secure file I/O with path-based policies
packages/lsp/ Semantic code navigation via language servers
packages/web/ Search + HTML parsing & extraction
packages/skill/ Reusable, versioned skill modules
packages/subagent/, packages/workflow/ Multi-agent delegation & structured orchestration

This strict layering — separating interfaces, implementations, and consumers — enables clean swapping: e.g., replace local Bash with remote container execution without touching model tool schemas or agent loops.

cordis.yml — One Codebase, Infinite Agents

A single Harness binary can become:

  • A terminal coding assistant (LLM + FS + Bash + TUI)
  • A browser-based app (Web UI + tools + plan mode)
  • A headless task runner (one-shot execution → stdout → exit)
  • An automation service (exposed via ACP or JSON-RPC)

Configuration supports layered overrides — base, interface-specific (Web/TUI), and user-level — though patches fully replace target plugin configs (not deep-merge).

Environment-aware YAML syntax (!!js) allows dynamic credential injection (e.g., DEEPSEEK_API_KEY) while keeping secrets out of logs and config files.

Agent Loop: Not a Loop — A Traffic Control System

Harness decomposes agent execution into rigorous, observable phases:

  • Turn: A user input event
  • Step: One model request + optional tool execution(s)

Each step triggers a deterministic pipeline:

  1. Assemble stable system prompt + environment state + tool schema + message history
  2. Stream model response chunks
  3. Validate, route, execute, and post-process tool calls — with concurrency safety, timeout handling, retries, metrics, and context enrichment
  4. Emit structured events for logging, UI, and auditing

Agent Execution Timeline

📊 The zombie shooter ran 3 turns, 127 steps — each logged with full fidelity.

Session Log — The Single Source of Truth

Every observable event — user messages, context injections, model requests/responses, tool calls/results, compression events, permission switches, cancellation reasons — is appended to an immutable, replayable event stream.

All interfaces (UI, persistence, recovery, fork, telemetry, replay) derive state from this log — eliminating inconsistencies caused by divergent “views” of session state.

This enables precise debugging, evaluation, audit compliance, and deterministic agent resumption/forking.

From One Agent to Many: Sub-Agents & Workflows

Harness natively supports hierarchical agent coordination:

  • Main agents can delegate tasks to freshly spawned, forked, or externally connected sub-agents
  • Each sub-agent runs in an isolated context — with scoped tools, prompts, and permissions
  • Workflows enable scripted multi-step orchestration, combining goals, plans, checklists, and background tasks

Sub-Agent Visualization

🧩 The zombie shooter spawned 5 parallel sub-agents — each responsible for distinct subsystems (e.g., rendering, physics, AI logic).

Web, TUI, Headless & SDK — Unified Core, Flexible Interfaces

Interface Use Case Key Features
Web UI (http://localhost:3080) General development Dialog sidebar, permission toggles, plan mode, tool cards, workspace explorer
TUI Terminal-native users Full keyboard-driven interaction, low-resource, scriptable
Headless CLI CI/CD & scripting Accepts task → executes → prints final answer → exits
ACP / JSON-RPC / Python SDK Automation & embedding Start sessions, send tasks, receive notifications — without embedding Node.js core

Four Prebuilt Agent Presets (All Share Same Core)

  • Standard Mode: Full toolkit — FS, Shell, search, skills, planning, sub-agents, workflows
  • PTC Mode: Adds TypeScript-powered run_code for multi-step tool chaining in one model call
  • Minimal Mode: Only bash + str_replace_editor — optimized for direct, path-clear coding
  • Creative Mode: Enables runtime plugin inspection, dynamic mounting/unmounting, and custom preset authoring — for advanced users and researchers

Agent Preset Selector

In Creative Mode, we extended the official UI by building a novel three-column layout — demonstrating how agents can reconfigure their own runtime:

Three-Column UI

Self-Inspecting & Self-Modifying Agents

Harness includes self-referential Cordis tools, accessible only in Creative Mode. Agents can:

  • List currently loaded plugins
  • Dynamically mount/unmount temporary plugins (e.g., custom event listeners, ephemeral services)
  • Inspect and modify their own runtime context

While powerful, this capability is gated behind explicit opt-in — prioritizing safety and reproducibility over novelty.

Underlying design principles are detailed in the companion paper: A Programming Paradigm for Spatiotemporal Composability.

Cordis Paper Cover

Security: Systemic, Not Cosmetic

Harness treats security as a cross-cutting system constraint, not a UI toggle:

  • Default workspace-write sandbox restricts file/Shell operations to allowed directories
  • ask approval policy requires justification for privilege escalation
  • danger-full-access must be explicitly enabled — never default
  • Tool execution passes through: pre-policy → monotonic guard → execution wrapper → post-processing
  • Sandboxing policies are unified across FS, Bash, and subprocess — no bypass vectors
  • Fail-closed principle: If isolation cannot be verified, execution is denied
  • All security decisions (approvals, rejections, cancellations) are logged in Session Log

Security Policy UI

🔐 Security isn’t about blocking actions — it’s about making every action auditable, reversible, and boundary-respecting.

Beyond Another Codex: A New Layer for AI Engineering

Harness transcends being “DeepSeek’s coding assistant.” Its true ambition is foundational:

  • Model intelligence defines what an agent knows
  • Harness defines how that intelligence safely, reliably, and compositely acts in the real world

It answers critical enterprise questions: Can this be audited? Extended? Replaced? Maintained long-term?

The repository isn’t just shipping a product — it’s publishing DeepSeek’s engineering thesis on agent systems:

✨ Agents should be composable, observable, replaceable components — not monolithic loops.
✨ Sessions should be factual event streams — not ephemeral chat histories.
✨ Tools should expose policy, logging, and presentation — not just functions.

DeepSeek Harness may not be “plug-and-play” today — but it sets a new benchmark for transparency, extensibility, and architectural rigor in the AI agent ecosystem.


Source: Machine Heart (WeChat Official Account)