dsh-subagent-output-sanitizer
Agent 与会话 活跃维护

dsh-subagent-output-sanitizer

vb2250158/dsh-subagent-output-sanitizer

插件,自动清洗子代理输出中的冗余噪声与敏感信息,支持自定义正则过滤规则,保持核心数据完整,输出标准格式,便于后续分析处理。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
20 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:vb2250158/dsh-subagent-output-sanitizer
git clone https://github.com/vb2250158/dsh-subagent-output-sanitizer.git
git clone git@github.com:vb2250158/dsh-subagent-output-sanitizer.git
README.md main

dsh-subagent-output-sanitizer

Version 0.1.5 requires DSH 0.2.1-rc.3 or a compatible host. See compatibility details.

清理子代理消息中的孤立工具块。

在 agent/created 完成进入会话后,通过公开 sessionQuery.readSurface 一次读取当前模型可见事件,并持久替换不安全的子代理投递。异步读取期间已替换的节点不会恢复;读取失败会中止该次创建。步骤前清洗继续保留,不写入会话创建通知阶段,也不使用已移除的 session.events。

安装

锁定公开仓库的提交后,通过 DSH 官方入口安装:

pnpm dsh plugin --profile web add github:vb2250158/dsh-subagent-output-sanitizer#<commit>

插件包声明 dsh.bundle,安装后会把自己的配置层加入 profile。

配置

插件配置保存在 DSH profile 的 cordis.patch.yml。多电脑同步仓库只保存仓库地址、固定提交、启停状态和配置,不保存本仓库源码。

验证

npm test
npm pack --dry-run

Run the source-based rc.3 lifecycle check with DSH_SOURCE_ROOT=<checkout> node --test tests/session-lifecycle.rc3.integration.mjs. It covers the real SessionStore announcement, exact surface query, durable replacement and repeated creation notification.

许可证

MIT

Plugin display metadata

The plugin list shows Subagent output cleanup in English and 子代理输出清理 in Chinese, following the DSH interface language. locale/en.json and locale/zh.json provide the title and description; icon.svg supplies self-contained artwork. The package exports and publishes these resources. The icon is adapted from Lucide; see ICON_LICENSE.txt.

The icon uses a centered 36 × 36 viewBox to leave more space around the artwork inside the plugin icon frame.