Lugh

v0.7.4
io.github.Ashutosh3142857/lugh Checked 3 days ago Published 8 days ago

Write, 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.

ParameterTypeDescription
code *stringA 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.

ParameterTypeDescription
code *stringA complete Lugh program, starting with `agent <Name>`.
approvalsstringHow 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.

ParameterTypeDescription
code *stringA 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.