AgentRun is a domain-specific language and runtime for turning existing agents and tools into repeatable, inspectable workflows. It wires scripted tools, Jev-typed decisions, and agent calls into JSON or TypeScript-defined flows with Zod-backed schemas, runtime path validation, and features for nesting, parallel mapping, and bounded loops. A canonical support workflow demonstrates its control logic: search for an answer, use Jev to judge fit with a confidence threshold (example uses >=0.8), allow one agent investigation attempt if needed, re-check with Jev, then either return the answer or escalate for review. Workflows include deadlines, typed inputs/outputs inferred by a TypeScript builder, and an interpreter that enforces state paths during execution.
Integration is via npm packages (@parcha/agentrun-dsl, @parcha/agentrun-jev, @parcha/agentrun-pi) and adapter hooks (runEffect, runNode, createJevRunner). Quickstarts require Node 22.19+; demos run without live APIs while Jev live calls require a TYPESAFE_API_KEY. A Pi extension provides in-chat build, run, save/load, and status commands. The project is beta (0.1.0-beta.4), Apache-2.0 licensed, and includes examples and tests. Important limitations are explicit: code nodes execute JavaScript with process privileges (host sandboxing needed for untrusted authors) and typed decisions/validated outputs do not guarantee factual correctness.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.