DeepSeek Harness 插件

dsh-plugin-amdgpu-inspect

Structured AMDGPU code-object and ISA inspection for DeepSeek Harness.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
yujiaoliang/dsh-plugin-amdgpu-inspect
最近更新
2026年8月15日
分类
插件开发工具
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/yujiaoliang/dsh-plugin-amdgpu-inspect
插件名:dsh-plugin-amdgpu-inspect
作者:yujiaoliang

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

AMDGPU Inspect

Structured AMDGPU code-object and ISA inspection for DeepSeek Harness.

The plugin turns an existing HSACO or AMDGPU ELF file into bounded JSON that an agent can query. It reports compiler artifacts without compiling source, executing a kernel, predicting performance, or prescribing an optimization.

AMDGPU ELF -> llvm-readelf + llvm-objdump -> normalized object model -> DSH tools

Tools

amdgpu_object_inspect

List kernels and report public code-object metadata plus instruction-category counts:

{ "path": "/tmp/vector-add.hsaco" }

amdgpu_isa_query

Query one kernel's normalized instruction stream without placing the complete disassembly in model context:

{
  "path": "/tmp/vector-add.hsaco",
  "kernel": "vector_add",
  "opcodes": ["scratch_*", "s_waitcnt"],
  "cursor": 0,
  "limit": 40
}

The result contains addresses, opcodes, operands, categories, and a nextCursor when more matches remain.

Install

Requirements:

  • Linux
  • DeepSeek Harness developer preview
  • ROCm LLVM tools in /opt/rocm/llvm/bin or on PATH

Install the bundle from GitHub:

dsh plugin --profile web add github:yujiaoliang/dsh-plugin-amdgpu-inspect
dsh --profile web

The package ships plain ESM JavaScript and needs no install-time build script.

Kernel X-Ray Skill

[skills/kernel-xray/SKILL.md](skills/kernel-xray/SKILL.md) is the opinionated layer: it tells an agent how to compile before/after artifacts, query this plugin, form hypotheses, and require a workload measurement before claiming a speedup. The plugin itself remains a low-level facts API.

Design

  • llvm-readelf --notes supplies public AMDGPU metadata.
  • llvm-objdump --disassemble --demangle supplies ISA.
  • A one-artifact cache is keyed by absolute path, size, and modification time.
  • ISA queries are capped at 200 records and support deterministic cursors.
  • Child processes run without a shell and honor tool-call cancellation.
  • Inputs are limited to regular files no larger than 256 MiB.

Security boundary

This version invokes LLVM and reads the artifact directly on the DSH host. It does not inherit a deployment's virtual filesystem or subprocess provider, so treat access as host-local rather than sandboxed. It never loads the artifact into an HSA runtime or executes GPU code. LLVM diagnostics can expose local paths.

Limitations

  • Parsing follows the text emitted by current ROCm LLVM tools; fixture coverage cannot guarantee every historical or future output spelling.
  • Kernel arguments, symbols, relocations, control-flow graphs, and binary encodings are not exposed yet.
  • The plugin reports static facts only. Resource counts and instruction counts do not establish performance.

Development

Tests use synthetic public-format metadata and disassembly; no GPU or ROCm installation is required:

npm test

License

MIT. ROCm and LLVM are external tools and are not redistributed.