🎁 福利专区全网大模型免费应用 + 新用户福利 + 注册活动入口,低成本玩转 AI

子代理可观测性 jeremy9682/dsh-observability

DeepSeek 客户端
jeremy968280 天前有提交已提供中文文档扫描:含敏感能力兼容 / 相关生态

为外部子代理调用补上会话归因与指针记录

27.5/100
综合分
1
GitHub 星标
—
npm 周下载
—/5
用户评分

数据截至 2026/9/16 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。

相关生态插件(非 dsh 原生,按其对应运行时安装)
git clone https://github.com/jeremy9682/dsh-observability.git

状态速览

判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态
信任档位:仅索引
是什么
生态应用
桌面端 / Web 外壳,不以 dsh plugin add 安装
装得上吗
本站尚未做安装检查
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
更新放缓:最近一次提交在 80 天前
档位由哪些信号合成

本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。

验证判据与等级说明 →
社区实装还没有人打卡 · 装过的第一个就是你
安全扫描自动 · 静态分析源码
v2.7.0
🔵 扫描:含敏感能力尚无人工评估
展开查看扫描说明与证据 ↓

静态扫描发现插件具备触达本地系统的能力:执行外部命令、读写/删除本地文件、读取剪贴板或密钥类环境变量(至少其一)。这是能力清单,不是危险判定——具体能力项与证据见下方,安装前请自行判断是否需要。

可执行外部命令读写/删除本地文件
查看扫描证据(共 7 处,展示前 7 条)
  • 写入本地文件
    src/index.ts:79
    mkdirSync(join(config.journal, '..'), { recursive: true })
  • 写入本地文件
    src/index.ts:80
    appendFileSync(config.journal, `${JSON.stringify(envelope)}\n`)
  • 读取本地文件
    src/index.ts:94
    items = readdirSync(dir, { withFileTypes: true })
  • 读取本地文件
    src/index.ts:102
    const st = statSync(path)
  • 读取本地文件
    bin/dsh-run-attributed.mjs:70
    items = readdirSync(dir, { withFileTypes: true })
  • 读取本地文件
    bin/dsh-run-attributed.mjs:78
    const st = statSync(path)
  • 执行外部命令来自配置/变量
    bin/dsh-run-attributed.mjs:102
    const proc = spawn(args.command[0], args.command.slice(1), {
扫描于 2026/11/3(0 天前) · 范围 入口闭包 + 发布文件清单 · 来源 GitHub 仓库

静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。

依赖的 DSH / Cordis 模块
@deepseek-ai/cordis@deepseek-ai/schemastery
给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个

功能亮点

  • 补上会话归因
  • 记录指针

README

由 DeepSeek 最新模型翻译生成
dsh-observability 两个小插件,补上 DeepSeek Harness 在「外部 subagent 运行」上的可观测性缺口。背景与上游提案:discussion #1493。 包 | 路径 | 包名 | 作用 | | (根目录) | dsh-codex-observability | 在被跟踪的工具调用前后对产品会话根目录(~/.codex/sessions、~/.cursor/chats 等)做指纹比对,并把归因信封(sessionRef、sessionStatus)写入 journal 文件。只写指针——从不记录提示词或对话内容。 | | plugin-cursor/ | dsh-tool-cursor | 一个 cursor_delegate 工具,把任务委派给官方 cursor-agent CLI(headless),移植自 opencodex 的 cursor.ts 参考实现。默认只读;edit 只提议、不落盘。 | 两个包都在真实组合中 boot 测试过(隔离 DSH_HOME、headless、--patch、dsh 0.1.0-rc.6)。证据: {"kind":"subagent-attribution","runId":"c091edac-…","provider":"bash","callId":"call_00_…
展开完整文档(README 剩余 1 节)
dsh-observability

两个小插件,补上 DeepSeek Harness 在「外部 subagent 运行」上的可观测性缺口。背景与上游提案:discussion #1493。

包

| 路径 | 包名 | 作用 |
| (根目录) | dsh-codex-observability | 在被跟踪的工具调用前后对产品会话根目录(~/.codex/sessions、~/.cursor/chats 等)做指纹比对,并把归因信封(sessionRef、sessionStatus)写入 journal 文件。只写指针——从不记录提示词或对话内容。 |
| plugin-cursor/ | dsh-tool-cursor | 一个 cursor_delegate 工具,把任务委派给官方 cursor-agent CLI(headless),移植自 opencodex 的 cursor.ts 参考实现。默认只读;edit 只提议、不落盘。 |

两个包都在真实组合中 boot 测试过(隔离 DSH_HOME、headless、--patch、dsh 0.1.0-rc.6)。证据:

{"kind":"subagent-attribution","runId":"c091edac-…","provider":"bash","callId":"call_00_…", "error":"none","sessionRef":"/tmp/obs-test-root/new-artifact.jsonl", "sessionStatus":"attributed-single-artifact"}

{"kind":"subagent-attribution","runId":"55f45e12-…","provider":"read","callId":"call_00_…", "error":"none","sessionRef":null,"sessionStatus":"not-observed"}

安装

从 git 安装(构建走包内 prepare 脚本;pnpm >= 10 首次会要求 allowBuilds,把打印的键拷进 profile 的 pnpm-workspace.yaml 后重跑即可)
dsh plugin --profile web add github:jeremy9682/dsh-observability

或从本地 checkout 安装
dsh plugin --profile web add ~/Projects/dsh-observability

cursor 工具:本地 checkout 形式(仓库根目录是 observability 包)
dsh plugin --profile web add ~/Projects/dsh-observability/plugin-cursor

要求 dsh 0.1.0-rc.6 与 Node ^22.19 || >=24。

配置(以下为默认值):

- id: codex-observability
name: dsh-codex-observability
config:
enabled: true
roots: ['~/.codex/sessions', '~/.cursor/chats']
tools: [subagent_codex, subagent_claude_code]
journal: '~/.dsh/storages/codex-observability.jsonl'

- id: tool-cursor
name: dsh-tool-cursor
config:
timeoutSeconds: 600
defaultMode: ask

独立工具(无需 DSH)

bin/dsh-run-attributed.mjs 用同样的指纹 + 信封 + 三级超时(首事件 / 空闲 / 总时长)包装任意 CLI:

node bin/dsh-run-attributed.mjs --provider codex --seat codex-landing \
--root ~/.codex/sessions --first-event 60 --idle 240 --total 300 \
-- codex exec --json ""

已知的上游阻塞

「会话日志内的持久指针」(替代文件 journal)依赖 #1493 中提出的两个上游事项:下游事件类型的注册面,以及 append 时的 ignorable 控制。目前 Session.append() 两者都不提供;KNOWN_SESSION_EVENT_TYPES 天然排除仓外插件事件。在此之前,文件 journal 是可行的过渡方案。

License

MIT。
预览分享卡片长什么样 ↓jeremy9682/dsh-observability
分享 · DeepSeek Harness Hub
jeremy9682/dsh-observability

为外部子代理调用补上会话归因与指针记录

回到顶部