mlld is a scripting language designed to make it delightful to work with LLMs in repeatable ways that would be onerous in a chat context.

Getting Started

New to mlld? Start with the Introduction to learn the basic concepts and understand why mlld exists.

Ready to write code? The Quick Start gets you running in 5 minutes.

Reference

The reference sections cover every directive and configuration option:

  • Core - Variables, templates, file loading, exe, run, builtins, escaping
  • Flow Control - if, when, for, foreach, while, loop
  • Effects - Pipelines, labels, guards, hooks
  • Modules - Creating, importing, and publishing modules
  • MCP - Export functions as tools, import external servers
  • Output - output, log, append, stream
  • CLI - Command line usage, checkpoint, validation
  • Configuration - Config files, policy, environments, auth
  • SDK - Execution modes, dynamic modules, static analysis
  • Security - Signing, MCP security, audit logging
  • Patterns - Prose, ralph, guarded tool export

Community

Join the Discord and ask questions.

If you encounter bugs, file a report on GitHub.