Agents, guards & HTTP servers.
The biggest release since v0.1.0. Four new compiler-enforced primitives — agent, guard, server, and first-class fn — bring safe AI agents, typed HTTP, and policy enforcement into the language core. Structured LLM output ships with compile-time schema extraction.
- Four new primitives —
agentfor tool-using LLM loops,guardfor pre-flight policy checks,serverfor declarative HTTP,fnas a first-class keyword. - Structured LLM output — annotate a struct, get a typed value. The compiler lifts JSON Schema out of your types and deserializes responses automatically.
- Three new stdlib packages —
std/server,std/supervisor,std/memory— bringing the total to 15. - 826 tests passing across 11 internal packages, up from 626.
- VS Code extension with syntax highlighting for
.cleatfiles, published to the marketplace.
agentprimitive with declarative model, tools, max_turns, and system prompt 1a22e30guardprimitive with Allow / Deny / Transform return types and composition 3f8b91cserverprimitive — declarative HTTP routes with typed handlers and middleware 7e42a0dfnpromoted to first-class keyword with explicit effect declarations b09f112- Compile-time JSON Schema extraction from struct types for structured LLM output c44ea80
@descriptionannotation for steering LLM field generation d91c7a2- Correlation IDs propagated automatically across tool, agent, and chain boundaries f1028bb
std/serverstdlib package with JSON request/response helpers 52c6f89std/supervisorfor agent retry, timeout, tracing, and execution summaries a704d13std/memorynamespaced KV store with context injection into agents 88e2049- VS Code extension with syntax highlighting, published as
cleat-lang.cleat-vscode60a1bef - Six new example programs covering agents, guards, and HTTP servers ff3e812