brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
deepseek-harnessUse when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin system, multi-model orchestration. DeepSeek Harness (dsh): open-source agent harness by DeepSeek AI where everything is a plugin, powered by Cordis for spatiotemporal composability.
Independent GitHub snapshot · Automated classification · Original documentation governs
name: deepseek-harness description: "Use when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin system, multi-model orchestration. DeepSeek Harness (dsh): open-source agent harness by DeepSeek AI where everything is a plugin, powered by Cordis for spatiotemporal composability." tags:
项目地址: https://github.com/deepseek-ai/deepseek-harness
官方文档: 见仓库 README 及 docs/ 目录
许可证: MIT
DeepSeek Harness(简称 dsh)是 DeepSeek AI 开源的 智能体框架,采用"一切皆插件"的架构理念,由 Cordis 引擎驱动。支持 Web UI、CLI、Python SDK 三种使用方式,以及 Cordis 插件范式的扩展开发。
| 特性 | 说明 |
|---|---|
| 插件架构 | 基于 Cordis,一切功能以插件形式提供 |
| 多接入方式 | Web UI / CLI / Python SDK / ACP JSON-RPC |
| 多模型支持 | 灵活的模型供应商配置体系 |
| Profile/Bundle | CLI 下的配置 Profile 和 Bundle 管理 |
| Session 管理 | 完整的会话日志与 Agent 循环 |
| 开发者友好 | TypeScript + Python 双语言 SDK |
# 需要 Node.js
npx @deepseek-ai/dsh web
# 默认启动 Web UI: http://127.0.0.1:3080
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh web
# 默认端口 3080
npx @deepseek-ai/dsh web
# 自定义端口
npx @deepseek-ai/dsh web --port 8080
# 基础对话
npx @deepseek-ai/dsh chat
# 使用指定 Profile
npx @deepseek-ai/dsh chat --profile my-profile
# 使用 Bundle(预设配置包)
npx @deepseek-ai/dsh chat --bundle my-bundle
from deepseek_harness import Harness
# 初始化
harness = Harness(model="deepseek-chat")
# 对话
response = harness.chat("Hello, how can you help me?")
# 带工具调用
response = harness.chat(
"Analyze this data",
tools=["code_interpreter", "web_search"]
)
import jsonrpc
# 通过 JSON-RPC 协议接入
client = jsonrpc.Client("http://127.0.0.1:3080/rpc")
result = client.call("chat.completions", {
"model": "deepseek-chat",
"messages": [{"role": "user", "content": "Hello"}]
})
# 安装并启动
npx @deepseek-ai/dsh web
# 在浏览器中打开 http://127.0.0.1:3080
# 配置 API Key → 开始对话
# config.yaml 示例
models:
deepseek-chat:
provider: deepseek
api_key: ${DEEPSEEK_API_KEY}
model: deepseek-chat
deepseek-reasoner:
provider: deepseek
api_key: ${DEEPSEEK_API_KEY}
model: deepseek-reasoner
// my-plugin.ts
import { Plugin } from '@deepseek-ai/dsh';
export class MyToolPlugin extends Plugin {
name = 'my-tool';
tools = [
{
name: 'my_custom_tool',
description: 'A custom tool for specific tasks',
handler: async (params) => {
// 实现工具逻辑
return { result: 'done' };
}
}
];
}
Cordis 是 DeepSeek Harness 的核心引擎,提供了 时空可组合性(Spatiotemporal Composability)的编程范式:
# 在 GitHub 仓库上添加 dsh-plugin topic 可被发现
# 插件仓库示例
gh repo create my-dsh-plugin --public
gh repo edit my-dsh-plugin --add-topic dsh-plugin
deepseek-chat(快速)或 deepseek-reasoner(推理)| 问题 | 解决方案 |
|---|---|
dsh web 启动后页面空白? | 确认 Node.js 版本 ≥ 18,清除缓存后重试 |
| 如何配置代理? | 在环境变量中设置 HTTP_PROXY / HTTPS_PROXY |
| 插件如何调试? | 使用 pnpm dsh web --debug 启用调试模式 |
| 与 OpenCode 有何区别? | dsh 是 DeepSeek 官方框架,OpenCode 是模型无关的社区工具 |
npx @deepseek-ai/dsh web 快速启动 Web UI 体验deepseek-chat(快速通用)vs deepseek-reasoner(深度推理)