DeepSeek Harness - DeepSeek's AI agent runtime framework
DeepSeek Harness is an AI agent runtime framework launched by DeepSeek, with the core concept of 'Model + Harness = Agent'. The framework utilizes engineering modules such as context management, tool call orchestration, and execution sandboxing...
What is DeepSeek Harness?
DeepSeek Harness is an AI agent runtime framework launched by DeepSeek, with the core concept of "Model + Harness = Agent". Through engineering modules such as context management, tool call orchestration, and execution sandbox, the framework transforms the inference capabilities of large models into deployable autonomous execution capabilities, addressing the pain point of models only being able to chat but not perform tasks. DeepSeek Harness is positioned to compete with OpenAI Codex and Anthropic Claude Code, focusing on programming and office scenarios, achieving a complete closed loop from requirement understanding to code delivery. Internal testing began in August 2026, led by former Jane Street engineer Cui Tianyi, and it is positioned as a key infrastructure connecting models to the real world.
The main functions of DeepSeek Harness
-
Intelligent agent orchestrationIt receives complex user requirements and automatically breaks them down into executable steps, supporting collaborative work among multiple Agent roles such as product managers, architects, and development engineers, thereby improving the efficiency and accuracy of task completion.
-
Code Development (VibeCoding)It provides a complete closed loop from code generation to execution verification, with a built-in automated process of "write code → run → view errors → modify", which greatly improves programming efficiency and reliability.
-
Tool call orchestrationIt supports chained calls, automatic retries, and failure degradation mechanisms, and can flexibly call file systems, terminal commands, browser operations, and various external APIs, enabling the model to interact with the real world.
-
Context ManagementIt supports context processing at the level of millions of tokens, and accurately injects relevant code snippets into the Prompt through dynamic retrieval, effectively solving the problems of large model context window limitations and long-term forgetting.
-
Execution SandboxIt securely executes model-generated code in an isolated environment, capturing output results and error information in real time to prevent malicious or erroneous code from affecting the host system.
-
Feedback loopThe sandbox execution results and error messages are automatically fed back to the model, driving it to perform self-correction and iterative optimization, thus achieving an automated closed loop for the task.
-
Session persistenceIt supports a breakpoint resume mechanism for long-term tasks, ensuring that tasks can be resumed from the breakpoint after interruption, thus guaranteeing the continuity and reliability of complex tasks.
DeepSeek Harness's technical principles
- Model + Harness = AgentThe model is only responsible for understanding requirements, reasoning, and generating solutions. Harness, as an execution system outside the model, is responsible for scheduling context, tools, task status, feedback, and boundaries, transforming the model's reasoning capabilities into actionable actions that can be implemented in the real environment, thus completing a closed loop from requirement understanding to code delivery.
- Context ManagerThe context manager is a core component of Harness that addresses the memory bottleneck of large models. It supports ultra-long context processing at the level of millions of tokens. Through a dynamic retrieval mechanism, it extracts relevant fragments from the code repository, historical sessions, and external knowledge sources in real time during task execution and accurately injects them into the current Prompt.
- Tool Calling SystemThe tool invocation system serves as a bridge between the model and the real world, translating the model's intent into actual operations on external tools. The system features built-in chained invocation capabilities, allowing multiple tools to be executed in a logical sequence. It also incorporates automatic retry and failure degradation mechanisms; when a tool invocation fails, the system automatically attempts to recover or switches to an alternative, ensuring task execution stability. The system supports file system read/write, terminal command execution, browser automation, and calls to various third-party APIs, enabling the model to flexibly respond to complex and ever-changing business scenarios.
- Execution SandboxThe execution sandbox provides a safe and isolated runtime environment for the code generated by the model. All code executes within the sandbox, completely isolated from the host system, preventing malicious code or erroneous operations from damaging the real environment. The sandbox fully captures the code's output, runtime logs, and error stacks, and returns this information in a structured manner to the upper-level module.
- Feedback loopThe feedback loop is the core mechanism by which Harness achieves self-evolution and task automation. After the execution sandbox completes code execution, the system automatically sends feedback data such as output results, error messages, and performance metrics back to the model. Based on the feedback, the model performs self-diagnosis, identifies the root causes of problems, generates corrective solutions, and then re-enters the execution sandbox for verification.
How to use DeepSeek Harness
-
Quick ExperienceAfter installing Node.js, run the following command in the terminal:
npx @deepseek-ai/dsh webThe web interface can be launched with one click. -
Source code installation:implement
git clone https://github.com/deepseek-ai/deepseek-harnessPull the complete code and complete the local build according to the repository instructions. -
Select running modeThe system allows you to switch between four modes: Standard, PTC, Minimalist, and Creative, depending on your needs. Each mode automatically loads different combinations of plugins.
-
Configuration PluginIn the settings panel, you can view, enable, or disable various plugins. All Agent capabilities can be freely replaced and combined.
-
Create taskIn the input box, describe what you want to build. The Agent will call the plugin to complete operations such as encoding, file editing, and shell execution.
-
View trackTrajectory view allows you to rewind every system prompt, tool call, and thought process, supporting session recovery and forks.
-
Develop pluginsCustom plugins can be written based on the Cordis framework, allowing you to extend the capabilities of any Agent without modifying the DSH source code.
DeepSeek Harness's core advantages
-
Open EcosystemIt is not limited to accessing DeepSeek's own models; it plans to support access to multiple models through standardized interfaces, which is distinctly different from Claude Code's closed strategy.
-
Ultimate cost-effectivenessCombined with DeepSeek's low-cost caching mechanism, community tests show that the average cost of a single real-world programming task is only about $0.028, which is about one-seventh of Claude Code's cost.
-
Safety and complianceThe domestically developed framework has no backdoor risks, and it coincides with the window of opportunity when Claude Code was confirmed by the Ministry of Industry and Information Technology to have a serious security backdoor, and major domestic companies are accelerating their investigation and control efforts.
-
System reliabilityTeam leader Cui Tianyi has nine years of quantitative trading experience at Jane Street and has long focused on "how to make complex systems run stably," bringing financial-grade execution reliability to Agent engineering.
-
Model decouplingThe Harness team and the model team operate independently and have their own registered public accounts, promoting business in a way that is independent of the larger model, resulting in significantly greater flexibility and scalability in ecosystem cooperation.
-
Harness effectivenessThe same model can perform as differently as 53 percentage points under different Harnesses. DeepSeek Harness allows medium-intensity models to complete most standardized tasks at a very low cost, achieving "affordable models with outstanding performance".
-
end-to-end closed loopIt covers five core modules: context management, tool call orchestration, execution sandbox, feedback loop, and session persistence, achieving a complete automated closed loop from requirement understanding to code delivery.
DeepSeek Harness's project address
- Project official website:https://www.deepseek.com/harness/
- GitHub repository:https://github.com/deepseek-ai/deepseek-harness
Comparison of DeepSeek Harness with similar competitors
| Comparison Dimensions | DeepSeek Harness | Codex | Claude Code |
|---|---|---|---|
| Development Company | DeepSeek | OpenAI | Anthropic |
| Product Positioning | AI intelligent agent operation framework | Terminal-native programmable intelligent agents | Terminal-native programmable intelligent agents |
| Model access strategy | Open to multiple models, with plans to support third-party model integration. | OpenAI official models only | Limited to the official Claude model, previously restricted to non-official endpoints through steganography. |
| Ecological openness | Open collaboration is encouraged; we are seeking plugin, skill, MCP, and third-party interface ecosystem partners globally. | Closed-source operation, ecosystem controlled by the government. | Closed ecosystem, reverse engineering to modify tokens leads to official restrictions. |
| Safety and compliance | Domestically developed, with no backdoor risks, and compliant with domestic regulatory requirements. | US companies face cross-border data risks. | The NVDB of the Ministry of Industry and Information Technology has confirmed the existence of a security backdoor vulnerability (versions 2.1.91–2.1.196). |
| Cost per task | about $0.028(In conjunction with a low-price caching mechanism) | higher | High (Claude Code's annualized revenue has reached the $2.5 billion level) |
| Core Architecture | Five main modules: context management, tool call orchestration, execution sandbox, feedback loop, and session persistence. | Built-in tool invocation and code execution environment | Built-in tool invocation and code execution environment |
| Team Background | The person in charge, Cui Tianyi, has nine years of experience in quantitative trading and system development at Jane Street. | OpenAI Internal Research Team | Anthropic internal research team |
Application scenarios of DeepSeek Harness
-
Intelligent Programming Development (VibeCoding)Developers describe their requirements using natural language, and Harness automatically completes the entire closed loop from code generation, running tests, error capture to self-correction, achieving end-to-end software delivery.
-
Office AutomationHarness uses the file system, browser, and various APIs to automatically complete daily office tasks such as document processing, data analysis, email classification and reply, and scheduling, replacing repetitive manual operations.
-
System Operations and DevOpsIt enables server deployment, monitoring configuration, log analysis, and troubleshooting via terminal commands, and integrates into the CI/CD pipeline to achieve automated code building, testing, and release.
-
Multi-Agent Collaboration ProjectCoordinate the work of different agents, such as product managers, architects, development engineers, and test engineers, and coordinate the breakdown and delivery of large and complex projects.
-
Enterprise privatization deploymentDeployed in local environments of security-sensitive industries such as finance, government affairs, and healthcare, it connects with internal private systems such as ERP, CRM, and databases to achieve secure and controllable intelligent transformation.
Challenges faced by DeepSeek Harness
-
First-mover giants squeezeOpenAI Codex and Anthropic Claude Code have already secured leading positions in the intelligent agent code market. Claude Code has an annualized revenue of $2.5 billion and accounts for 4% of GitHub's public commits. DeepSeek Harness, as a latecomer, needs to achieve breakthroughs in ecosystem and user habits.
-
Developer ecosystem cold startHarness's core value relies heavily on the richness of its ecosystem partners, including plugins, skills, MCPs, and third-party interfaces. However, ecosystem building requires long-term accumulation and is difficult to compete with established competitors in the short term.
-
Long-term mission reliability verificationAgent frameworks need to handle complex scenarios such as multi-round inference, tool calls, and failure retries. From internal testing to proving that they can stably deliver long-term tasks in real production environments, there is still a lot of engineering verification work to be done.
-
Engineering complexity of multi-model adaptationWhile open support for multiple model access is a differentiating advantage, different models have different context mechanisms, tool calling formats, and inference characteristics, which will significantly increase the cost of adaptation and maintenance.
-
User migration costs and habit barriersDevelopers are already deeply accustomed to the workflows and interaction paradigms of existing tools such as Claude Code and Cursor, and switching to a new framework faces learning costs and resistance to toolchain restructuring.