Hi!
Recently I made a custom C# component in grasshopper, to allow users(or your AI agents!) to easily edit their scripts in vscode, and sync to the components on gh canvas.
The idea is to store scripts in a local repo and create live C# component instances in gh, meaning -
- all instances will be linked to the central script.
- you can define your custom classes and it will be shared across multiple components, multiple running apps.
- your agents will always have the full picture.
Feel free to install and give it a shot from Rhino 8 Package Manager by searching CodeEditRh.
Right click and use Create Example Project to initialise.
Right click and use Open in VS Code to start scirpting.
Canvas components will be updated on save in VS Code.
The parameter types is supported widely. You can define it as a single item, a List or DataTree, and the regular geometry types e.g Curve, Mesh, Surface etc.. or just object and cast internally (similar to the default C# component).
All the operations should happen in VS Code to avoid bi-directional sync conflicts.
Follow the template in .csproject to add external libraries
Have fun!




