X-Reason

Convert natural language problem descriptions into executable XState machines with AI-driven task decomposition

Dynamic State Machine Generation
Natural Language Input
Task Decomposition
XState Generation
Visual Debugging

How It Works

X-Reason transforms natural language problem descriptions into executable XState machines through AI-powered task decomposition. Simply describe what you want to build, and the system generates a complete state machine with error handling, transitions, and context management.

Technical Process

1

Problem Analysis

AI analyzes your problem description and identifies key components, requirements, and constraints.

2

Task Decomposition

Complex problems are broken into atomic tasks with clear inputs/outputs and dependencies.

3

State Machine Generation

Generates production-ready XState v5 machines with error handling, parallel execution, and persistence support.

4

Built-in Visualization

Every generated machine includes a floating visualization widget for real-time debugging and state inspection.

Real-time State
Context Inspection
No External Tools

Architecture

AI Reasoning Engine

Vercel AI Gateway with OIDC-only access to a small OpenAI and Gemini model allowlist

State Machines

XState v5 with pause, resume, and persistence

Local State

Browser-local saved examples for demo iteration without server-side user data storage

Domain Examples

Chemical Engineering (Chemli)
Product engineering workflow with formula manipulation and testing phases
User Registration (Regie)
Multi-step registration flow with validation, plan selection, and confirmation