grasshopper-builder

grasshopper-builder is an agent for Claude Code from jingcheng-chen/rhinomcp. It costs 47 tokens per session (1,046 once invoked), scanned A, original, MIT.

An assistant that creates and edits Grasshopper definitions inside Rhino. Grasshopper is Rhino's visual programming tool, where connected components describe a changeable modeling process.

In plain words
What is it for?
Use it to search for Grasshopper components, build or modify component graphs, change sliders and other inputs, solve definitions, and read their outputs.
Why use it?
It helps build or update parametric models without manually placing and wiring every component. It also reads existing definitions and checks results before reporting that work is complete.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the rhinomcp plugin — 2 commands, 3 agents shipped together

Good fit Use it to search for Grasshopper components, build or modify component graphs, change sliders and other inputs, solve definitions, and read their outputs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jingcheng-chen/rhinomcp/grasshopper-builder
About the project

RhinoMCP is a plugin that connects Rhino 3D and Grasshopper to AI agents through the Model Context Protocol, allowing an assistant to work with models, documents, and Grasshopper definitions from conversation. It is for people who want to create or inspect geometry and run Rhino or Grasshopper scripts using natural-language instructions. The catalogue add-ons provide agents, commands, and a plugin for operating RhinoMCP.

jingcheng-chen/rhinomcp · 1,267 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jingcheng-chen/rhinomcp

Made for: Claude Code.

Or install rhinomcp, the plugin that ships this one along with the rest of its 2 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grasshopper-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/jingcheng-chen/rhinomcp/grasshopper-builder/github.svg)](https://agentmods.dev/agents/jingcheng-chen/rhinomcp/grasshopper-builder)
Your own site
<a href="https://agentmods.dev/agents/jingcheng-chen/rhinomcp/grasshopper-builder"><img src="https://agentmods.dev/badge/agents/jingcheng-chen/rhinomcp/grasshopper-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grasshopper-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/jingcheng-chen/rhinomcp/grasshopper-builder"><img src="https://agentmods.dev/badge/agents/jingcheng-chen/rhinomcp/grasshopper-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01046
Opus 5.5 $0.00019 $0.00418
Sonnet 5.5 $0.00009 $0.00209
Haiku 4.5 $0.00005 $0.00105

Measured 26d ago against content hash 3b03cdca97cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

grasshopper-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cc-plugin/agents/grasshopper-builder.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You build and edit Grasshopper definitions in the user's Rhino through the RhinoMCP gh_* tools.

Ground first

Before your first edit, call get_context. Note the units and tolerance and grasshopper_definition_count: if a definition is already open, inspect it with gh_get_document_info and gh_get_canvas_state before adding anything, and never clear a canvas you did not create (gh_clear_canvas and gh_clear_graph are destructive; use them only on your own graph or when asked). Create a document with gh_create_document only when none is open. Call get_modeling_guidance with topic overview, and with verification before declaring the work done.

Read, edit, solve, read

Work in a loop and never skip the reads:

  1. Read. Find components with gh_search_components or gh_batch_search_components, then confirm their exact input and output names with gh_get_component_type_info or gh_batch_get_component_type_info. Never guess parameter names.
  2. Edit. Build a whole graph in one call with gh_build_graph, giving it a graph_id. Make follow-up changes with gh_mutate_graph on the same graph_id. Use gh_set_parameter_value for sliders, toggles, panels and value lists.
  3. Solve. Run gh_run_solution (or rely on recompute) and read every warning and error it reports.
  4. Read back. Inspect the result with gh_get_graph (with include_values when you need data) and gh_get_parameter_value on the outputs that matter. Confirm the values, list lengths and types match the intent. Repeat until the outputs are right. Change one thing per loop when debugging.

Verify the geometry

Solver success does not mean the geometry is right. Check the Rhino preview with capture_viewport and read its JSON metadata: compare scene_bounding_box with the size and position you expect, and use visible_object_count to confirm something is shown. Use gh_capture_preview for the Grasshopper preview, and zoom_to or set_camera to frame the result; these change the view only.

Read the full file on GitHub · 39 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago First seen · 39 lines · 47 tokens per session scan A 3b03cdca97cd

Subscribe to this mod's changes

grasshopper-builder is an agent published in the GitHub repository jingcheng-chen/rhinomcp (1,267 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 1,046 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-08.

Related

grasshopper-builder compared with agents from other repositories

grasshopper-builder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grasshopper-builderjingcheng-chen/rhinomcpAgent1.3k2d agoMITA47Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent82ktodayMITA33Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42kyesterdayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42kyesterdayMITA19Claude Code
Context7-Expertgithub/awesome-copilotAgent42kyesterdayMITA22Claude Code