laughing-hermit

Lengua — AI skill for Claude Code

AI community

An AI language: you say what a program should do, your agent compiles it to WebAssembly, and lengua tests and proves that code and runs it with only what your idea grants.

How to install Lengua

This entry records only its repository, not the path inside it, so there is no exact command to give. Open laughing-hermit/lengua and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Lengua does

An AI language: you say what a program should do, your agent compiles it to WebAssembly, and lengua tests and proves that code and runs it with only what your idea grants. An Agent Plugin: two skills and a Rust MCP server. A work in progress.

Alternatives in AI

  • Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
  • Browserwing — BrowserWing turns your browser actions into MCP commands Or Claude Skill, allowing AI agents to control browse 1.2k ★
  • LLM Wiki Compiler — Claude Code plugin that compiles markdown knowledge files into a topic-based wiki 224 ★

README

lengua

lengua is an AI language. You say what a program should do, in your own words. Your AI agent writes that down as an idea file, `idea.md`: the program's behaviors, each shown by an example, with the tests that try them. The agent then compiles the idea into WebAssembly text, `main.wat`. lengua doesn't trust that translation. It holds `main.wat` to its own rules, runs every test, the generated ones with fresh inputs, proves those for every input where it can, with the z3 and cvc5 solvers, and runs the program in a host of its own that gives it only what the idea grants. The same `main.wat` gets the same checks on the five systems and CPUs lengua is built for: Linux on x86-64 and on ARM64, macOS on ARM64, and Windows on x86-64 and on ARM64.

lengua is an [Agent Plugin](https://agent-plugins.org): two skills and one MCP server, nothing else. The idea is what you keep and share; the code is the agent's, checked instead of trusted. [WHITEPAPER.md](WHITEPAPER.md) says why, and [DESIGN.md](DESIGN.md) says how.

The native lengua, which compiled ideas to assembly for Linux on x86-64 and Linux on ARM64, is kept at the tag `native-final`; [docs/history/](docs/history/) holds the documents of its time.

An example

[`examples/add`](examples/add) adds two whole numbers. Its idea's first behavior is an example, and the section under it is a generated test, which tries 200 pairs on every check: the boundary values first, then pairs drawn afresh each time.

## B1: Adds two numbers
- Given the arguments `2` and `3`
- When the program runs
- Then it prints `5` and a newline
- And it exits with code `0`

### For any `a` and `b`
- Given the arguments `{a}` and `{b}`
- When the program runs
- Then it prints `{a + b}` and a newline
- And it exits with code `0`

| a | b | runs |
|---|---|---|
| `int(-1000000000, 1000000000)` | `int(-1000000000, 1000000000)` | 200 |

Its `# Constraints` say `- Uses: nothing`, so the program gets its arguments, standard output a