dsh-plugin-amdgpu-inspect
Manifest validStructured AMDGPU code-object and ISA inspection for DeepSeek Harness.
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/binor onPATH
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 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 --notessupplies public AMDGPU metadata.llvm-objdump --disassemble --demanglesupplies 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.
Comments
Loading…
Similar plugins
by YYTbit
Structured code review skill for DeepSeek Harness
★ 1
MIT
TypeScript
Aug 14, 2026
dsh plugin --profile web add dsh-plugin-code-reviewby ManoloRemiddi
Automatic per-request reasoning for DeepSeek Harness, without extra model calls or GPU keep-alive.
★ 1
MIT
JavaScript
Oct 3, 2026
dsh plugin --profile web add dsh-adaptive-reasoningby JoblessJoe
Live btop-style hardware monitor (CPU/mem/temp/GPU) tab for the DeepSeek Harness (dsh) web GUI
★ 0
NOASSERTION
TypeScript
Sep 29, 2026
dsh plugin --profile web add dsh-vitalsby jingzhao-l
DeepSeek Harness (dsh) plugin that turns the iterate skill into an autonomous closed-loop code iteration — parallel reviews, deterministic dedup convergence, atomic fix + verify auto-stop, meta-review
★ 2
↓ 263/wk
MIT
TypeScript
Sep 12, 2026
dsh plugin --profile web add iterate-pluginby Liu-Bot24
DeepSeek Harness(DSH)只读执行轨迹复盘插件,支持规则分析、独立模型解读、证据定位、任务概览与运行对比。
★ 5
MIT
JavaScript
Sep 26, 2026
dsh plugin --profile web add dsh-plugin-trace-insightby Ayelsh
A DeepSeek Harness plugin: Zhipu coding-plan sign-in, quota and usage panel.
★ 0
MIT
TypeScript
Sep 30, 2026
dsh plugin --profile web add dsh-zhipu-plan