mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
demo:web and the README Web UI instructions ran only build:web (the Vite frontend shell), never the root build that emits each web-client plugin's lib/client.js. On a clean checkout every /plugins/<id>/client.js 404s and the client loader shows "Failed to load plugins". Run pnpm run build before build:web in both the demo:web script and the README instructions for the installed ~/.dsh/source checkout.
2.7 KiB
2.7 KiB
DeepSeek Harness
English | 中文
DeepSeek Harness(dsh)是一款基于 DeepSeek Harness SDK 构建的开源 coding agent(编程智能体)。
它采用了一切皆插件的架构。
安装
使用一条命令安装 dsh:
curl -fsSL https://raw.githubusercontent.com/deepseek-harness/deepseek-harness/master/scripts/install.sh | sh
安装器要求系统已安装 git 和 Node ^22.19 || >=24,缺少 pnpm 时可代为安装,并会提示输入 DeepSeek API 密钥。
安装器会将 DeepSeek Harness 克隆到 ~/.dsh/source,把 dsh 链接到 ~/.local/bin,然后启动它。再次运行该命令会更新源码目录。其他安装位置和选项见 scripts/install.sh。
使用 DeepSeek Harness
Web UI
推荐在本地使用 Web UI。安装完成后以及每次更新后,请先构建前端,再启动 Web UI:
pnpm --dir ~/.dsh/source run build && pnpm --dir ~/.dsh/source run build:web
dsh web
Web UI 默认通过 http://127.0.0.1:3080 提供服务。
TUI
启动全屏终端界面:
dsh
Headless
运行一项任务,打印最终答案后退出:
dsh -p "summarize this workspace"
为什么选择 DeepSeek Harness
内置功能涵盖文件读取、编辑与搜索、shell 执行、可复用 skill(技能)、任务跟踪、subagent 与工作流、持久化会话,以及上下文压缩(context compaction)。TUI 还包含 Plan Mode。
- 一切皆插件。 模型、工具、策略、存储、上下文管理和界面均可组合为 Cordis 插件,部署方无需 fork agent loop(智能体循环)即可扩展或替换行为。底层设计见架构文档。
- Code Mode(需显式启用)。 它会提供
run_code工具和生成的 TypeScript SDK,只有程序输出会重新进入模型上下文。参见 Code Mode。 - 自指 Cordis 工具需显式启用。 这些工具可让 agent 检查自身的实时运行时,并在运行中挂载或卸载插件。参见 Cordis 工具。
社区
扫描二维码,或打开 DeepSeek Harness 微信社区申请页面 申请加入。
开发
pnpm install
pnpm run test:coverage
面向 agent:遵循 AGENTS.md。
DeepSeek Harness 目前处于预发布阶段。
