Moraine
English | 日本語
Moraine is an AI-native procedural modeling tool for real-time 3D assets. It lets you build, refine, and extend 3D assets together with an AI agent — the agent writes the recipe, tests verify your declared requirements, you decide what they become.
Tell your agent what you want to build, not how to model it. Point at a part in the viewer and ask for a change, explore variations, or reuse the asset in something larger. Moraine handles the geometry and verifies your declared requirements as the asset evolves, so you can keep building on what you've made instead of starting over.
Build, Refine, Extend
Build
You describe what you want to build and what must hold, and the agent writes the recipe: a script in Starlark, a Python dialect, that defines a graph of operations such as primitives, cuts, arrays, placements, and materials. Your declared requirements, dimensions and contacts among them, are kept in a separate, human-owned file. The tool generates the geometry, verifies the requirements, and feeds the result back. The agent edits the recipe until every requirement passes, and you judge the result in the viewer. The modular spaceship corridor below is one module placed five times, with pipes, light fixtures, lockers, and roof equipment. The tool verifies its two declared requirements: a clear bore width of 2.0 meters and height of 2.4 meters.
The recipe, as the agent writes it. No hand editing needed. This excerpt creates and places the corridor's deck.
deck_box = mo.box(
id = "deck_box",
size = [
BORE_W - 2 * (RIB_DEPTH + DECK_GAP),
DECK_T,
MODULE_LEN - 2 * DECK_END_GAP,
],
)
deck_on_floor = mo.place(
hull_floor, deck_box,
id = "deck_on_floor",
anchor = "bore_floor",
mode = "on_top",
)
Refine
Most of the work is refinement, and you can direct it from the viewer. Pin the spot you want to work on and tell the agent what should change there. The agent reads the pinned part and updates the recipe where that part is defined. After the change, the tool still verifies the requirements, and you inspect the updated model and decide whether to accept it. Below, the human pinned one of the roof equipment boxes and said what to do with it. Parameters you want in your own hands go on a panel in the viewer. Drag the deck's roughness, reroll a wear seed, or step the locker count. The Accept button makes your pick part of the asset, and the tool verifies the requirements again under the value you chose.
| Before: a plain equipment box, pinned in the viewer. The request: add vents or a grille to it, in a metal material. | After: a fan grille set into every box, with louvers on the sides. The same camera view. |
Extend
A finished asset becomes a building block for the next. You can reuse a part by reference and override the knobs it exposes, so one part yields a family of variants. Its declared requirements travel with it. You can also declare requirements for how the parts connect, and the tool verifies them alongside the original requirements. The pressurized hub below grows three arms from the corridor, each with its own locker count, equipment, and wear. The bore width and height requirements carry into every arm. New requirements are verified where each arm docks into the hub: that the shell seats on its port and the decks meet at the threshold.
| The hub: one corridor, reused three times by reference, each arm with knob values of its own. The grilles added during refinement appear on every arm. | Where an arm docks into the hub, seen from inside. The new requirements at this joint are verified alongside those carried from the corridor. |
Journal: The agent keeps a journal for each project, recording why design choices were made, which variants you rejected, and the corrections you made. The agent reads the journal before working, so your earlier decisions shape the next round, and future sessions or colleagues can continue the work instead of starting over. The corridor's journal records why the bore is 2.0 m wide — to let two people pass — and why the first grille design was rejected: it more than doubled the triangle count, so the agent proposed four simpler alternatives and the human chose one larger fan.
Rendering with a path tracer
Finished assets export as glTF 2.0 with materials and instancing preserved.
These images were rendered with a path tracer from the exported files of the assets above, with the agent-authored materials, normal maps, and emissive surfaces intact.
Inside the hub: the glazed roof, the light ring, and two of the arms.
The lake diorama: the rock wall and the conifers reflected in the water.
Get started
You need:
- An AI coding agent that can edit files and run commands in a
terminal, such as Claude Code or Codex.
- Any such agent works, and Moraine itself calls no model.
- Windows, or macOS on Apple silicon, with Python 3.12 or later.
- Every dependency ships as a binary wheel, so there is nothing to compile.
Install Moraine once and use it from every workspace:
uv tool install moraine3d
moraine init my-workspace
cd my-workspace
init scaffolds a workspace with AGENTS.md for your rules and the
authoring guide for the agent. AGENTS.md ships in English and is
yours: ask the agent to translate it, and write your rules in your
own language. The authoring guide for the agent remains in English.
Open the workspace in your agent, then follow the
tour to build your first asset, from a short request
to a glTF export.
With Claude Code, the shipped skill can
do this setup for you: run /plugin marketplace add ms-elk/moraine,
then /plugin install moraine@moraine.
Sample workspace
ms-elk/moraine-sample-workspace is a complete Moraine workspace built around a railway station scene assembled from reusable assets. It includes the recipes, the human-defined requirements, journals, and requests, with one commit per round documenting how the kit was built and refined.
Explore the assets in the viewer, then ask your agent for a change. Moraine verifies the result against the declared requirements.
Documentation
| Document | What it covers |
|---|---|
| Tour | Your first asset, from a request to a glTF export |
| Examples | Shipped examples, from a single box to textured buildings and scatter fields |
| Reference | The asset format, the operators and assertions, the CLI, the journal |
| Agent guide | What the agent reads before authoring |
| DESIGN | Moraine's design document |
License
Apache-2.0. See LICENSE. Bundled third-party software is listed in
THIRD_PARTY_NOTICES.md.
Metadata
Release files for moraine3d 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moraine3d-0.2.1.tar.gz | 1.2 MB | With provenance | Details for moraine3d-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moraine3d-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for moraine3d-0.2.1-py3-none-any.whl |
Total release size: 2.2 MB
Release files / moraine3d-0.2.1.tar.gz
| Download URL | moraine3d-0.2.1.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3065aa87253fe2fa0b1218a89185fef9ddaaa64571e60b202b3e48ae33513f0
|
|
BLAKE2b-256 checksum How to use checksums |
e5369e72cae688139180af30a3d589e326e112386329eae433b50c014f00bdf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.
Transparency logRelease files / moraine3d-0.2.1-py3-none-any.whl
| Download URL | moraine3d-0.2.1-py3-none-any.whl |
|---|---|
| Size | 974.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7694541465cebfe3fdd79e96a3c684af044201dde79abf9c5a3ac40b1eb4119
|
|
BLAKE2b-256 checksum How to use checksums |
c6baf82a51ce824977bb83127c3829b27ca4d24047b8e7ca7c608a14630776e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.
Transparency logSecurity for moraine3d 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for moraine3d-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.