Introducing Lattice, the code editor for Rhino and Grasshopper
Lattice is a complete code editor with an AI agent built in. It writes, explains and debugs Python, C# and Grasshopper with real context of your Rhino model, and keeps every script as a tool you can use again. This page and the video take you from install to your first tool.
v0.2 · Windows 10 or 11 · Rhino 8 · Requires a subscription
Founding Members: 40% off with code FOUNDER, for the first 100 members.
The whole tour, in ten minutes
Install, set up and three real tasks. Jump to the part you need.
- 0:00Introduction
- 0:20Why an editor, not just a chatbot
- 1:05Install and activate
- 3:25The interface and Settings
- 4:25Connect an AI model
- 6:10Working in your Rhino model
- 7:10Write and run a script
- 8:10Build a Grasshopper definition
- 9:10Recap
A chat window isn't a workflow
Computational design runs on scripts: the Python tools, C# components and Grasshopper definitions that turn a design rule into geometry. AI can write them now, but most ways of using it in Rhino stop at a chat window.
Connect a chatbot to Rhino and it can run commands. But the logic disappears with the conversation, the model guesses at an API it can't see, and you can't review what it's about to change. That's fine for a demo, not for the tools a practice relies on.
So we built the whole environment around the agent: a real code editor where every script is a file you keep, tools that give any model the real Rhino API and the Grasshopper components you actually have, and a workflow where you plan, review and undo. The AI does the typing. You keep the design, and the tools.
- 01
Every script is kept
Scripts are files in your project, with git history. Run them again next week, refine them, share them with your team.
- 02
Grounded, not guessing
The agent reads your model and canvas, searches the real RhinoCommon API and knows your installed Grasshopper plugins. Even a cheaper model guesses far less.
- 03
You stay in control
Ask without changing anything, agree a plan before it builds, review every change as a diff, and undo a whole turn with one Ctrl+Z.
A whole code editor, with an agent that knows Rhino
Not a plugin with a chat box. An editor for Python, C# and IronPython, Rhino and Grasshopper tools built for the agent, and a choice of every major model.
Build tools, not one-offs
Every script Lattice writes is a file in your project. Run it again with one click, refine it, version it with git and share it with your team. Spend your AI usage on tools that keep paying off, not on actions you'll repeat tomorrow.
studio-toolkit
- facades
- panel_numbering.py
- panel_flatness.py
- structure
- export_columns.py
- beam_tags.cs
- standards
- layer_standard.py
1#! python32import rhinoscriptsyntax as rs3from toolkit.geometry import sort_into_rows45def number_panels(panels):6 """Number panels by row and column."""7 rows = sort_into_rows(panels, tolerance=0.01)8 for r, row in enumerate(rows):9 for c, panel in enumerate(row):10 mark = f"P-{r + 1:02d}-{c + 1:02d}"11 rs.SetUserText(panel, "Mark", mark)12 return len(panels)1314panels = rs.GetObjects("Select panels", rs.filter.surface)15count = number_panels(panels)16print(f"Numbered {count} panels")
Output
Output will appear here when you run code…
A real editor for Python and C#
Completions, error checking and one-click runs in Rhino, with git built in. For the scripts and tools your practice relies on.
massing
- contour_mass.py
- beam_tags.cs
- site_grid.py
- pyrightconfig.json
1#! python32import Rhino.Geometry as rg3import scriptcontext as sc45def contour_mass(brep, spacing):6 """Horizontal contours every `spacing` metres."""7 box = brep.GetBoundingBox(True)8 start = rg.Point3d(0, 0, box.Min.Z)9 end = rg.Point3d(0, 0, box.Max.Z)101112mass = sc.doc.Objects.GetSelectedObjects(False, False)13curves = contour_mass(next(mass).Geometry, 3.0)14for curve in curves: sc.doc.Objects.AddCurve(curve)15print(f"Added {len(curves)} contours")
Output
Output will appear here when you run code…
Grasshopper definitions from your intent
Describe the logic and the constraints. Lattice places, wires and solves the definition on your live canvas, fixes its own errors, and works with the plugins you already use.
Works in your live Rhino model
It reads layers, objects and user text, runs scripts in your model and checks the result in the viewport. One Ctrl+Z undoes everything it did in a turn.
Plan first, then build
Ask about your model, agree a plan, then let it build. Every change arrives as a diff you accept or reject.
Plans export-panels_plan.md
Bring your own agent
Already use Claude Code or Codex? Chat with them inside Lattice on your own plan, or connect Lattice's Rhino and Grasshopper tools to Cursor, Claude Code and Codex.
Settings Agents
In Lattice chat
Chat with your own agent, on your own plan.
In your terminal
Give other agents Lattice's Rhino and Grasshopper tools.
Up and running in twelve steps
About ten minutes. You need Windows 10 or 11 and Rhino 8. Every step is also in the video.
Account and plan
Video 1:05- 01
Create your account
Sign up at latticecode.dev with your email or Google.
- 02
Choose a plan
Monthly or yearly. Founding Members: enter FOUNDER at checkout.
- 01
Install and activate
- 03
Download and install
Download Lattice for Windows and run the installer.
- 04
If Windows warns you
Lattice is new, so Windows may say it protected your PC. Click More info, then Run anyway.
- 05
Allow the firewall prompt
On first launch, allow Node.js on private networks. It's Lattice's agent, running on your computer.
- 06
Activate this computer
Click Start activation. Your browser opens: sign in, check the code and click Approve device. Lattice unlocks on its own.
- 03
Connect Rhino
- 07
Install Lattice Bridge
In Rhino 8, type PackageManager, search for lattice-bridge and click Install.
- 08
Restart Rhino
Rhino loads new plugins when it starts.
- 09
Check the plugin
Type PlugInManager, search for Lattice and check that Lattice Bridge is enabled.
- 10
Connect
Type Lattice in Rhino's command line. The editor opens, connected. LatticeStatus should say Editor Connected: True.
- 07
Connect an AI
Video 4:25- 11
Open a folder
Click Open Folder and pick a folder for your scripts. Everything you and the agent write is saved there.
- 12
Add a model
Create a key at openrouter.ai/keys and paste it in Settings → Models. Or use your Claude or ChatGPT plan under Settings → Agents.
- 11
Your models, your bill, no markup
Lattice doesn't resell AI. Connect the models you want and pay the provider directly, only for what you use.
- 01
Any model through OpenRouter
One key for frontier models and strong open-source ones. Pick a model per chat: a frontier one for hard problems, a fast and cheaper one for routine work.
- Pay OpenRouter's price, with no Lattice markup
- Set a monthly spending limit on your key
- Switch whenever a better model comes out
- 02
Your Claude or ChatGPT plan
Already pay for Claude or ChatGPT? Bring your agent into Lattice, with all of Lattice's Rhino and Grasshopper tools. No OpenRouter key needed.
- Claude Code and Codex inside Lattice's chat, through ACP
- The Lattice MCP server for Claude Code, Codex, Cursor and opencode in your terminal
- A read-only switch, so agents can look without changing your model
$12 a month. For tools you keep for years.
Or $99 a year. One plan with everything in it, and AI billed separately at cost, so you only pay for what you use.
- 01
Pays for itself in an hour
If Lattice saves you one hour of scripting, searching the API or rewiring a definition each month, it has paid for itself. Every tool it writes keeps saving time after that.
- 02
Everything included
The editor, the agent, every Rhino and Grasshopper tool, the Lattice MCP, two computers and every new release.
- 03
Better every week or two
We ship updates every week or two, and they arrive in the app automatically. What you run into shapes what we fix and build next.
100 spots. 40% off, for as long as you stay.
Lattice is at v0.2. It's ready for daily work, but you'll probably run into some quirks, especially in cases we haven't anticipated yet. That's exactly why we're opening it up now: the best way to iron them out is to see Lattice used across as many real computational design workflows as possible.
- 01
40% off, locked in
$7.20 a month or $59.40 a year, for as long as your subscription stays active.
- 02
A direct line to the team
Send feedback, bugs and feature requests straight to the people building Lattice.
- 03
Shape the roadmap
Your workflows decide what we fix, improve and build next.
Founding Members: enter FOUNDER at checkout.Cancel anytime and keep access until the end of your billing period.Cancellation policy
Questions and fixes
Stuck on a step? Write to hello@latticecode.dev.
Build your first tool today.
For Rhino 8 on Windows. One plan, any model.