dsh-xray — 给你的 Harness 拍 X 光:组合树归因、依赖级联、上下文成本 / Composition X-ray: layer attribution, disable-cascade, context cost #3743
alloevil
started this conversation in
Show Your Plugins!
Replies: 2 comments 1 reply
|
愿意进社区目录的话可以走提交模板:https://github.com/ylwl1997/dshbase/issues/new?template=plugin-submission.yml (目录:https://dshbase.com/plugins/directory/) |
1 reply
|
我是插件库,我感觉你的想法很好,我想收录,可以提ISSUE。 具体提的方法如下。 我也帮你置顶帖子,省得被埋没。 被收录的插件审核前送STAR |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
大家好,我做了一个诊断类插件 dsh-xray,想解决我自己折腾 profile 时反复遇到的三个问题:
--dump-config打出 130 行,但哪一行是谁引入的?patch 改了不生效时,是 id 写错被静默跳过,还是被后面的层覆盖了?它长什么样
全部命令
attributediffconflictsdeps/healthcostshadow/auditsnapshot --against另外:
/xrayWeb 面板(dsh web 里直接开,零依赖零构建)xray_compositionagent 工具 — agent 可以自查"我有哪些能力/为什么 Y 不可用"安全立场
只读不执行:patch 里的
!!js解析为不透明标记、绝不求值;audit 是源码文本扫描,不运行插件代码;挂载后只写$DSH_HOME/xray/。安装
欢迎 issue / PR,特别想听:你们排查 profile 问题时还缺什么视角?
English version
Hi all — I built dsh-xray, a diagnostics plugin for three questions I kept hitting while hacking on profiles:
--dump-configprints 130 rows, but which layer introduced each one? When a patch "doesn't take", is the id wrong (silently skipped) or overridden by a later layer?Commands:
attribute(per-row layer attribution),diff(declared vs actual — catches orphan patch rows),conflicts(last-writer-wins chains),deps/health(service graph with disable-cascade, fiber lifecycle),cost(prompt sections + tool schemas, estimated tokens),shadow/audit(multi-provider services, capability scan),snapshot --against(composition lockfile + drift).Plus a zero-dependency web panel at
/xray, and anxray_compositiontool so agents can introspect their own capability set. Static commands work even when dsh cannot boot. Read-only by design:!!jsnever evaluated,auditnever executes plugin code.GitHub: https://github.com/alloevil/dsh-xray · npm: https://www.npmjs.com/package/dsh-xray
Feedback welcome — what else do you wish you could see when a profile misbehaves?
All reactions