img2threejs — Code-Only 3D Reconstruction
Rebuild objects from a reference image as code-only, procedural, quality-gated, animation-ready Three.js models, token-efficiently.
- Source repo
- img2threejs/img2threejs
- Stars
- ★ 22k
- Last updated
- 28d ago v2.0.1
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 73/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- Game developers needing to quickly prototype or reconstruct weapons, props, or hard-surface objects as animation-ready Three.js models directly in Claude Code
- Not a fit if
- Teams needing exact hidden geometry or photoreal character likeness
- Users who want a GUI instead of a CLI workflow
- Environments that cannot run Python 3.10+ scripts
- Website
- img2threejs.io ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-05latest release v2.0.1 (2026-11-05)+76.6 ★/day over 7 days
- Source review
- 73/100 · Some gaps
What does this agent do, and when should you use it?
img2threejs is an agent skill that reconstructs a Three.js model from a single reference image using procedural generation, not photogrammetry or mesh extraction. It follows a staged sculpting pipeline (blockout → structural → form → material → surface → lighting → interaction → optimization) where each pass is gated by deterministic Python scripts (e.g., validate_sculpt_spec.py, material_gate.py) enforcing strict quality. The output is a TypeScript factory function returning a THREE.Group with runtime hierarchy (pivots, sockets, colliders) for animation readiness. It is agent-agnostic, running under Claude Code, Codex, or OpenCode, and leverages the host's visual capabilities for review. The design emphasizes token efficiency: mechanical tasks are delegated to Python stdlib scripts, reserving model tokens for visual judgment and code generation. Optional reference-fidelity tooling (SAM2, Depth Anything V2, MediaPipe) can be integrated without adding runtime dependencies.
The skill takes an image of an object as input and runs Python scripts (probe_image.py, new_pre_spec_assessment.py, new_sculpt_spec.py) to analyze image metadata, classify the subject, enumerate a detail inventory, and produce an ObjectSculptSpec JSON. Then generate_threejs_factory.py emits TypeScript factory code (createObjectNameModel) for the currently unlocked build pass, applying a strict-quality gate to block generation if the spec is too shallow. After each pass, make_comparison_sheet.py packages a reference-vs-render comparison sheet for the agent to visually judge pass/fail, and append_review.py records the outcome. It supports resumable workflows (forge/state.py, forge/next.py), CS2 weapon-specific review gates (cs2_review.py), and optional camera-matching, de-lighting, and texture projection (solve_camera_pose.py, delight_albedo.py, bake_projected_texture.py). The final artifacts are diffable TypeScript and JSON spec, not binary mesh files.
- Game developers needing to quickly prototype or reconstruct weapons, props, or hard-surface objects as animation-ready Three.js models directly in Claude Code
- 3D artists who prefer code-centric pipelines for version control and fine-grained control over geometry and materials
- Developers using Codex or OpenCode who want a consistent image-to-3D skill across different coding agents
- Creators reconstructing CS2 weapons (like Glock-18, M9 Bayonet) with strict structural review gates for fidelity
- Hobbyists and indie developers looking to experiment with image-to-3D conversion without large token costs
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Config files
~/.claude/skills/img2threejs~/.codex/skills/img2threejsobject-sculpt-spec.json.img2threejs/state.jsonspec.json- Runtime
- Python 3.10+
How do you install or deploy this agent?
- Clone the repository into your skills directory:
git clone https://github.com/img2threejs/img2threejs.git ~/.claude/skills/img2threejs. 2. If using multiple hosts, keep a single checkout and create symlinks from each host's skills directory to that checkout (e.g., ~/.codex/skills/img2threejs). 3. Requires Python 3.10+ (stdlib only, no third-party dependencies).
How do you use this agent?
In Claude Code, attach or point to an object image and run: /img2threejs Rebuild this object as a Three.js model, keep the proportions, angles, and colours. The skill classifies the subject, runs the detail inventory, and guides you through each pass with side-by-side comparisons until the render matches. For more control, add directives such as 'Fidelity', 'Materials', 'Runtime', or 'Gates'. For multi-session reconstruction, first initialize state with python3 forge/state.py init --reference <image> --profile character --spec object-sculpt-spec.json, then resume with python3 forge/next.py --state .img2threejs/state.json. Scripts can be run directly, e.g., python3 forge/stage2_spec/validate_sculpt_spec.py spec.json --strict-quality.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
What are this agent's strengths and limitations?
- Token-efficient: delegates mechanical tasks to Python stdlib scripts, reserving model tokens for visual judgment and code generation
- Output is diffable TypeScript and JSON spec, enabling version control and code review rather than binary mesh files
- Strict quality gates (e.g., strict-quality, material gate) ensure spec depth, with fail-closed behavior
- Agent-agnostic: supports multiple hosts (Claude Code, Codex, OpenCode) with easy symlinking
- Resumable workflow via forge/state.py, suitable for long multi-session reconstructions
- Specialized pipelines for characters and CS2 weapons with honest limitation disclosure
- Single reference image cannot reveal hidden geometry or guarantee exact likeness; expects approximate results
- Character reconstructions are stylized, not photorealistic likenesses
- Requires Python 3.10+ environment and running scripts, though with zero third-party dependencies
- Primarily CLI-based, no GUI; visualization depends on host's browser tooling
- Specialized gates for specific domains (e.g., CS2) may add complexity and learning curve
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| img2threejs — Code-Only 3D Reconstruction This agent | 73 · Some gaps | Agent plugin / skillFree + model costs | ★ 22k | 28d ago | Python | Codex · Claude Code |
| Archimedes Patent Workspace | 76 · Good | — | ★ 122 | 1mo ago | TypeScript | Codex · Claude Code |
| three.ws 3D Agent Platform | 50 · Major gaps | Web appFree | ★ 289 | today | JavaScript | Codex · Claude Code · Claude.ai |
| Ordewell | 87 · Good | CLIFree + model costs | ★ 217 | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The install guide provides dry-run, per-host operations, stops on unmanaged links, and discloses that the harness creates directories, edits Claude configuration, and links a command. Its update procedure also stops on permission or network blocks, showing some control over changes. Plugin installation still writes to the machine and is framed as opt-in for a requested domain. The materials do not explain whether images are uploaded by the host model or tools, and provide no dependency vulnerability audit evidence, so sensitive-data and dependency-security handling is only partial. The Apache license is clear, but publisher identity and maintenance responsibility are not established by this packet.
README, SKILL, and install documentation describe a staged reconstruction, state gate, and blocking failure path; examples and script names provide some corroboration. README and SKILL identify version 2.0.1 while package.json identifies the installer CLI as 0.2.0; these may be separate components, but their version relationship is not very clear. The supported setup is explicit: Node 18+, Python 3.10+, Git, and a host with image capabilities. Missing plugins are supposed to fail loudly rather than downgrade silently. The install guide documents errors and recovery steps, though no execution result is available here.
The documentation covers general objects, characters, CS2, animation, material studies, and multi-view cases, and states limits for hidden regions, approximation, and confidence from a single image. The skill gives clear triggers and boundaries between built-in and plugin capabilities. However, vision and browser tools come from the host environment, and platform support is limited, so environment fit is not complete out of the box.
The skill, README, architecture/install/plugin documentation, scripts, and contribution entry points form a clear structure. Installation, updates, removal, troubleshooting, prompt examples, and licensing are documented well. It names single-image limits, lack of Windows support, and showcase-dependent checks, but the relationship between the skill version and npm CLI version is unclear, and the provided material does not include enough changelog detail to assess release rationale. The packet does not establish a maintainer or ongoing support commitment.
The output contract is concrete: a TypeScript THREE.Group factory with hierarchy, pivots, sockets, and colliders, produced through staged specification and render review. The code-only approach rather than downloaded meshes is a clear source of value. Scripts support validation from image probing through factory generation. Effort can be constrained with low-effort settings and by skipping presentation work, but a full visual loop depends on model vision, screenshot tools, and host setup, so its costs are only partly described.
The main README claims are traceable to the skill workflow, named scripts, test support files, and installation documentation. CI configuration lists Python and CLI checks, but this static review does not establish that they were run. Sources corroborate the core workflow, although some claims depend on files and plugins outside the provided sample, so full corroboration is not justified. The skill distinguishes inferred regions, confidence, approximate output, and capability limits, reducing the risk of presenting inference as fact.
- Reconstruction depends on host-provided image understanding and possibly browser or screenshot tools; check the host tools' data handling before supplying sensitive reference images.
- The full visual quality gate requires actual screenshots and comparisons; this static packet cannot establish visual correctness or animation quality.
- The harness installer writes under the user directory, edits Claude configuration, and creates a command link; review each plugin's documentation and effects before installing it.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
<!-- Release notes generated using configuration in .github/release.yml at v2.0.1 --> What's Changed Other Changes * docs(skill): document the img2 harness in SKILL.md by @kokorolx in https://github.com/img2threejs/img2threejs/pull/132 * feat: img2threejs CLI package (npx img2threejs install) by @kokorolx in https://github.com/img2threejs/img2threejs/pull/146 * ci: add docs-quality gates and stricter PR template by @kokorolx in https://github.com/img2threejs/img2threejs/pull/173 …View on GitHub ↗ -
v2.0.0 2.0.0: The Plugin Update
Release notes excerpt
The Plugin Update. The plugin ecosystem — domain registry, img2 harness, plugin-served domains — ships as its own major, pulled forward from the original Procedural World bundle. Breaking - animated-character is served by the installed [plugin-character](https://github.com/img2threejs/plugin-character) (img2 add img2threejs/plugin-character, harness >= 0.2.3). The in-repo domain module is removed; without the plugin the profile fails loud naming what is available, and an in-flight workspace is refused while the provider is absent, resuming unchanged on reinstall. …View on GitHub ↗ -
v1.5.2 1.5.2: Support VFX / Animation for character
Release notes excerpt
Changelog [1.5.2] — 2026-09-03 Theme: a clip that exists is not a clip that plays, and rigging may only add. Rigging failures in 1.5.1 were total and silent: clips held actions, the mixer held state, buttons dispatched, and nothing moved. This release turns the measured repair pipeline into executable modules, wires it into the workflow, and freezes the source geometry so binding cannot silently damage the model. Workflow integration Added - animated-character workflow profile (forge/_shared/workflow_state.py RIG_STEPS, …View on GitHub ↗
FAQ
Does this skill require a GPU or special hardware?
How is token cost optimized?
Is the strict-quality gate mandatory?
How does it handle multi-view or hidden details?
Can I integrate it into a custom agent host?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.