DeepSeek Harness
DeepSeek Harness Web UI 教程:模型、工作区与 Agent 任务
按官方使用指南配置模型、选择工作区、运行任务并理解审批提示。
deepseek harness web ui知识学习US编辑简报更新 2026-08-26

你将学会
- Model configuration and workspace selection are separate setup steps.
- Begin with a read-only task to validate the complete path.
- Record profile and permission context when comparing runs.
开始前需要
- Basic HTTP and API knowledge
Leave with a concrete implementation checklist and a testable starting point.
先看结论
- 模型配置和工作区选择是两个独立步骤。
- 先用只读任务验证完整链路。
- 比较运行结果时记录 Profile 与权限上下文。
先完成配置
官方 Web UI 指南要求先进入 Settings → Models,保存 DeepSeek API Key。保存后模型路由立即可用,不需要重启服务。
接着选择工作区。启动目录只是默认文件系统位置;新 Web UI 没有自动选中的工作区,必须显式添加后才能使用 Session Composer。
运行受控任务
先发送“总结这个仓库并列出主要包”这样的只读任务,用来验证模型、工作区、Session Log 和工具注册是否连通。
指南说明 Agent 可以读写文件、运行命令、委派工作和维护计划。审批提示由当前权限策略决定,同一个任务在不同 Profile 下可能需要不同的人为确认。
记录运行上下文
为了复现结果,记录 dsh 版本、Profile、工作区路径、模型路由,以及审批被允许还是拒绝。
Web UI 适合作为操作界面,但不能替代源码测试。重要流程应在 CLI 或 Python SDK 中重放,并保留 Session 产物。
如何选择
| 比较维度 | 方案 A | 方案 B |
|---|---|---|
| Best when | You need predictable behavior and easy auditing | You need adaptive optimization and have reliable telemetry |
| Main risk | May leave performance on the table | Can become difficult to explain or debug |
实施步骤
- 1
启动 dsh web 并打开打印的 URL。
- 2
在 Settings → Models 保存 DeepSeek 凭据。
- 3
选择项目目录作为工作区。
- 4
先运行只读任务并观察审批。
可复制示例
text
Settings -> Models -> save credential
Choose workspace -> Start session -> task -> approval -> tool result常见问题
为什么 Composer 不可用?
官方指南要求先选择工作区,之后 Session Composer 才会启用。
资料来源
- DeepSeek Harness Web UI guide来源核查 2026-08-27