stratum

smartmemory/stratum
★ 1 stars Python AI/LLM Updated today
State machine dispatch server for AI agent workflows. Typed YAML specs, MCP server (stratum-mcp), and Python library (stratum-py) — postconditions, retries, gates, and auditable execution traces for Claude Code and Codex.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "stratum": {
      "command": "uvx",
      "args": [
        "stratum"
      ]
    }
  }
}

Or install with pip: pip install stratum

README Excerpt

**State machine dispatch server for AI agent workflows.** Stratum gives AI coding agents (Claude Code, Codex, etc.) a formal execution model. Instead of improvising a plan and retrying blindly, the agent writes a typed spec, the server tracks state, enforces postconditions, and returns structured failure context on retry. Every step produces an auditable trace record.

Tools (20)

BudgetExceededConsensusFailureConvergenceFailureHITLTimeoutErrorParseFailurePostToolUseFailurePostconditionFailedPreconditionFailedSessionStartStabilityAssertionErrorStopStratumCompileErrorboolensurefile_containsfile_existsflagflow_idgateinfer

Topics

ai-agentsclaude-codellmmcp-serverpythonstate-machineworkflow-orchestration