
dongsheng123132/dsh-cad-review
30Last commit Aug 14, 2026
dsh-cad-review DSH plugin
This plugin reads CAD entities from ASCII DXF files, hashes the source drawing, and emits issues tied to entity handle/index, layer, source line range and geometric location. It performs deterministic policy checks without inferring defects from screenshots. Unsupported entity types remain visible as an evidence gap.
How to install the dsh-cad-review DSH plugin
dsh plugin --profile <name> add github:dongsheng123132/dsh-cad-reviewThis source command needs manual review. Copying does not run it.
dsh-cad-review DSH plugin data source
dsh-cad-review DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-cad-review DSH plugin can do
- Inspect DXF files: report SHA-256, units, bounds, layers, entity counts, and exact entity geometry/line evidence.
- Review DXF files against configurable policies: required/forbidden layers, forbidden entity types, polyline closure, text height, drawing span, entity limits, etc.
- Provide CLI commands (inspect and review) for standalone use.
- Explicitly report unsupported entity types as evidence gaps rather than silently ignoring them.
- Support severity overrides using stable rule IDs.
Where the dsh-cad-review DSH plugin fits
- Automated compliance checking of CAD drawings against project-specific standards.
- Detecting geometric errors like zero-length lines, non-positive radii, and malformed numbers.
- Integrating CAD review into a DeepSeek Harness agent workflow for building design validation.
- Enforcing required layers (e.g., WALL) and forbidding problematic layers (e.g., DEFPOINTS) in architectural drawings.
- Verifying drawing units, bounds, and entity count limits before further processing.
Who the dsh-cad-review DSH plugin is for
- Architects and engineers who need deterministic CAD rule enforcement.
- Developers building DSH-based agents that interact with CAD files.
- CAD administrators responsible for project drawing quality.
- Teams using DSH for automated document review pipelines.
dsh-cad-review DSH plugin limitations
- Only supports ASCII DXF v0.1; binary DXF and DWG files are refused, not guessed.
- A passing review means no error under the supplied deterministic policy, not professional engineering approval.
- Unsupported entity types (beyond LINE, LWPOLYLINE, CIRCLE, ARC, TEXT, MTEXT, POINT, INSERT) are reported as gaps but not reviewed.
- The source SHA-256 identifies the exact reviewed bytes but does not prove authorship.
- Requires a workspace root and project-owned policy; no pre-built universal code.
dsh-cad-review DSH plugin: from the repository README
Quoted from the dongsheng123132/dsh-cad-review README, the upstream source of the dsh-cad-review DSH plugin. Copyright remains with the original authors.
Evidence-first ASCII DXF inspection and deterministic CAD rule review for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). This plugin does not infer engineering defects from screenshots. It reads CAD entities, hashes the source drawing, and emits issues tied to entity handle/index, layer, source line range and geometric location. Unsupported entities remain visible as an evidence gap. ## Install ```bash dsh plugin --profile <name> add github:dongsheng123132/dsh-cad-review ``` Configure a workspace root and project-owned policy: ```yaml - id: dsh-cad-review name: dsh-cad-review config: workspaceRoot: C:/absolute/project/path maxBytes: 20971520 policy: requiredLayers: ["WALL"] forbiddenLayers: ["DEFPOINTS"] forbiddenEntityTypes: ["3DSOLID"] requireClosedPolylines: true minTextHeight: 2.5 maxDrawingSpan: 1000 requiredInsUnits: 4 maxEntities: 100000 maxIssues: 500 ``` Paths must be `.dxf` files relative to `workspaceRoot`. Traversal, symlink escape, binary DXF and oversized input are refused. ## DSH tools - `dsh_cad_inspect_dxf` — source SHA-256, units, bounds, layers, entity counts and e
Read the full READMERepository license: MIT
dsh-cad-review DSH plugin questions
How do I install dsh-cad-review?
Run 'dsh plugin --profile <name> add github:dongsheng123132/dsh-cad-review' in your terminal. Make sure you have DSH installed and configured with a profile. The plugin will be added to that profile.
What file formats does this plugin support?
It only supports ASCII DXF files. Binary DXF and DWG files are refused. The plugin does not attempt to guess or convert other formats. If you have a binary DXF, you must convert it to ASCII first.
How do I configure the review policy?
You can configure a policy in the plugin's YAML config under 'policy' keys like 'requiredLayers', 'forbiddenLayers', 'forbiddenEntityTypes', 'requireClosedPolylines', 'minTextHeight', 'maxDrawingSpan', 'requiredInsUnits', 'maxEntities', 'maxIssues'. Alternatively, you can pass a 'policyJson' parameter with each call to override the configured policy.
What does the 'review' command do?
The 'review' command runs the same evidence extraction as 'inspect' plus a deterministic policy report. It checks the drawing against the configured rules and exits with code 2 if any error-severity issues are found. Use 'dsh-cad-review review drawing.dxf --policy path/to/policy.json'.
Can I use this plugin standalone without DSH?
Yes, the plugin provides CLI commands 'dsh-cad-review inspect' and 'dsh-cad-review review' that can be run directly from the command line. You do not need DSH to use the CLI, but the DSH integration allows agents to call these tools.