img2threejs — Code-Only 3D Reconstruction

Rebuild objects from a reference image as code-only, procedural, quality-gated, animation-ready Three.js models, token-efficiently.

Stars
★ 22k
Last updated
28d ago v2.0.1
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
Agent plugin / skillCLI
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.10+Node.js (for Three.js runtime)Shell / CLILocal filesystem
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.

  1. Game developers needing to quickly prototype or reconstruct weapons, props, or hard-surface objects as animation-ready Three.js models directly in Claude Code
  2. 3D artists who prefer code-centric pipelines for version control and fine-grained control over geometry and materials
  3. Developers using Codex or OpenCode who want a consistent image-to-3D skill across different coding agents
  4. Creators reconstructing CS2 weapons (like Glock-18, M9 Bayonet) with strict structural review gates for fidelity
  5. 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/img2threejs object-sculpt-spec.json .img2threejs/state.json spec.json
Runtime
Python 3.10+

How do you install or deploy this agent?

  1. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

What are this agent's strengths and limitations?

Pros
  • 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
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Some gaps
73/ 100 5-point scale 3.7 / 5
Trust 16/29
Reliability 9/14
Adaptability 15/18
Convention 14/18
Effectiveness 12/13
Verifiability 7/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

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.

Reliability9 / 14 · 3.2/5

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.

Adaptability15 / 18 · 4.2/5

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.

Convention14 / 18 · 3.9/5

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.

Effectiveness12 / 13 · 4.6/5

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.

Verifiability7 / 8 · 4.4/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 0c0c49bc168e
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/img2threejs.svg)](https://followagents.com/en/agents/img2threejs)
<a href="https://followagents.com/en/agents/img2threejs"><img src="https://followagents.com/badge/img2threejs.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v2.0.1
    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 ↗
  2. 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 ↗
  3. 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?
No. All scripts are pure Python stdlib and do not rely on GPU. Rendering is done by the host's browser Three.js; optional reference-fidelity tools like SAM2 or Depth Anything V2 may use local models but no GPU is specified.
How is token cost optimized?
By moving mechanical tasks (validation, gating, spec authoring) to deterministic Python scripts, the model only judges a single side-by-side comparison sheet per pass. Each pass generates only the currently unlocked part, avoiding regeneration of the full model.
Is the strict-quality gate mandatory?
Yes, by default. It blocks generation of shallow specs. You can bypass with --allow-nonstrict, but only for legacy test fixtures, not production output.
How does it handle multi-view or hidden details?
A single image cannot guarantee hidden info. The skill states when output is approximate, stylized, or low-poly, and infers unseen faces by mirroring visible ones. It can use visual-hull multi-view carving if provided, but won't invent unobserved detail.
Can I integrate it into a custom agent host?
The skill is designed to be agent-agnostic; integration requires adapting the visual input mechanism. The documentation mentions Claude Code, Codex, and OpenCode, but the core skill can be adapted to other hosts with some configuration changes.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts