Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
docs: document the scene composer + correct the consumption model
Matt Kissingere587a426bca2
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8548cbb3..06732c8b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,20 @@All notable changes to `@kiln/engine`. This is a **private** package; semver is trackedfor the consuming app's lockfile + tarball provenance, not public npm releases.+## [Unreleased]++### Added — scene composer (`@kiln/engine/composer`, `/composer/agent`)+A THREE-free scene-composition surface: a `PlacementModel` single-source-of-truth with a+small scene DSL (`scene()`/`asset()`), terrain-agnostic hierarchy-aware layout, an overlap+validator (MTV resolution), a ground sampler, and a `SceneRenderPort`; plus the Strands+agent loop (`runKilnComposer`, 14 `scene_*` tools) isolated under `/composer/agent` so the+SDK never leaks into the pure core. Transcript compaction collapses to `serialize(model)`+past a threshold (the externalized model IS the state), with a soft step-cap backstop and a+`scene_layout`-first prompt so large many-asset scenes converge. ~990 lines of new tests.++> Studio consumes this via the committed `@kiln/engine` 0.1.0 tarball (the surface landed+> without a version bump); bump to 0.2.0 + re-`sync:engine` when a release is cut.+## [0.1.0] — 2026-06-23Initial extraction of the Kiln 3D engine from `pixel-forge/packages/core/src/kiln`diff --git a/README.md b/README.mdindex 5326d214..d35505cf 100644--- a/README.md+++ b/README.md@@ -4,14 +4,18 @@ The **Kiln 3D engine** — a sentence in, a game-ready GLB out. A model-agnosticStrands agent loop drives a tool surface (`list → validate → render → screenshot →finalize`) over a primitive/CSG library, a deterministic pure-CPU rasterizer thatlets the model *see* its asset, and post-bake grading (instanceability, palette-consolidation). Plus a Bradley-Terry pairwise **arena** for ranking.+consolidation). Plus a Bradley-Terry pairwise **arena** for ranking. A scene **composer** (a THREE-free+placement core — layout, overlap resolution, a small scene DSL — plus its own Strands+agent loop) arranges many finished assets into one coherent, overlap-free scene.Extracted from the `pixel-forge` monorepo (`packages/core/src/kiln`) as a lean,self-contained package: **no Playwright, no 2D image SDKs, no FBX/imposter/LODpipeline** — just the text-to-GLB engine Kiln Studio runs in production.> **Private package.** Not published to npm. Consumed by the `kiln-studio` app via a-> path-link locally and a committed tarball in CI/Docker. See `../plan/`.+> **committed tarball** (`agent-runtime/vendor/kiln-engine.tgz`, refreshed by `sync:engine`)+> for local dev, CI, and both Docker images — NOT a path-link (`file:../kiln` hits a Windows+> `EPERM` copying native deps). See `../plan/`.## Install@@ -36,6 +40,7 @@ The engine ships TypeScript source (Bun/tsx transpile on the fly); consume by su| `@kiln/engine/primitives` | the 70+ primitive/helper registry || `@kiln/engine/prompt`, `/prompt-api`, `/list-primitives` | system-prompt generation + catalog || `@kiln/engine/metrics`, `/inspect` | instanceability grade + scene-structure analysis |+| `@kiln/engine/composer`, `/composer/agent` | THREE-free scene-composition core (placement model, layout, overlap, DSL) + its Strands agent loop (`runKilnComposer`) |## Dependencies