DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

tencentcloud-agentobs-sdk-dsh

T

tencentcloud-agentobs-sdk-dsh

Manifest valid★ 14

tencentcloud-agentobs-sdk-dsh is a DeepSeek Harness (DSH) observability plugin that directly reports GenAI trace data to Tencent Cloud Log Service (CLS). It observes DSH's native session, agent loop, LLM stream, and tool lifecycles, transforming them into the 5-layer span hierarchy model of the Tencent Cloud AI Agent Observability Specification (entry →

hasBundlePatch

Tencent Cloud CLS observability for DeepSeek Harness

Tencent Cloud Service CLS observability for DeepSeek Harness

English | 简体中文

tencentcloud-agentobs-sdk-dsh 是一个 DeepSeek Harness (DSH) 可观测插件,直接将 GenAI trace 数据上报到腾讯云日志服务 (CLS)。

它观察 DSH 原生的 session、agent loop、LLM stream 和 tool 生命周期,将其转换为腾讯云AI Agent可观测规范的 5 层 span 层级模型(entry → agent → step → chat → tool),并通过 tencentcloud-cls-sdk-js 直接上报到 CLS,无需额外部署 OTLP 收集器或 sidecar。

数据模型

DSH session/event + llm/stream
                │
                ▼
      CLS Trace Coordinator
                │
                ▼
    CLS 5-layer span model
    (entry/agent/step/chat/tool)
                │
                ▼
    tencentcloud-cls-sdk-js
                │  Protobuf upload
                ▼
    Tencent Cloud CLS

一次 DSH turn 产生的 trace 结构:

ENTRY
└── AGENT (invoke_agent)
    └── STEP (react round_N)
        ├── CHAT (chat model_name)
        └── TOOL (execute_tool tool_name)

安装

前置依赖

全局安装 DeepSeek Harness CLI:

npm install -g @deepseek-ai/dsh

安装插件

dsh plugin --profile web add tencentcloud-agentobs-sdk-dsh
dsh plugin --profile headless add tencentcloud-agentobs-sdk-dsh
dsh plugin --profile harness add tencentcloud-agentobs-sdk-dsh

注意:安装或更新插件后,需要重启 DSH 服务才能生效。

pnpm 构建脚本问题

pnpm v9+ 默认禁止依赖包运行 install 脚本。如果安装时遇到以下错误:

