# deepseek-ai/deepseek-harness

> deepseek-harness is an open-source agent harness developed by DeepSeek AI for running DeepSeek-backed agents locally. It is built on an everything-is-a-plugin architecture powered by Cordis. Given a user's prompt and workspace, it runs a session-based agent loop that calls DeepSeek models and sandboxed tools, and it produces persisted conversations, file deliverables and session logs. The project is written mainly in TypeScript.

Source: https://github.com/deepseek-ai/deepseek-harness
Indexed: commit 22ddee3 on 2026-10-24 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: MCP server
- Language: TypeScript
- Stars: 285,506 at index time
- License: MIT
- Code health: 7.6/10, Good
- Last commit: 2026-10-23
- Contributors: 62

## Install

From the README: https://github.com/deepseek-ai/deepseek-harness

Clone the deepseek-harness repository.
    git clone https://github.com/deepseek-ai/deepseek-harness.git

Move into the deepseek-harness folder.
    cd deepseek-harness

Install Node.js, then start the Web UI with npx.
    npx @deepseek-ai/dsh web

Install the repository dependencies with pnpm.
    pnpm install

Build the repository artifacts, then start the Web UI from the built artifacts.
    pnpm run build

## How it works

Input enters through one of the front ends: the CLI entry point at apps/cli/src/bin.ts, the desktop app started from apps/desktop/src/main.ts, or the Web UI started with the dsh web command. The core work happens in the agent loop defined in packages/core/agent-loop/src/agent.ts, which calls DeepSeek models and sandboxed tools for each session. The packages directory is the largest part of the repository, with 5107 files, and holds the core modules and extensions that the loop and the front ends build on. Because everything is a plugin, features are added as plugins built on Cordis. The scripts directory holds the scripts that generate, check and verify the documentation and packaged output, reading the source tree and writing catalog pages or reporting violations. Each session ends with persisted conversations, file deliverables and session logs.

- apps/cli/src/bin.ts: entry point
- apps/desktop-host/src/cli.ts: entry point
- apps/desktop-host/src/index.ts: entry point
- apps/desktop/src/main.ts: entry point
- apps/plugin-market-generator/src/cli.ts: entry point
Modules: packages, apps, scripts, snapshots, benchmarks, python, native, website. 17,318 files, 1,106,519 lines, 48,698 symbols.

## Code health

- Score: 7.6/10 (Good)
- Rank: #96 of 257 ranked repos
- Hotspots: packages/extensions/tool-cordis/src/api-catalog.ts, packages/extensions/cordis-client-runner/src/client/slot-catalog.ts, packages/core/agent-loop/src/agent.ts, packages/client/ui-plugin-manager/src/client/PluginManagerPage.tsx, packages/api/session-controller/src/client/sessions/session.ts
- Lowest file: packages/typert/generator/src/analyzer.ts
- Dead code: none found

## Maintenance

- Last commit 2026-10-23, first commit 2026-06-10, 14,875 commits
- 62 contributors, bus factor 3

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/deepseek-ai/deepseek-harness/security

## More

- Page: https://repowise.dev/repo/deepseek-ai/deepseek-harness
- Ask this codebase: https://repowise.dev/repo/deepseek-ai/deepseek-harness/chat
- Docs: https://repowise.dev/repo/deepseek-ai/deepseek-harness/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/deepseek-ai/deepseek-harness
