Skip to content
UsecaseBoard
← All use cases
hackernewsAgent-Harness

Statewright: state-machine guardrails so coding agents can't skip plan→test

At a glance

Show HN: Statewright's Rust engine enforces plan/implement/test states for Claude Code (and other CLIs) via MCP hooks—wrong tools are blocked structurally, shrinking death spirals for both small and frontier models. This workflow is listed under Agent-Harness, State-Machines, Claude-Code, Guardrails, MCP.

Agents / tools
Statewright, Claude Code, MCP

SourceBuilding a tool for these workflows? See weekly rates.

Save ideas in this browser. Upvotes count across the board.

Prompt excerpt

Install Statewright plugin for Claude Code, then start the bugfix workflow. Stay in planning (read-only) until READY; only then unlock edits; testing state may run pytest but not destructive shell. If a tool is blocked, follow the allowed-tools error and transition with a rationale.

Sponsored

CodeBuddy

Tencent Cloud AI coding assistant for IDE and CLI.

Try CodeBuddy ↗
Explore all →