dsh-error-lens
适用于 DeepSeek Harness 的只读、脱敏服务商错误诊断插件,保留每个会话最近的错误记录。
AI 分析
核心用途是安全地诊断 API 报错。适合需要排查模型服务商返回的错误,同时要求对敏感信息进行自动脱敏处理的 DSH 用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wanbinyu/dsh-error-lens说明文档
阅读完整 README ↗配置
默认配置位于 Web profile 的 cordis.patch.yml:
- insert:
- id: error-lens
name: dsh-error-lens
config:
maxRecords: 10
maxMessageLength: 2000
| 选项 | 默认值 | 说明 |
|---|---|---|
maxRecords | 10 | 每个会话投影保留的最近错误数量,范围 1-50 |
maxMessageLength | 2000 | 单条脱敏错误的最大字符数,范围 256-8000 |