Sulat.com / Writing on AIThursday, December 3, 2026
Enter →
Artificial Intelligence/3 December 2026

Forma is a 3D modeller built for AI agents

WrongNebula's Forma is a Rust 3D modelling engine that an agent drives from the command line or MCP. I ran it through Codex and measured it against Blender.

Forma wordmark in white 3D letters with a green bar, a steel bolt and nut, and a teal open-top enclosure on a dark blueprint floor
Illustration: Sulat, featuring the Forma wordmark

At a glance

  • Forma is a GPL-3.0 Rust engine where an agent writes a short script, builds a solid and gets a one-line watertight report back.
  • Against Blender 5.3 on the same flange, the npm build was about 7 times faster and used about a sixth of the memory, well short of the post's 77 and 100 times.
  • The 15.5 times token figure is one paired Mistral task; across 67 trials the README reports 3.49 times fewer completion tokens.
  • In one Codex run each, Forma used more input tokens than Blender for the same enclosure brief, and both meshes came out watertight.
  • The post walks through setting up Codex with the Forma skill and MCP server, with the exact prompts and a recorded run.

Forma is a 3D modelling engine that an AI agent drives from a command line or over MCP. The agent writes a short script, Forma builds a solid, checks it’s watertight and returns a one-line report. WrongNebula announced it as “Blender rewritten to 1.1mb in Rust”, with claims of 77 times faster, 100 times lighter on memory and up to 15.5 times fewer tokens.

I installed it, checked those four numbers against Blender 5.3 on the same machine, and ran Forma through Codex to see what the agent loop looks like in practice. Two of the claims shrink a lot under a like-for-like test, one holds up, and the token claim comes from a single task. The how-to for doing the same with Codex is further down.

WrongNebula’s announcement of Forma.

What Forma is

Forma is a headless modeller written in Rust. Its README presents it as a replacement for the mesh modelling, boolean and preview work an agent would otherwise script through Blender’s Python API, and it has its own kernel and its own language, not Blender’s. That language, Forma-Pipe, chains operations with a pipe, and it picks edges and faces with words such as vertical, top_rim and sides instead of vertex numbers. Here is the README’s flange:

Code
flange = box(4, 2, 0.4)
  | mat("brushed_steel", color=(0.55, 0.68, 0.85), metallic=0.9, roughness=0.25)
  | cut(cyl(0.5, 1))
  | cut(cyl(0.25, 1), at=[(-1.4,-0.5,0), (-1.4,0.5,0), (1.4,-0.5,0), (1.4,0.5,0)])
section(flange, 0.0)

An agent reaches it three ways. The forma command takes a script on standard input and exports .glb, .stl, .obj, .3mf, faceted .step, a four-view .png preview and a dimensioned .svg blueprint. forma-mcp exposes four tools, eval, inspect, tx and export. And the repo ships a SKILL.md and a grammar for constrained decoding. I asked the MCP server for its tool list and counted it with the o200k tokeniser: 787 tokens, against the 789 the README quotes.

Every evaluation returns a compact report such as WT=ok NM=0 g=5 vol=2.576 size=[4.00,2.00,0.40]. WT is watertight, NM is non-manifold edges, g is the genus, so g=5 means five through-holes. With --strict, a result that fails the watertight check is rolled back. That report is the part an agent can reason about without looking at a picture.

It’s GPL-3.0-or-later, and the npm package, forma-3d, went up the same evening as the post. The version I used was 0.4.2.

The numbers, checked

I ran the README’s five-hole flange in both tools, five times each: forma eval --strict --out flange.glb from the npm package, and a Python script that does the same cuts in Blender 5.3 with exact booleans and exports a glTF. Both files came out at the same volume and the same 4 by 2 by 0.4 extents. Specs for every timing here: a four-core Intel Xeon at 2.30 GHz, 15 GB of memory, 252 GB of disk, Ubuntu 24.04 on Linux 6.18, Node 22 and Python 3.13.

Forma’s claims, its README figures and what I measured against Blender 5.3.
ClaimPostREADMEMine
Size1.1 MB1.7 MB native, 0.8 MB WASM0.77 MB WASM file
Speed77x faster16.9 ms against 1,306.8 ms0.12 s against 0.83 s, 7x
Memory100x lighter6 to 14 MB against 223 MB72 MB against 471 MB, 6.5x
Tokensup to 15.5x fewer3.49x fewer on averagemore, in one run
Forma size, speed, memory and token claims beside what I measured against Blender 5.3 bpy
The post’s headline numbers beside mine. Illustration: Sulat

Size. The post says 1.1 MB. The repo’s own hero image says 1.2 MB, and the README says about 1.7 MB native and 0.8 MB for WASM. I couldn’t build the native binary, so I measured the npm build: the WASM file is 769,256 bytes and the whole package unpacks to 855,514. For comparison, the Blender 5.3 Python wheel is 427 MB to download and unpacks to 912 MB.

