rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:LINGTIAN303/dsh-agents-visualization
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH 插件:在「设置」里集中查看、创建与编辑 AGENTS.md 等 AI 规则文件。 中文为主,English section below.
AI 编码工具的规则文件散落在各处:DSH 自己读 ~/.dsh/AGENTS.md 和项目里的 AGENTS.md,而 Cursor、Claude Code、Codex、TRAE、CodeBuddy 等又各有各的位置。想改一条规则,得先想清楚「哪个文件生效」、再翻到对应目录、还得担心改错地方。
这个插件把三件事放进同一个设置页:
| Tab | 管什么 |
|---|---|
| 项目级 | 当前工作区从项目根到 cwd 的整条目录链(AGENTS.md / CLAUDE.md / .local 变体) |
| 全局级 | ~/.dsh/AGENTS.md 与 ~/.agents/AGENTS.md |
| 第三方 | 25+ 个 AI 工具的用户级规则文件,按工具子 Tab 切换 |
@deepseek-ai/dsh-agent-instructions 同源:向上找 .git 定项目根、目录链展开、候选文件名按加载优先级排序,不是「猜一个路径」。.mdc 的 YAML frontmatter 会自动剥离。Ctrl/Cmd + S 保存。Esc 退出。AGENTS.md 或 rules/,也会被扫出来。# 通过 DSH 插件管理器(推荐)
dsh plugin --profile <你的 profile> add dsh-agents-visualization
或在 DSH 设置 → 内置插件 里搜索安装。
本地开发时用 link:
dsh plugin --profile <profile> add "link:C:\\path\\to\\dsh-agents-visualization"
保存到 ~/.dsh/agents-visualization.json:
[
{
"id": "mytool",
"name": "我的工具",
"vendor": "自定义",
"targets": [
{ "kind": "dir", "segments": [".mytool", "rules"] },
{ "kind": "file", "segments": [".mytool", "AGENTS.md"] }
]
}
]
kind 三种形态:
| kind | 含义 | 额外字段 |
|---|---|---|
file |
单个规则文件 | alternates:备选路径数组 |
dir |
目录下多个 .md / .mdc |
— |
glob |
目录名含动态 id(如 user-<id>) |
pattern:匹配子目录名的正则字符串;files:固定文件名数组 |
segments 是相对用户主目录的路径分段,不接受绝对路径与 .. 上跳。
内置 25 个,常见的有:
Claude Code · Codex CLI · Gemini CLI · Cursor · TRAE / TRAE CN · CodeBuddy / CodeBuddy CN · WorkBuddy · OpenCode · Windsurf / Devin · Cline · GitHub Copilot · Kiro · Qoder / Qoder CN / QoderWork · Augment Code · Roo Code · ZCode · CodeArts Doer · CatPaw · AutoClaw · Hanako · JoyCode
每个工具的路径来源在界面上悬停工具名即可看到:官方文档 / 本机磁盘实测 / 推测。 内置清单来自官方文档与本机实测,但产品更新频繁,路径可能变化 —— 发现不对时用「自定义工具」覆盖。
connection.requestRejection 信任校验。connection 服务不可用时无法校验请求的 Origin 与登录态,此时接口拒绝全部请求(返回 503),而不是退化成「看 Host 是否回环就放行」。
这一点很重要 —— Host 由请求方自己填写(伪造 Host: 127.0.0.1 即可绕过),浏览器侧的 DNS rebinding 也能把恶意域名解析到回环地址后发起请求。回环只说明「连到了本机」,不说明「调用方可信」;而本插件能改写用户的全局规则文件。安全公告:
0.1.1及更早版本在connection缺失时会退化为回环 Host 检查,可被伪造Host头或 DNS rebinding 绕过。请使用0.1.2或更高版本,详见 CHANGELOG。
0.2.x(在 0.2.1-rc.5 与 0.2.2-rc.1 上验证;0.2.2+ 设置导航显示「规则」图标,旧版回退默认齿轮)>= 20A DSH plugin that views, creates and edits AGENTS.md and other AI rule files from the Settings page.
AI coding tools scatter their rule files everywhere: DSH reads ~/.dsh/AGENTS.md and project AGENTS.md, while Cursor, Claude Code, Codex, TRAE and CodeBuddy each use their own location. Editing one rule means figuring out which file actually takes effect, navigating to it, and hoping you did not break something else.
This plugin puts three scopes on one settings page:
| Tab | Scope |
|---|---|
| Project | The directory chain from project root down to cwd (AGENTS.md / CLAUDE.md / .local variants) |
| Global | ~/.dsh/AGENTS.md and ~/.agents/AGENTS.md |
| Third-party | User-level rule files of 25+ AI tools |
@deepseek-ai/dsh-agent-instructions: walk up to the .git marker, expand the ancestor chain, order candidates by loading priority..mdc files is stripped automatically.Ctrl/Cmd + S.Esc to exit.AGENTS.md or a rules/ folder.dsh plugin --profile <your-profile> add dsh-agents-visualization
Or install it from DSH Settings → Plugins.
Persisted to ~/.dsh/agents-visualization.json:
[
{
"id": "mytool",
"name": "My Tool",
"vendor": "Custom",
"targets": [
{ "kind": "dir", "segments": [".mytool", "rules"] },
{ "kind": "file", "segments": [".mytool", "AGENTS.md"] }
]
}
]
kind is one of file (single file, optional alternates), dir (many .md / .mdc), or glob (dynamic directory names, with pattern and files).
connection.requestRejection trust check.connection service is unavailable there is no way to check a request's Origin or login state, so the endpoint refuses every request (HTTP 503) rather than degrading to a loopback-Host check.
This matters: Host is written by the caller (a forged Host: 127.0.0.1 would pass), and DNS rebinding can resolve an attacker's domain to a loopback address before the request is sent. Loopback only proves the connection reached this machine, not that the caller is trusted — and this plugin can rewrite the user's global rule files.Security advisory:
0.1.1and earlier fell back to a loopback-Host check whenconnectionwas missing, which a forgedHostheader or DNS rebinding could bypass. Use0.1.2or later. See CHANGELOG.
0.2.x (verified on 0.2.1-rc.5 and 0.2.2-rc.1; on 0.2.2+ the settings nav shows a Rules icon, older versions fall back to the default gear)>= 20CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。