← all repositories

statelyai/agent

A TypeScript library for building LLM agents whose control flow is defined as XState state machines.

★500 stars TypeScript AgentsLLMOps · Eval
Collecting fresh signals — velocity needs a few days of history.
star history

Stately Agent is a TypeScript library that adds model requests and decisions to XState so agent logic can be expressed as state machines. The state machine owns control flow and determines which events are legal, while the model only proposes events. It supports verifying invariants without model calls, resuming and replaying runs from an event log, comparing recorded runs for parity, and streaming runs to the Stately inspector for observability.

Frequently asked

What is statelyai/agent?
A TypeScript library for building LLM agents whose control flow is defined as XState state machines.
Is agent open source?
Yes — statelyai/agent is open source, released under the MIT license.
What language is agent written in?
statelyai/agent is primarily written in TypeScript.
How popular is agent?
statelyai/agent has 500 stars on GitHub.
Where can I find agent?
statelyai/agent is on GitHub at https://github.com/statelyai/agent.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.