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: langchain-ai/langchain leads both total GitHub adoption (★ 150.4k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.
An XState-based TypeScript SDK for constraining and replaying LLM workflows
Modular Python framework for building agents across model providers
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | statelyai/agent | langchain-ai/langchain |
|---|---|---|
| Total GitHub Stars | ★ 511 | ★ 150,373 |
| 24h / 7d Velocity | +0 / +3 | +23 / +290 |
| 7-Day Trend Curve | ||
| Engineering Health | A · 78/100 | A+ · 100/100 |
| Deployment Signals | API | MCP |
| Primary Language | TypeScript | Python |
| Commercial License | MIT · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v1.1.6 | langchain-core==1.9.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 | Python teams comparing multiple model providers or sharing retrieval and tool integrations across agent applications, with the option to add lower-level workflow control in LangGraph |
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 zodinit_chat_model accepts openai:gpt-5.5 in the quickstart, and the resulting model is called with invoke.langchain-core==1.8.5 fixes reuse of the provider message ID on later stream chunks and clarifies the supported streaming event APIs.uv add langchainSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy