How romario-francisco-soares/craft-anything works
Craft Anything is a Rust clean-room reverse-engineering and recreation product, exposed through desktop, CLI, MCP, and a limited in-browser file viewer. Its documented main workflow is Study → Build → Check → Ready: a user selects a target and desired result, inspection tools gather observations, a coding agent builds a separate project, and checks guide refinement. The graph preserves the major inspection, evidence, agent, and interface branches. Arrows cite README claims or visible source references; dashed links with null evidence mark connections whose implementation was not sampled.
Main entry points: investigation_tools.rs Inspection tools · tool.rs Tool engine · session.rs Session state · mod.rs Rebuild workflow
Components 21
User interfaces
- Desktop app
apps/craft-anything/src/main.rs - Workbench UI
crates/ui-egui/src/engine_ui.rs - CLI
apps/craft-anything-cli/src/main.rs - Browser viewer
apps/craft-anything-web/src/viewer.rs - MCP server
crates/mcp/src/lib.rs
Project orchestration
- Tool engine
crates/engine/src/tool.rs - Session state
crates/engine/src/session.rs - Project store
crates/engine/src/project.rs - Target handling
crates/engine/src/target.rs - Clean-room policy
crates/engine/src/clean_room.rs
Study and inspection
- Inspection tools
crates/engine/src/tools/investigation_tools.rs - File formats
crates/formats/src/pe.rs - Program analysis
crates/disasm/src/program.rs - JavaScript analysis
crates/js/src/facts.rs - Evidence ledger
crates/evidence/src/lib.rs
Build and validation
- Rebuild workflow
crates/ai/src/rebuild/mod.rs - Comparison analysis
crates/analysis/src/native.rs
AI and integrations
- Coding agents
crates/ai/src/cli_agents/mod.rs - AI hub
crates/ai/src/agent.rs - Inspection engines
crates/engines/src/lib.rs
Other components
- User
Connections 25
- User → Desktop app: starts work
README.md - User → CLI: runs commands
README.md - User → Browser viewer: opens file
README.md - User → MCP server: connects agent
README.md - Desktop app → Workbench UI: presents workflow
- Desktop app → Tool engine: starts engine
apps/craft-anything/src/main.rs - CLI → Tool engine: dispatches tools
- MCP server → Tool engine: exposes tools
README.md - Browser viewer → File formats: triages files
- Tool engine → Session state: uses session
crates/engine/src/tool.rs - Session state → Target handling: opens targets
crates/engine/src/session.rs - Session state → Project store: persists evidence
crates/engine/src/session.rs - Session state → Clean-room policy: applies policy
crates/engine/src/session.rs - Tool engine → Inspection tools: dispatches inspection
- Inspection tools → File formats: parses files
- Inspection tools → Program analysis: analyzes programs
- Inspection tools → JavaScript analysis: inspects scripts
- Inspection tools → Evidence ledger: records findings
- User → Rebuild workflow: requests recreation
README.md - Rebuild workflow → Coding agents: asks agent build
README.md - Coding agents → Project store: writes project
- Rebuild workflow → Comparison analysis: checks result
README.md - Comparison analysis → Rebuild workflow: guides refinement
README.md - Coding agents → AI hub: uses AI backend
- Inspection tools → Inspection engines: uses engines