Skip to content
v0.5.18

Installation

Two ways in. Use the package if you’re using LemmaScript; take the kit if you’re changing it.

The standard setup: the lsc toolchain from npm, plus the skills that teach your agent to drive it.

  • Node.js ≥ 18
  • Dafny ≥ 4.x — the prover that does the checking
  • git
Terminal window
node -v # ≥ 18
dafny --version # ≥ 4.x

For the optional Lean backend you’ll also need Lean 4 (managed via elan/lake).

One global install puts lsc — and companions like lsc claimcheck — on your PATH:

Terminal window
npm install -g lemmascript

Mount the lemmascript-skills repo at your agent’s skills directory — e.g. .claude/skills for Claude Code. Your agent picks them up and drives the whole loop itself: contracts, checks, iteration.

Terminal window
git clone https://github.com/midspiral/lemmascript-skills <your/skills/dir>
Terminal window
lsc check --backend=dafny path/to/file.ts

Working on the toolchain itself, or want the tools and skills pinned together? lemmascript-kit bundles the toolchain source and the skills as git submodules — one clone, one setup script, skills already in place at .claude/skills/.

Terminal window
git clone --recurse-submodules https://github.com/midspiral/lemmascript-kit.git
cd lemmascript-kit
./setup.sh

Run the same commands straight out of the source tree (the skills write the CLI as npx lsc; in the kit, substitute this form or npm link the package):

Terminal window
npx tsx LemmaScript/tools/src/lsc.ts check --backend=dafny path/to/file.ts