lugh-lang
lugh-lang is an open-source programming language and safety guardrail tool for AI agents. It provides the Lugh language, which lets agent programs declare directly in code which resources are accessible, what budget can be spent, and when human approval is required, with the runtime enforcing these policies on every operation. It also provides guard mode: with a single command (npx lugh-lang protect), it adds a unified policy layer to existing MCP servers in clients such as Claude Code, Cursor, and VS Code, so that read-type calls execute directly, risky calls ask the user first, delete-type calls never reach the server, and every decision is logged. The project also includes a browser Playground, a VS Code extension, an MCP server, a standard library, templates, and examples, and is open-sourced under the MIT license.