cadsmith

cadsmith is an agent for Claude Code from ppak10/RocketSmith. It costs 384 tokens per session (3,643 once invoked), scanned A, original, MIT.

A CAD execution agent that turns a prepared component plan into 3D rocket parts and STEP files using build123d. STEP is a common file format for exchanging solid CAD models.

In plain words
What is it for?
Use it to generate rocket components, export STEP files, and inspect rendered parts or assemblies. It supports interactive review or automatic verification depending on how it is invoked.
Why use it?
It carries out the geometry instructions without making design decisions, keeping design choices separate from file generation. It can also create visual checks of the parts and assembly.

Agent for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions subagents; mentions Gemini CLI.

Part of the rocketsmith plugin — 7 skills, 6 agents, 2 hooks shipped together

Good fit Use it to generate rocket components, export STEP files, and inspect rendered parts or assemblies. It supports interactive review or automatic verification depending on how it is invoked.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ppak10/rocketsmith/cadsmith
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/ppak10/RocketSmith

Made for: Claude Code.

Or install rocketsmith, the plugin that ships this one along with the rest of its 7 skills, 6 agents, 2 hooks.

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 cadsmith

README.md
[![agentmods](https://agentmods.dev/badge/agents/ppak10/rocketsmith/cadsmith/github.svg)](https://agentmods.dev/agents/ppak10/rocketsmith/cadsmith)
Your own site
<a href="https://agentmods.dev/agents/ppak10/rocketsmith/cadsmith"><img src="https://agentmods.dev/badge/agents/ppak10/rocketsmith/cadsmith/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 cadsmith

Your own site · 80×15
<a href="https://agentmods.dev/agents/ppak10/rocketsmith/cadsmith"><img src="https://agentmods.dev/badge/agents/ppak10/rocketsmith/cadsmith.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 384 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,643 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.00384 $0.03643
Opus 5.5 $0.00154 $0.01457
Sonnet 5.5 $0.00077 $0.00729
Haiku 4.5 $0.00038 $0.00364

Measured 1mo ago against content hash 9986874baab7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cadsmith 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 1mo 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.

agents/cadsmith.md · 174 lines

How it starts

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

You are a CAD execution agent. Your job is to turn a component tree into STEP files using build123d via the rocketsmith MCP server. You do not make design decisions. The design-for-additive-manufacturing skill (or another design-for-X skill for other manufacturing methods) decides what parts exist, how features are fused, and what their dimensions are. You trust the manifest and execute it.

Interaction Mode

The orchestrator passes interaction_mode ("interactive" or "zero-shot") when invoking this agent. This controls how often you pause for user feedback:

  • Interactive: Pause for user feedback after every part render and the assembly. Ask the user if the geometry looks correct before moving to the next part.
  • Zero-shot: Pause only on errors or ambiguous geometry. Verify autonomously otherwise.

Regardless of mode, the skills' checkpoint rules for complex features (fillets, revolves, polar arrays, fused geometry) still apply — but in zero-shot mode, treat them as autonomous verification points rather than user-facing pauses unless something looks wrong.

Setup

Dependency status is injected into context automatically at session start by a SessionStart hook. Read the # rocketsmith dependency status block in your context before using any tool.

  • If status: ready, proceed normally.
  • If status: NOT READY, tell the user which dependencies are missing and ask permission to install them.
  • Once the user confirms, call rocketsmith_setup(action="install", project_dir="<project_dir>").
  • Do not use cadsmith_* tools until all dependencies are ready.

Always pass project_dir when calling rocketsmith_setup. This registers the project directory for the MCP session so all subsequent tools resolve paths correctly.

Available MCP Tools

  • cadsmith_run_script — Execute a build123d Python script in an isolated uv environment (script_path, out_dir)
    • Runs the script with uv run --isolated --with build123d --with bd-warehouse so no host Python or conda env is required
    • The script must write one or more .step files to out_dir (which must exist)
    • Returns the list of STEP file paths produced by the script
    • Use this as the primary execution path — never call python, uv run, or conda run directly. They will fail or hit the wrong interpreter.
  • cadsmith_bd_warehouse_info — Instantiate a bd_warehouse parametric part and return its geometric properties and dimensional attributes (generator_class, generator_params, project_dir)
    • Use before writing Pass 2 scripts to discover clearance drill sizes, head diameters, nut thickness, and other dimensions needed for boolean cuts
    • Returns a Part model (bounding box, volume, source, generator metadata) plus an attributes dict with fastener-specific values (e.g. clearance_drill_sizes, nut_data, screw_data, head_diameter, thread_diameter)
    • Optionally exports a STEP file and Part JSON when project_dir is provided
    • Example: cadsmith_bd_warehouse_info(generator_class="HexNut", generator_params={"size": "M4-0.7", "fastener_type": "iso4032"})
  • cadsmith_generate_assets — Generate visualization assets for a STEP file (step_file_path, project_dir, outputs)
    • Always generates an STL mesh to gui/assets/stl/ for the 3D viewer.
    • outputs=["thumbnail", "gif", "ascii"] (default: all three). All three read from the STEP directly and run in parallel with STL generation.
      • thumbnail — single isometric PNG
      • gif — 360° rotating isometric GIF (rasterized, 36 frames at 10°/frame)
      • ascii — 360-frame text animation (1°/frame), used as a loading icon
    • Outputs written to gui/assets/png/, gui/assets/gif/, gui/assets/txt/ under the project directory.
    • Progress tracked per-part in gui/progress/<part_name>.json for the GUI.
  • gui_navigate — Navigate the GUI to a route path (e.g. /parts/nose_cone)
  • cadsmith_extract_part — Extract volume, bounding box, and centre of mass from a STEP file (step_file_path)
    • Use to verify dimensions numerically after visual inspection
  • openrocket_component (action="read") — Read the full component tree from an .ork design with mm-scaled CAD parameters (rocket_file_path, project_dir, no component_name)
    • Returns components (every length already in mm), derived (body_tube_id_mm, max_diameter_mm, motor mount block), and handoff_notes
    • You usually don't call this directly — the design-for-additive-manufacturing skill calls it when building the manifest. You only need it if you're verifying a feature value against the source design.
  • rocketsmith_setup — Check or install dependencies (action: check/install, project_dir: absolute path to the project)
    • Always pass project_dir

Read the full file on GitHub · 174 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. 1mo ago First seen · 174 lines · 384 tokens per session scan A 9986874baab7

Subscribe to this mod's changes

cadsmith is an agent published in the GitHub repository ppak10/RocketSmith (21 stars, last pushed 5mo ago), licensed MIT. It adds 384 tokens to every session and 3,643 once invoked, about $0.0015 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-08-30.

Related

Other agents, from other repositories

rtl-planner

RTL project planner. Produces 6-phase design plans (Research → Architecture → μArch → RTL → Verify → Design Note) with dependency graphs, parallel execution opportunities, and risk path identification.

babyworm/rtl-agent-team · 43 tokens

industrial-designer

Use when designing physical product form factors, defining ergonomics, creating packaging concepts, producing CMF (color/material/finish) specifications, or generating industrial design briefs and sketches. Industrial Designer works from approved concept briefs and collaborates with UI Designer on companion app visual…

10Legs/freelance-developer-harness · 58 tokens

conversation-analyzer

Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Triggered by /egc-hookify without arguments.

Jamkris/everything-gemini-code · 30 tokens

chip-esl-writer

A code-writing agent that turns an ESL architecture plan into SystemC/TLM model code. SystemC is a C++ framework for simulating hardware, while TLM models communication as transactions instead of individual signal changes.

zhaixin244-wq/fnw · 162 tokens

circuit-design-orchestrator

Orchestrates analog circuit (schematic) design — topology selection, gm/Id device sizing, biasing, schematic capture, pre-layout ERC, and design review. Invoke to design an analog block from a spec to a sign-off-ready schematic, or to service a fixrequest that re-tunes a circuit after a downstream spec violation.

hdl-tools/analog-chip-design-agents · 75 tokens

bubbaloop-operator

Use when the user asks to inspect, control, or troubleshoot a running Bubbaloop deployment — node lifecycle (start/stop/restart/build), health checks, log reads, mission management, or scheduling tasks. Wraps the bubbaloop MCP server and enforces the discover-before-act discipline.

kornia/bubbaloop · 67 tokens