Lugh
v0.7.4Write, check and dry-run Lugh agent programs, with policy, budgets and approvals enforced.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lugh_reference Lugh language reference
Syntax and semantics of Lugh, a programming language for AI agents where permissions (policy), budgets and human approval are part of the code. Read this before writing a program.
lugh_check Check a Lugh program
Compile a Lugh program without running it. Reports syntax errors, unknown functions and adapters, and counts goals, tests, routes and pages.
| Parameter | Type | Description |
|---|---|---|
code * | string | A complete Lugh program, starting with `agent <Name>`. |
lugh_run Dry-run a Lugh program in the sandbox
Run a Lugh program's goals in a sandbox. fs, http, mcp and shell act on a simulated world (see lugh_sandbox), but every call passes the real policy gate and budgets. Returns the output and a policy log of every action and its decision (allowed, approved, declined, denied). Use it to show a person exactly what an agent would do before it runs for real.
| Parameter | Type | Description |
|---|---|---|
code * | string | A complete Lugh program, starting with `agent <Name>`. |
approvals | string | How to answer `ask human` and policy approvals. Default approve. |
lugh_test Run a Lugh program's tests
Run the `test` blocks of a Lugh program in the sandbox and report passes and failures.
| Parameter | Type | Description |
|---|---|---|
code * | string | A complete Lugh program, starting with `agent <Name>`. |
lugh_sandbox Describe the sandbox
List the simulated files, HTTP endpoints, MCP servers (with each tool's effect) and shell commands that programs run by lugh_run can use.