A
statelyai/agent★ 511 · TypeScript
An XState-based TypeScript SDK for constraining and replaying LLM workflows
MIT · Commercial Friendlyv1.1.6
Side-by-side 2026 comparison in Agents & Frameworks: ruvnet/ruflo leads both total GitHub adoption (★ 82.8k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.
An XState-based TypeScript SDK for constraining and replaying LLM workflows
A TypeScript orchestration layer for coding agents, with shared memory and MCP
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | statelyai/agent | ruvnet/ruflo |
|---|---|---|
| Total GitHub Stars | ★ 511 | ★ 82,818 |
| 24h / 7d Velocity | +0 / +3 | +39 / +342 |
| 7-Day Trend Curve | ||
| Engineering Health | A · 78/100 | A+ · 98/100 |
| Deployment Signals | API | MCP · CLI · Self-Hosted |
| Primary Language | TypeScript | TypeScript |
| Commercial License | MIT · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v1.1.6 | v3.82.0 |
| Best For | TypeScript teams building approval-gated support or operations workflows that need explicit business rules, resumable pauses, and auditable replay, or migrating an existing agent in phases with parity checks | Engineering teams already using Claude Code or Codex that repeatedly split implementation, testing, and documentation across agents and review the resulting diffs and test evidence |
agent.decide receives allowedEvents; XState guards still decide whether a proposed transition can fire.canReach can test whether a sentinel state is reachable without a model API key; check complete before treating non-reachability as proof.replay reconstructs state from recorded events without another model call.wrapWorkflow captures a baseline, while checkParity compares behavior as phases move into the machine.pnpm add @statelyai/agent@2.0.0-alpha.41 xstate@6.0.0-beta.2 zodnpx ruflo@latest initSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy