agent-sdk-hsm — a TypeScript tool-orchestration server built on the Agent SDK and the Model Context Protocol. A hierarchical state machine (HSM) runtime governs which tools an LLM agent may call and in what order; a plan builder turns a goal into an ordered, typed tool plan; a script generator emits the resulting shell script for review before anything runs. Tool registry is zod-typed and grouped by domain: build, git, filesystem, network, test. Source: https://github.com/ludoplex/agent-sdk-hsm