dsh-plugin-context-map
v0.1.0
Published
DSH plugin: See what is in the current context: which sources were selected, roughly how much each costs, and a compaction preview — read-only.
Maintainers
Readme
dsh-plugin-context-map
查看当前上下文里有什么:哪些来源被选中、各自约占多少、以及压缩预览——只读。
这是 14 个 DSH Agent 生命周期只读可观测插件之一(主题:上下文来源地图)。它只读取会话事件的元数据——从不读取提示词、工具调用内容或文件内容——且不发起任何网络请求。
安装
dsh plugin --profile web add dsh-plugin-context-map需要 Node ^22.19.0 || >=24 与 DSH >=0.2.0-rc.2 <0.3.0。
30 秒演示
- 正常使用 DSH 几轮。
- 在任意会话输入
/context-map。 - 得到紧凑的只读报告;用
/context-map --json获取机器可读输出。
它读取什么
只读取会话事件元数据:事件类型、工具名、token 计数与路由名。任何疑似凭据的值在显示前都会被脱敏。不读取、存储或传输文件内容与提示词。
许可
MIT — SSHOOTING。