Speed and memory. The 77 times figure is the README’s native binary against a 1,307 ms Blender cold start. Through npm, which starts Node and loads WASM, Forma took about 0.12 seconds against about 0.83 for Blender, roughly 7 times. Peak memory was 72 MB against 471 MB. That’s still a large gap, but it’s about a seventh of the time and a sixth of the memory, not a hundredth. The native binary may close more of it, and I haven’t run that.

Tokens. The README’s benchmark pairs Forma and Blender’s bpy across 12 models and six tasks. Across 67 paired trials, completion tokens fell 3.49 times and total API tokens 2.30 times. The 15.5 times figure is the Mistral row, and the report says that row is one paired task before the provider started returning errors. Per model, the completion-token reduction runs from 1.94 times to 14 times on models with several trials. The author ran this benchmark and I haven’t repeated it.

Bars: Forma completion tokens 3.49x fewer over 67 trials, API tokens 2.30x, and 15.47x on one Mistral task
The 15.5x figure is one task. Illustration: Sulat

Pass rates are where the README is strongest. First-attempt passes across the 67 trials were 67.2% for Forma against 55.2% for Blender, and after three turns 95.5% against 79.1%. Several individual models did no better on the first try with Forma, and the 100% figures in the README come from re-tests of four models after fixes to its bevel code.

The author’s own demo run is in the thread: Forma with Gemini 4 Neon at medium effort for US$1.54 and 2,051,709 tokens, in nine minutes, with an estimated saving of about US$3.76 against Blender’s MCP or CLI. The saving is an estimate, not a paired run.

How to model with Forma in Codex

Who it’s for: anyone who wants an agent to produce a checked 3D part, such as a bracket, an enclosure or a bolt, without opening a modelling app. What you end up with: a .glb model, a four-view preview image and a dimensioned blueprint, plus a report that says whether the mesh is watertight. Time: a few minutes to set up, and the runs below took 19 to 50 seconds. I used Codex 0.173.0 on its default model, GPT-6.2 Sol.

1. Install Codex and Forma

Code
npm i -g @openai/codex forma-3d
codex login
forma --version

The second package puts forma and forma-mcp on your PATH. The last command should print the version, which was 0.4.2 for me.

2. Switch off connected apps for the run

If your ChatGPT account has apps connected, Codex can offer them to the agent. A modelling run only needs the project folder, so turn them off in ~/.codex/config.toml:

Code
[features]
apps = false

3. Add the Forma skill

Code
mkdir -p ~/.codex/skills/forma
curl -fsSL https://raw.githubusercontent.com/wrong-nebula/forma/main/SKILL.md \
  -o ~/.codex/skills/forma/SKILL.md

The skill carries the language reference, the five-step modelling workflow and four verified recipes. You call it with $forma at the start of a prompt.

4. Optional: add the MCP server

Add this to the same config.toml if you’d rather the agent call Forma as tools than through the shell:

Code
[mcp_servers.forma]
command = "npx"
args = ["-y", "-p", "forma-3d", "forma-3d-mcp"]

With the server configured and forma not yet on the PATH, Codex called the MCP eval tool once and did the exports through the CLI. With forma on the PATH, it used the CLI throughout. Either way the report is the same.

5. Run Codex in an empty folder and give it a part

Code
mkdir part && cd part
codex

Name the size, the features, the check you want and the files to save. This is the prompt from the recording below, verbatim:

Code
$forma Design a beveled, hollow enclosure 120 mm by 80 mm by 40 mm with 2 mm walls and an open top (work in metres, Z-up). Add four 3 mm mounting holes through the base near the corners and one 25 mm round cable hole through a side wall. Check it with --strict, use section to report the wall area at mid height, and save enclosure.glb, preview.png and blueprint.svg in this folder.
The enclosure prompt in the Codex terminal, start to finish.

Codex read the skill, wrote the script, ran forma eval --strict, looked at the preview and reported back in 19 seconds of work. It chose 4 mm vertical bevels, put the four holes 10 mm in from the edges and centred a 25 mm hole on a long wall at mid-height. The wall area at the middle came back as 0.0007 square metres, which is the report’s display precision, about 700 mm².

Forma four-view preview of a teal open-top enclosure with four base holes and a round cable hole, modelled by Codex
The enclosure from the recorded run, as Forma rendered it.
Forma dimensioned blueprint of the 120 by 80 by 40 millimetre enclosure with front, right, top and isometric views
The dimensioned blueprint Forma drew from the same script.

A second prompt tested the language harder, with threads and a clearance check between two parts:

