- Home
- Plugins
- Tools & Capabilities
- dsh-rhino
dsh-rhino
1gokd/dsh-rhino
Drive a live Rhino 8 session from DeepSeek Harness: start Rhino, run IronPython modeling code on the Rhino UI thread, inspect document objects, and capture the viewport as PNG. Windows + Rhino 8 only.
Install
dsh plugin --profile web add github:1gokd/dsh-rhinoREADME
dsh-rhino
Drive a live Rhino 8 session from DeepSeek Harness.
Start Rhino, run IronPython modeling code on the Rhino UI thread, inspect the document, and capture the viewport — all from a dsh agent.
Features
| Tool | What it does |
|---|---|
rhino_start | Launch Rhino 8 and attach the bridge (or report the command to attach an already-running session) |
rhino_status | Check whether the bridge is reachable and read the active document info |
rhino_run | Execute IronPython 2.7 code inside Rhino, on the UI thread, and return a JSON-serialisable RESULT |
rhino_objects | List objects with id / geometry type / layer / name |
rhino_capture | Zoom-to-extents and capture the active viewport to PNG |
Requirements
- Windows
- Rhino 8 (Commercial or Evaluation)
- dsh 260810+
The bridge script (assets/rhino_bridge.py) listens on 127.0.0.1:8787 and runs inside
Rhino's IronPython engine. It is copied to ~/.dsh/rhino/ on first use.
Install
# from a local checkout
dsh plugin install ./dsh-rhino
# or from git
dsh plugin install https://github.com/<1gokd>/dsh-rhino
Then enable the bundle in your profile:
dsh plugin list
dsh plugin enable dsh-rhino
Usage
> open rhino and draw a 100mm cube
The agent calls rhino_start, waits for the bridge port, then runs:
import Rhino.Geometry as rg
b = rg.Brep.CreateFromBox(rg.BoundingBox(rg.Point3d(0,0,0), rg.Point3d(100,100,100)))
sc.doc.Objects.AddBrep(b)
sc.doc.Views.Redraw()
RESULT = {"ok": True}
Manual bridge attach
If Rhino is already running, run this in the Rhino command line:
_-RunPythonScript ("C:\Users\<you>\.dsh\rhino\rhino_bridge.py")
License
MIT
Related plugins
archify (deepseek-harness)
tt-a1i/archify
WeKnora (dsh-weknora)
tencent/weknora
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
weknora
tencent/weknora