lmscript

lmscript logo

Overview

lmscript is an experimental scripting language and CLI for file operations, structured data, subprocesses, and agent workflows.

It is not a general-purpose application language: there are no classes, closures or packages from a registry, and scripts run with your full local permissions (no sandbox).

Install

lmscript is part of the @lmctl-ai/lmctl npm package (which also installs lmctl). It needs Node.js 24.15 or later on Linux, macOS or Windows.

npm install -g @lmctl-ai/lmctl
lmscript --version
lmscript 0.2.348

A first look

names = ["Ada", "Grace"];
for (n in names) {
  println(f"Hello, {n}!");
}

Documentation

Tutorial
Fourteen short steps from hello world to modules, data blocks, commands, checks and dry runs, all with real output.
User guide
The language and CLI reference: syntax, values, control flow, functions, modules, data blocks, commands, the standard library and the experimental _dsl_ blocks.
Skill
What an LLM agent needs to write correct lmscript: idioms, pitfalls, forbidden forms and the verification loop.