[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: protobufjs@6.11.6
Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.

在对应 profile 目录执行一次即可(后续安装/更新不再需要):

cd ~/.dsh/profiles/web
echo "enable-scripts=true" >> .npmrc
pnpm install

headless / harness profile 同理,将路径改为 ~/.dsh/profiles/headless 或 ~/.dsh/profiles/harness。

卸载插件

dsh plugin --profile web remove tencentcloud-agentobs-sdk-dsh
dsh plugin --profile headless remove tencentcloud-agentobs-sdk-dsh
dsh plugin --profile harness remove tencentcloud-agentobs-sdk-dsh

配置

环境变量(推荐)

export CLS_ENDPOINT=ap-guangzhou.cls.tencentcs.com
export CLS_TOPIC_ID=your-topic-id
export CLS_SERVICE_NAME=dsh-agent

# 鉴权方式二选一:
# 方式 1(强鉴权):SecretId + SecretKey
export CLS_SECRET_ID=your-secret-id
export CLS_SECRET_KEY=your-secret-key
# 方式 2(免鉴权/弱鉴权):仅提供纯数字 UIN
# export CLS_UIN=your-uin

dsh --profile web

插件配置文件

编辑 $DSH_HOME/profiles/<profile>/cordis.patch.yml:

- id: cls-observability
  config:
    endpoint: ap-guangzhou.cls.tencentcs.com
    topicId: your-topic-id
    # 强鉴权:SecretId + SecretKey
    secretId: your-secret-id
    secretKey: your-secret-key
    # 或免鉴权(弱鉴权):仅提供纯数字 UIN(与 SecretId/SecretKey 二选一)
    # uin: "100000000000"
    serviceName: dsh-agent
    captureContent: true
    batchMaxSize: 32
    flushIntervalMs: 5000
    debug: false

显式插件配置优先于环境变量。

关闭内容捕获

默认情况下,prompts、responses、tool arguments/results 会附加到 span。如需关闭:

export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=false
dsh --profile web

或在插件配置中设置 captureContent: false。

配置项

设置默认值说明
enabledtrue禁用采集但不卸载插件
endpointCLS_ENDPOINTCLS API 接入点
topicIdCLS_TOPIC_IDCLS 日志主题 ID
secretIdCLS_SECRET_ID腾讯云 SecretId(强鉴权,与 uin 二选一)
secretKeyCLS_SECRET_KEY腾讯云 SecretKey(强鉴权,与 uin 二选一)
uinCLS_UIN免鉴权(弱鉴权)上报的腾讯云 UIN(纯数字,与 SecretId/SecretKey 二选一)
serviceNamedeepseek-harness服务名
captureContenttrue捕获 prompts/responses/tool 内容(设为 false 关闭)
contentMaxChars128000单个内容属性最大字符数
batchMaxSize32每批上报最大 span 数
maxBatchBytes10485760每批上报最大字节数(10MB)。必须小于 SDK 的 19MB 硬限制,否则整批会在本地被拒
maxQueueSize2048队列上限,超限丢弃最旧 span
flushIntervalMs5000定时刷新间隔(毫秒)
retryTimes3上报重试次数
debugfalse启用调试日志

隐私说明

内容捕获默认开启。源代码、凭证、个人数据等敏感内容可能被发送到 CLS。如需关闭,设置 captureContent: false 或环境变量 OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=false。请确保 CLS 的数据保留和访问控制策略符合安全要求。

兼容性

组件支持范围
DeepSeek Harness>=0.1.0-rc.6 <0.2.0
Node.js>=18.0.0

开发

pnpm install
pnpm run check
pnpm test
pnpm run build

变更记录

见 CHANGELOG.md。

License

Apache-2.0

Compatibility

DSH 0.2.1-rc.3: failedDSH 0.2.1-rc.4: failedDSH 0.1.7-rc.2: failed

Versions

Latest versionPublishedSize
0.0.2——
0.0.3——
0.0.4——
0.1.0——
0.0.1——

Comments

Loading…

Similar plugins

dsh-github-flow

by ItQianChen

基于 GitHub CLI (gh) 为 DeepSeek Harness (DSH) 打造的现代化原生工作流集成插件。 深度打通本地 Git 仓库开发与远程 GitHub 协作(PR、Issue、Actions CI 诊断与代码审查),兼备 Agent 模型工具、人类 Slash 指令以及原生 Web UI 双重视图。

Development & InfrastructureManifest valid

★ 14

MIT

JavaScript

Oct 22, 2026

dsh plugin --profile web add dsh-github-flow

by Dominic789654

A curated list of plugins, skills, MCP servers, patch/profile layers, orchestrators & UIs for DeepSeek Harness (DSH). Visualization · PPT · Coding · Agents · Loops (auto-research) and more. #dsh

IntegrationsManifest valid

★ 193

↓ 85/wk

NOASSERTION

TypeScript

Aug 25, 2026

dsh plugin --profile web add dsh-code-review

by drscrewdriver

DSH 浏览器插件(原 dsh-ego-browser):让 Agent 通过 CDP 接入真实 Chrome —— 远程目标序列与激活、实时视频/截图回传、登录导入。Remote-CDP agent browser for DeepSeek Harness.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 18

↓ 6.2k/wk

NOASSERTION

TypeScript

Oct 28, 2026

dsh plugin --profile web add dsh-browser-cdp

by EternalNight996

🧑‍💼为 DeepSeek Harness Web 主窗口添加「工作角色」页签 + 「像素办公室」浮层:内置 508 张完整角色卡(The Agency 255 + agency-agents-zh 253),支持搜索 / 中英切换 / 分部分类选人;Canvas 2D 像素小人可站立、打字、踱步,浮层可拖动折叠缩放,选人即入列;闲聊台词可接 AI(内置或外部接口,20 字内中文)。npm 双

Manifest valid

★ 5

↓ 142/wk

MIT

JavaScript

Sep 3, 2026

dsh plugin --profile web add dsh-ui-agents-pixe

by sgzxs

A global task library plugin for DeepSeek Harness featuring cross-session persistence, a real-time generative-UI browser panel, and subagent job synchronization.DeepSeek Harness 全局任务插件:提供跨会话持久化任务库、生成式

Manifest valid

★ 2

MIT

TypeScript

Sep 11, 2026

dsh plugin --profile web add dsh-global-task-list

by wxxb789

Multi-agent orchestration and LLM model routing for DeepSeek Harness (DSH): semantic AI agent profiles, exact model routes, declarative teams and strategies, and bounded subagent delegation - a TypeSc

Manifest valid

★ 4

MIT

TypeScript

Sep 2, 2026

dsh plugin --profile web add dsh-legion