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

Building 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.
Explore all →
webClaude-Code

Claude Code manages Home Assistant automations via MCP

Adam keeps HA automations in git; Claude Code uses an MCP server to search entities, read traces, edit YAML, scp to the hub, reload, and commit—fixing a noisy camera automation in under two minutes.

Claude CodeHome AssistantMCP
Source ↗
githubMCP

subagent-reuse MCP: stop Claude Code subagents re-reading the same files

Show HN: `npx subagent-reuse --setup` adds an MCP that scans ~/.claude/projects/, builds SHA-256 Merkle trees of files each subagent already read/modified, and route_task decides REUSE vs CREATE_NEW before spawn—structural overlap only, no embeddings; ~1k LOC JS + 52 tests.

subagent-reuseClaude CodeMCP
Source ↗
producthuman-in-the-loop

Reright: MCP review queue so agents send only text you approve

MCP server plus local hooks route agent-written commits, PR text, emails and support replies into one editable queue; you rewrite and approve, then the agent sends exactly your version—Claude Code tested; Codex/Gemini/Copilot/Cursor installer-configured; free tier then paid.

RerightMCPClaude Code+4
Source ↗