Statewright
github.com · Open source · Active
Visual state machine guardrails that keep AI agents on track
- AI & agents
- Open source
- JavaScript
- Day-7 check
- Day-30 check
- state machine
- agent
- guardrails
- workflow
- agent state machine
- workflow guardrails
- claude code plugin
- agent tool restrictions
- ai agent workflow
- Stars
- 512
- Forks
- 23
- Open issues
- 0
- Last commit
- Releases
- 21
- Found
- 6 months ago
GitHub figures as of . They are context, not a ranking.
Statewright is a JavaScript project that uses state machines to guide AI agents through defined steps, making their behavior more predictable. The author's post describes testing smaller models on software engineering tasks under these constraints, which suits developers who want more reliable agent workflows.
Repository description on GitHub: “State machine guardrails for AI agents”
What it does
- Defines tools and checks for each phase of agent work
- Enforces tool access on intercepted paths in supported hosts
- Works with Claude Code, Codex, Cursor, OpenCode, Pi and OMX
- Visual workflow editor
- Custom MCP host support
Good for
- Allow reading during planning and editing during implementation
- Block edits until review and tests pass in an agent workflow
- Run a Claude Code or Codex agent under a state machine
Suits: Developers wanting predictable multi-step agent workflows.
Worth knowing: Tool enforcement and model routing depend on the integration used
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw Statewright on , when azurewraith posted it to Show HN. The oldest published release on GitHub is v1, dated . Its first tagged release came 8 days after it was found. 21 releases have been published in total; the latest is claude-v0.4.1 ().
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 126 points, 59 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 2 releases shipped
- 2 releases in the first 30 days: v1 (20 May 2026), v1.1.0 (1 Jun 2026)
- Show HN discussion at check time: 126 points, 59 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: statewright/statewright
- Found: azurewraith posted it to Show HN. Show HN
- Release v1
- Release claude-v0.3.7
- Release claude-v0.3.8
- Release codex-v0.3.8
- Release claude-v0.4.0
- Release codex-v0.4.0
- Release claude-v0.4.1
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 21 releases. All releases on GitHub
Quick answers
- When was Statewright released?
- Its first tagged release on GitHub is dated 20 May 2026. Kip found it on Show HN on 12 May 2026.
- Is Statewright open source?
- Its source is public on GitHub at statewright/statewright; check the repository for licence terms.
- What does Statewright run on?
- Command line.
- Is Statewright free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is Statewright still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | statewright/statewright REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-48108778. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.