Code
$forma Model a threaded M8-style hex bolt about 40 mm long (use metres, Z-up), then a matching hex nut, and place the nut a little above the bolt tip so they don't touch. Check both are watertight with --strict, confirm the clearance between them, and write bolt-and-nut.glb, preview.png and blueprint.svg into this folder. Tell me the WT/NM values and the clearance you got.

That run took 31 seconds. Both parts came back WT=ok NM=0, and Forma measured a 2.00 mm gap between the bolt tip and the nut.

Forma four-view preview of a threaded hex bolt and hex nut that Codex modelled, front, right, top and isometric
The four-view preview Forma wrote for the bolt and nut.

6. Run it from a script

For repeatable runs, use codex exec and redirect standard input from /dev/null, otherwise it waits for input. Add --json to log every command and tool call.

Code
codex exec --skip-git-repo-check --sandbox workspace-write --json "$(cat prompt.txt)" </dev/null > run.jsonl
Codex loop with Forma: load the skill, write Forma-Pipe, run eval strict, look at the preview, fix and repeat
Write, check, look, fix. Illustration: Sulat

Pitfalls

  • Units. Forma works in metres with Z up. Say so in the prompt and give sizes in millimetres, and the agent converts. Codex did.
  • Cutters that only touch. The skill tells the agent to make cutting cylinders taller than the part and to overlap joined solids slightly. A cutter that grazes a face is where the booleans go wrong.
  • A glTF file can look broken when it isn’t. trimesh reported both Forma’s and Blender’s .glb as not watertight, because glTF splits vertices for normals. After welding the vertices, trimesh agreed both meshes were watertight.
  • STEP is faceted. Forma’s .step is a solid made of flat faces. It has no true cylinders or NURBS surfaces, so it’s no substitute for a CAD kernel if the part goes to a machine shop.
  • Section areas are rounded. The report printed 0.0007 m² for a wall that’s about 700 mm². Ask for the answer in square millimetres if you need more digits.

Checks before you trust a part

  1. The report says WT=ok NM=0, and g matches the number of through-holes you asked for.
  2. size=[x,y,z] matches your dimensions.
  3. The preview shows every hole and bevel in the right place.
  4. For assemblies, clearance(a, b) returns the gap you intended.

Forma against Blender, both through Codex

To see the token claim in an agent run of my own, I gave Codex the same enclosure brief twice. One run used $forma. The other had no Forma skill or server, and was told to use Blender through Python, with bpy 5.3 installed in a virtual environment. One run each, so treat it as a smoke test.

One Codex run each of the same enclosure brief, one run each, smoke test.
MeasureFormaBlender bpy
Wall time50 s49 s
Input tokens184,91684,065
Output tokens1,8721,677
Shell commands54
Wall area at mid height731 mm²718 mm²

Both runs delivered a watertight enclosure of the right size, and both volumes agree to within a couple of percent. The difference between the wall areas comes from the agents placing the holes 8 mm and 10 mm in from the edges. In this run, Forma took more tokens, not fewer: it read the skill file and then spent three of its five commands double-checking the mesh in Python, while the Blender run wrote a script and patched it twice. The README’s trials give each model up to three turns on a task, which is a different setup from an agent that loads a skill and checks its own work. I’d want many more runs before saying which way it goes on average.

Where it sits

Agents already have several routes into 3D, and they differ in what they give up. Blender now has an official MCP server in Blender Lab. It needs Blender 5.1 or newer and an add-on, and Blender’s own page warns that it executes model-written code with no guards, so it recommends a virtual machine. The community MCP for Blender is MIT-licensed and adds viewport looks and asset generators on top of the same idea. Both drive a full Blender, which is the right choice when the job is rendering, rigging or animation. Forma is for modelling.

For engineering parts, the closer peers are code-CAD libraries. build123d and CadQuery are Python, Apache-2.0 and built on the Open Cascade kernel, so they produce exact B-rep geometry and real STEP files. OpenSCAD is GPL and builds meshes from a script. A comparison by Forgent3D, which sells an AI CAD product built on build123d and says so, ranks build123d and CadQuery first for language models, on how much code models have seen and whether the agent can run and measure its own output. Forma’s case against them is weight: one small binary, no Python or Open Cascade install, and a tool schema under 800 tokens. Its case against itself is that a faceted solid isn’t a CAD model.

The nearest sibling is Vork, which I tested earlier this week. Vork is a renderer an agent drives with a JSON scene. Forma builds the solid, and Vork or Blender could light and render it. The author says a headless rendering rewrite is next.

Limits and licence

Forma is at version 0.4 and days old. It’s GPL-3.0-or-later, so anything you ship that links it carries the same terms. Its benchmark is the author’s, its headline speed figure is for a native binary I didn’t run, and its STEP export is faceted. What it does well is give an agent a fast, checkable loop for simple parts. The report line makes mistakes visible without a picture, and in my runs Codex got there in one pass.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.