Give Your Agent a Dedicated Import API: Fixing Repeated three.js/gltf Load Failures

msfeldstein · x · 2026-11-06

msfeldstein shares a practical fix for coding agents repeatedly failing on three.js/gltf imports: instead of tweaking prompts, expose a dedicated api.loadGLTF() and tighten the failure feedback loop.

Concrete case: a mod imported three.js addons from a CDN using bare 'three' imports that can't resolve from a blob URL; PR #132 rejects those imports and sends them back for repair. Transferable lesson — design dedicated APIs and fast failure loops for agents rather than hoping they guess right.

Original post →

More from coding & agent

coding & agent channel →